/*
Theme Name: The Gamer
Theme URI: https://example.com
Author: Antigravity
Author URI: https://example.com
Description: A custom WordPress theme for gamers using Tailwind CSS.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-gamer
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --color-text: #fff;
}

/* Global Typography */
h1 {
  font-size: 2rem; /* 40px */
  font-weight: 700;
  line-height: 1.2;
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--color-text);
}

h2 {
  font-size: 1.5rem; /* 32px */
  font-weight: 700;
  line-height: 1.3;
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--color-text);
}

.bb_tag {
  font-size: 2rem; /* 32px */
  font-weight: 700;
  line-height: 1.3;
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--color-text);
}

h3 {
  font-size: 1.05rem; /* 28px */
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

h4 {
  font-size: 1.5rem; /* 24px */
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}

h5 {
  font-size: 1.25rem; /* 20px */
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}

h6 {
  font-size: 1rem; /* 16px */
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
}

.bb_paragraph {
  margin-bottom: 6px;
}

section strong {
  font-size: 2rem; /* 32px */
  display: inline-block;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 20px;
  margin-bottom: 20px;
  color: var(--color-text);
}

.pc-requirements strong {
  font-size: 0.875rem;
}

/* Skeleton Loader */
.skeleton-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 220px;
}

.skeleton-thumbnail {
  width: 100%;
  height: 160px;
  border-radius: 0.75rem;
}

.skeleton-line {
  height: 12px;
  border-radius: 999px;
}

.skeleton-pill {
  height: 18px;
  width: 70px;
  border-radius: 999px;
}

.skeleton-shimmer {
  position: relative;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.2);
}

.skeleton-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Steam News Widget Styling */
aside .hw_steam_news_item {
  background-color: color-mix(
    in oklab,
    var(--color-neutral-900) 30%,
    transparent
  ); /* bg-neutral-900/30 */
  border: 1px solid rgba(255, 255, 255, 0.05); /* border-white/5 */
  border-radius: 0.75rem; /* rounded-xl */
  padding: 1.5rem; /* p-6 */
  margin-bottom: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

aside.hw_steam_news_item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

aside .hw_steam_news_label {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

aside .hw_steam_news_title {
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin: 20px 0 8px 0 !important;
  transition: color 0.2s ease;
}

aside .hw_steam_news_item:hover .hw_steam_news_title {
  color: #a78bfa !important;
}

aside .hw_steam_news_date {
  color: #a3a3a3;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 12px;
  display: block;
}

aside .hw_steam_news_content {
  color: #d4d4d4;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
  max-height: none;
  overflow: visible;
  position: static;
}

aside .hw_steam_news_content::after {
  content: none;
}

aside .hw_steam_news_readmore,
aside .button-style {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(99, 102, 241, 0.1) !important;
  color: #a78bfa !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

aside .hw_steam_news_readmore:hover,
aside .button-style:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #c4b5fd;
  transform: translateX(2px);
}

/* Custom Scrollbar */
/* Custom styles will be loaded in assets/css/main.css */

.filters-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 40;
}

.filters-panel {
  display: none;
}

@media (min-width: 1024px) {
  .filters-panel {
    display: block !important;
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    overflow: visible !important;
  }
}

body.filters-open {
  overflow: hidden;
}

body.filters-open #filtersBackdrop {
  opacity: 1;
  pointer-events: auto;
}

body.filters-open #filtersPanel {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.98);
  padding: 24px;
  overflow-y: auto;
}

.filters-active-badges {
  min-height: 40px;
}

.filters-active-badges .filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #e5e7eb;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}

.filters-active-badges .filter-badge .remove {
  font-size: 12px;
  margin-left: 2px;
}

.filters-footer button {
  width: 100%;
}

.filters-footer {
  gap: 12px;
}

body.filters-open #mobileFiltersFooter {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 51;
  padding: 16px;
  background: rgba(5, 5, 5, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  margin: 0 !important;
}

body.filters-open #filtersPanel {
  padding-bottom: 160px;
}

.steamchart-card {
  border-radius: 1rem;
}

.steamchart-canvas-wrapper {
  height: 260px;
}
