/* =============================================
   SkyPulse — Sky Theme Design System
   Gaming & Technology Research Website
   ============================================= */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════
   1. CSS CUSTOM PROPERTIES
   ═══════════════════════════════════════════════ */
:root {
  /* ── Background ── */
  --bg-primary: #f0f9ff;
  --bg-secondary: #e0f2fe;
  --bg-tertiary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-solid: #ffffff;
  --bg-card-hover: rgba(255, 255, 255, 0.92);

  /* ── Text ── */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #f8fafc;
  --text-link: #0369a1;

  /* ── Accent ── */
  --accent-1: #0284c7;
  --accent-2: #0ea5e9;
  --accent-3: #38bdf8;
  --accent-light: #bae6fd;
  --accent-warm: #f59e0b;
  --accent-warm-hover: #d97706;
  --accent-warm-light: #fef3c7;
  --accent-gaming: #8b5cf6;
  --accent-tech: #06b6d4;

  /* ── Borders ── */
  --border: rgba(148, 163, 184, 0.3);
  --border-light: rgba(148, 163, 184, 0.12);

  /* ── Glass ── */
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-bg-strong: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);

  /* ── Gradients ── */
  --hero-grad: linear-gradient(175deg, #0c4a6e 0%, #0369a1 18%, #0ea5e9 40%, #7dd3fc 62%, #bae6fd 78%, #e0f2fe 90%, var(--bg-primary) 100%);
  --card-overlay: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.18) 55%, transparent 100%);

  /* ── Shadows ── */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.16);

  /* ── Radii ── */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* ── Transitions ── */
  --t-fast: 150ms ease;
  --t-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Layout ── */
  --nav-h: 72px;
  --max-w: 1280px;
  --section-pad: 80px;

  /* ── Fonts ── */
  --f-heading: 'Outfit', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;

  /* ── Clouds ── */
  --cloud: rgba(255, 255, 255, 0.92);
  --cloud-shadow: rgba(186, 230, 253, 0.5);

  /* ── Misc ── */
  --tab-indicator: var(--accent-1);
  --scrollbar-track: var(--bg-secondary);
  --scrollbar-thumb: var(--accent-light);
}

/* ── Dark Mode ── */
[data-theme="dark"] {
  --bg-primary: #070d2e;
  --bg-secondary: #0c1445;
  --bg-tertiary: #131b4a;
  --bg-card: rgba(13, 20, 58, 0.72);
  --bg-card-solid: #131b4a;
  --bg-card-hover: rgba(19, 27, 74, 0.92);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-inverse: #0f172a;
  --text-link: #7dd3fc;

  --accent-1: #38bdf8;
  --accent-2: #7dd3fc;
  --accent-3: #bae6fd;
  --accent-light: rgba(56, 189, 248, 0.12);
  --accent-warm: #a78bfa;
  --accent-warm-hover: #8b5cf6;
  --accent-warm-light: rgba(167, 139, 250, 0.15);
  --accent-gaming: #a78bfa;
  --accent-tech: #22d3ee;

  --border: rgba(100, 116, 139, 0.2);
  --border-light: rgba(100, 116, 139, 0.08);

  --glass-bg: rgba(12, 20, 69, 0.65);
  --glass-bg-strong: rgba(12, 20, 69, 0.88);
  --glass-border: rgba(56, 189, 248, 0.18);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);

  --hero-grad: linear-gradient(175deg, #020617 0%, #070d2e 20%, #0c1445 40%, #111c54 60%, #0c1445 80%, #070d2e 100%);
  --card-overlay: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);

  --cloud: rgba(56, 189, 248, 0.06);
  --cloud-shadow: rgba(56, 189, 248, 0.03);

  --tab-indicator: var(--accent-1);
  --scrollbar-track: var(--bg-secondary);
  --scrollbar-thumb: rgba(56, 189, 248, 0.3);
}

/* ═══════════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--f-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--t-slow), color var(--t-slow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--accent-2);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--f-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

::selection {
  background: var(--accent-3);
  color: var(--text-inverse);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--r-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-2);
}

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ═══════════════════════════════════════════════
   3. UTILITIES
   ═══════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ── Theme Transition Helper ── */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, fill 0.5s ease !important;
}

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   4. NAVBAR
   ═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--t-base), box-shadow var(--t-base), backdrop-filter var(--t-base);
}

.navbar.scrolled {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border-light);
}

.navbar__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 8px;
}

/* ── Logo ── */
.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__logo svg {
  width: 34px;
  height: 34px;
}

/* ── Wordmark ── */
.navbar__wordmark {
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--t-base);
}

/* Default (footer, etc): dark logo in light mode, light logo in dark mode */
.navbar__wordmark--light {
  display: block;
}

.navbar__wordmark--dark {
  display: none;
}

[data-theme="dark"] .navbar__wordmark--light {
  display: none;
}

[data-theme="dark"] .navbar__wordmark--dark {
  display: block;
}

/* Navbar-specific: show white logo over dark hero when not scrolled */
.navbar--home:not(.scrolled) .navbar__wordmark--light {
  display: none;
}

.navbar--home:not(.scrolled) .navbar__wordmark--dark {
  display: block;
}

/* Navbar scrolled (glass bg): show dark logo in light mode */
.navbar.scrolled .navbar__wordmark--light {
  display: block;
}

.navbar.scrolled .navbar__wordmark--dark {
  display: none;
}

/* Dark mode navbar: always white logo regardless of scroll */
[data-theme="dark"] .navbar .navbar__wordmark--light {
  display: none;
}

[data-theme="dark"] .navbar .navbar__wordmark--dark {
  display: block;
}

/* ── Nav Links ── */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.navbar__links a {
  position: relative;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--accent-1);
  background: var(--accent-light);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--accent-1);
  border-radius: var(--r-full);
  transition: left var(--t-base), right var(--t-base);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  left: 16px;
  right: 16px;
}

/* ── Navbar over dark hero (not scrolled, light mode) ── */
.navbar--home:not(.scrolled) .navbar__links a {
  color: rgba(255, 255, 255, 0.85);
}

.navbar--home:not(.scrolled) .navbar__links a:hover,
.navbar--home:not(.scrolled) .navbar__links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.navbar--home:not(.scrolled) .navbar__links a::after {
  background: #fff;
}

.navbar--home:not(.scrolled) .navbar__btn {
  color: rgba(255, 255, 255, 0.85);
}

.navbar--home:not(.scrolled) .navbar__btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.navbar--home:not(.scrolled) .theme-toggle__icon {
  color: rgba(255, 255, 255, 0.85);
}

.navbar--home:not(.scrolled) .theme-toggle__icon:hover {
  color: #fbbf24;
  background: rgba(255, 255, 255, 0.15);
}

.navbar--home:not(.scrolled) .navbar__burger {
  color: rgba(255, 255, 255, 0.85);
}

.navbar--home:not(.scrolled) .navbar__burger:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

/* ── Actions ── */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}

.navbar__btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: var(--text-secondary);
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}

.navbar__btn:hover {
  color: var(--accent-1);
  background: var(--accent-light);
  transform: scale(1.05);
}

.navbar__btn svg {
  width: 20px;
  height: 20px;
}

/* ── Search Overlay ── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-box {
  width: 100%;
  max-width: 620px;
  background: var(--bg-card-solid);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  transform: translateY(-20px) scale(0.97);
  transition: transform var(--t-base);
}

.search-overlay.open .search-box {
  transform: translateY(0) scale(1);
}

.search-box__inner {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  gap: 12px;
}

.search-box__inner svg {
  width: 22px;
  height: 22px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.search-box__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-family: var(--f-body);
  background: transparent;
  color: var(--text-primary);
}

.search-box__input::placeholder {
  color: var(--text-tertiary);
}

.search-box__kbd {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.search-box__kbd kbd {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-family: var(--f-body);
  color: var(--text-tertiary);
}

/* ── Theme Toggle ── */
.theme-toggle {
  position: relative;
  width: 42px;
  height: 42px;
}

.theme-toggle__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: var(--text-secondary);
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-base);
}

.theme-toggle__icon:hover {
  color: var(--accent-warm);
  background: var(--accent-warm-light);
}

.theme-toggle__icon svg {
  width: 20px;
  height: 20px;
  transition: transform var(--t-base);
}

[data-theme="dark"] .theme-toggle__icon svg {
  transform: rotate(180deg);
}

/* ── Mobile Menu Button ── */
.navbar__burger {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--r-md);
  color: var(--text-secondary);
  transition: color var(--t-fast), background var(--t-fast);
}

.navbar__burger:hover {
  color: var(--accent-1);
  background: var(--accent-light);
}

.navbar__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: var(--r-full);
  transition: transform var(--t-base), opacity var(--t-fast);
}

.navbar__burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__burger.open span:nth-child(2) {
  opacity: 0;
}

.navbar__burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Drawer ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  display: block;
  padding: 14px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: var(--r-md);
  transition: background var(--t-fast), color var(--t-fast);
}

.mobile-nav a:hover {
  background: var(--accent-light);
  color: var(--accent-1);
}

/* ═══════════════════════════════════════════════
   5. HERO SECTION
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-grad);
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* ── Clouds ── */
.hero__clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: var(--cloud);
  border-radius: 50%;
  filter: blur(1px);
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud-1 {
  width: 200px;
  height: 60px;
  top: 22%;
  animation: drift 35s linear infinite;
}

.cloud-1::before {
  width: 100px;
  height: 80px;
  top: -40px;
  left: 30px;
}

.cloud-1::after {
  width: 120px;
  height: 70px;
  top: -30px;
  right: 20px;
}

.cloud-2 {
  width: 280px;
  height: 70px;
  top: 42%;
  animation: drift 50s linear infinite 8s;
  opacity: 0.7;
}

.cloud-2::before {
  width: 140px;
  height: 90px;
  top: -50px;
  left: 50px;
}

.cloud-2::after {
  width: 100px;
  height: 60px;
  top: -25px;
  right: 40px;
}

.cloud-3 {
  width: 160px;
  height: 45px;
  top: 65%;
  animation: drift 40s linear infinite 15s;
  opacity: 0.5;
}

.cloud-3::before {
  width: 80px;
  height: 60px;
  top: -30px;
  left: 20px;
}

.cloud-3::after {
  width: 90px;
  height: 50px;
  top: -22px;
  right: 15px;
}

.cloud-4 {
  width: 220px;
  height: 55px;
  top: 15%;
  animation: drift 55s linear infinite 22s;
  opacity: 0.4;
}

.cloud-4::before {
  width: 110px;
  height: 70px;
  top: -38px;
  left: 40px;
}

.cloud-4::after {
  width: 80px;
  height: 50px;
  top: -20px;
  right: 30px;
}

@keyframes drift {
  0% {
    transform: translateX(-320px);
  }

  100% {
    transform: translateX(calc(100vw + 320px));
  }
}

/* ── Stars (dark mode) ── */
.hero__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

[data-theme="dark"] .hero__stars {
  opacity: 1;
}

[data-theme="dark"] .hero__clouds {
  opacity: 0.3;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* ── Hero Content ── */
.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 780px;
  padding: 40px 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

[data-theme="dark"] .hero__badge {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--accent-2);
}

.hero__badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
  }
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
  line-height: 1.08;
}

.hero__title .highlight {
  background: linear-gradient(135deg, var(--accent-warm) 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .hero__title {
  color: #f1f5f9;
}

[data-theme="dark"] .hero__title .highlight {
  background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="dark"] .hero__subtitle {
  color: var(--text-secondary);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--f-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--r-full);
  transition: all var(--t-base);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-warm) 0%, #fbbf24 100%);
  color: #1a1a2e;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5);
  color: #1a1a2e;
}

[data-theme="dark"] .btn--primary {
  background: linear-gradient(135deg, var(--accent-warm) 0%, #818cf8 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.35);
}

[data-theme="dark"] .btn--primary:hover {
  box-shadow: 0 8px 30px rgba(167, 139, 250, 0.5);
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #fff;
}

/* ── Shimmer ── */
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

/* ── Scroll Indicator ── */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: float-scroll 2s ease-in-out infinite;
}

.hero__scroll .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
}

@keyframes float-scroll {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ═══════════════════════════════════════════════
   6. FEATURED GAME
   ═══════════════════════════════════════════════ */
.featured-game {
  padding: 40px 0;
  background: var(--bg-secondary);
}

.featured-game__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.featured-game__card {
  display: flex;
  position: relative;
  background: url('https://res.cloudinary.com/did8behwz/image/upload/v1782648355/Au9oI7eeViyLbOvH0onsIw_2k_qy0jxe.webp');
  border-radius: var(--r-xl);
  padding: 32px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-base), box-shadow var(--t-base);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-size: cover;
}

.featured-game__card--secondary {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.featured-game__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.featured-game__content {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.featured-game__badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.featured-game__badge--upcoming {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.featured-game__title {
  font-family: var(--f-heading);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.featured-game__desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  line-height: 1.6;
}

.featured-game__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: radial-gradient(circle at 70% 50%, rgba(245, 158, 11, 0.3) 0%, transparent 60%);
  z-index: 1;
}

.featured-game__card--secondary .featured-game__bg {
  background: radial-gradient(circle at 70% 50%, rgba(56, 189, 248, 0.2) 0%, transparent 60%);
}

.featured-game__image {
  position: absolute;
  right: -10%;
  bottom: -10%;
  height: 120%;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  mask-image: linear-gradient(to left, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 50%, transparent 100%);
}

@media (max-width: 860px) {
  .featured-game__grid {
    grid-template-columns: 1fr;
  }

  .featured-game__card {
    padding: 32px 24px;
  }

  .featured-game__title {
    font-size: 1.6rem;
  }

  .featured-game__bg {
    width: 100%;
    background: radial-gradient(circle at 50% 10%, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
  }
}

/* ═══════════════════════════════════════════════
   7. STORIES SECTION
   ═══════════════════════════════════════════════ */
.stories {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-1);
  margin-bottom: 12px;

}

.section-label h1 {
  color: var(--accent-1);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Story Carousel Widgets ── */
.story-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.story-widget {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.story-widget__label {
  font-family: var(--f-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  padding: 4px 0;
  letter-spacing: 0.3px;
}

.story-widget__carousel {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  touch-action: pan-y;
  aspect-ratio: 3 / 3.5;
  max-height: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.story-widget__carousel:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ── Slides Container ── */
.story-widget__slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* ── Individual Slide ── */
.story-widget__slide {
  position: relative;
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
}

.story-widget__slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.story-widget__slide:hover .story-widget__slide-img {
  transform: scale(1.06);
}

.story-widget__slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Translucent Overlay ── */
.story-widget__slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 10px 10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
  z-index: 2;
}

.story-widget__slide-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-1);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: var(--r-full);
  margin-bottom: 4px;
}

.story-widget__slide-title {
  font-family: var(--f-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ── Arrow Buttons ── */
.story-widget__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #1a1a2e;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity var(--t-fast), background var(--t-fast), transform var(--t-fast);
  cursor: pointer;
  border: none;
  line-height: 1;
}

.story-widget__carousel:hover .story-widget__arrow {
  opacity: 1;
}

.story-widget__arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.story-widget__arrow--prev {
  left: 8px;
}

.story-widget__arrow--next {
  right: 8px;
}

[data-theme="dark"] .story-widget__arrow {
  background: rgba(19, 27, 74, 0.85);
  color: #f1f5f9;
}

[data-theme="dark"] .story-widget__arrow:hover {
  background: rgba(19, 27, 74, 1);
}

/* ── Dot Indicators ── */
.story-widget__dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 4px;
  padding: 3px 6px;
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

.story-widget__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}

.story-widget__dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.story-widget__dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* ═══════════════════════════════════════════════
   8. CATEGORY PAGE STYLES
   ═══════════════════════════════════════════════ */
.category-hero {
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 48px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}

.category-hero__content {
  max-width: 640px;
}

.category-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
  transition: color var(--t-fast);
}

.category-hero__back:hover {
  color: var(--accent-1);
}

.category-hero__badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--r-full);
  margin-bottom: 12px;
}

.gaming-badge {
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-gaming);
}

.tech-badge {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-tech);
}

.category-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}

.category-hero__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.category-posts {
  padding: var(--section-pad) 0;
  background: var(--bg-primary);
}

.category-posts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 800px;
}

/* ═══════════════════════════════════════════════
   9. LATEST POSTS SECTION
   ═══════════════════════════════════════════════ */
.latest-posts {
  padding: var(--section-pad) 0;
  background: var(--bg-secondary);
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.posts-column__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.posts-column__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.posts-column__icon.gaming {
  background: rgba(139, 92, 246, 0.12);
}

.posts-column__icon.tech {
  background: rgba(6, 182, 212, 0.12);
}

.posts-column__heading {
  font-size: 1.25rem;
  font-weight: 700;
}

.posts-column__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Post Card ── */
.post-card {
  display: flex;
  gap: 18px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  transition: all var(--t-base);
  cursor: pointer;
}

.post-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-3);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.post-card__thumb {
  width: 140px;
  min-height: 100px;
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.post-card__category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.post-card__category.gaming {
  color: var(--accent-gaming);
}

.post-card__category.tech {
  color: var(--accent-tech);
}

.post-card__title {
  font-family: var(--f-heading);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: auto;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.74rem;
  color: var(--text-tertiary);
}

.post-card__meta svg {
  width: 13px;
  height: 13px;
}

/* ── Load More ── */
.load-more-wrap {
  text-align: center;
  margin-top: 28px;
}

.btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 10px 28px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-1);
  border: 1.5px solid var(--accent-1);
  border-radius: var(--r-full);
  transition: all var(--t-fast);
}

.btn--outline:hover {
  background: var(--accent-1);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

/* ═══════════════════════════════════════════════
   9. SOCIAL MEDIA SECTION
   ═══════════════════════════════════════════════ */
.social-section {
  padding: 48px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
}

.social-section .section-header {
  margin-bottom: 28px;
}

.social-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  transition: all var(--t-base);
  cursor: pointer;
  text-decoration: none;
}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--social-color, var(--accent-3));
}

.social-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--social-bg, var(--accent-light));
  color: var(--social-color, var(--accent-1));
  transition: transform var(--t-spring);
}

.social-card__icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.social-card__icon svg {
  width: 22px;
  height: 22px;
}

.social-card:hover .social-card__icon {
  transform: scale(1.15) rotate(-5deg);
}

.social-card__info {
  display: flex;
  flex-direction: column;
}

.social-card__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.social-card__count {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* Social brand colors */
.social-card[data-platform="twitter"] {
  --social-color: #1DA1F2;
  --social-bg: rgba(29, 161, 242, 0.1);
}

.social-card[data-platform="youtube"] {
  --social-color: #FF0000;
  --social-bg: rgba(255, 0, 0, 0.1);
}

.social-card[data-platform="discord"] {
  --social-color: #5865F2;
  --social-bg: rgba(88, 101, 242, 0.1);
}

.social-card[data-platform="reddit"] {
  --social-color: #FF4500;
  --social-bg: rgba(255, 69, 0, 0.1);
}

.social-card[data-platform="instagram"] {
  --social-color: #E4405F;
  --social-bg: rgba(228, 64, 95, 0.1);
}

.social-card[data-platform="twitch"] {
  --social-color: #9146FF;
  --social-bg: rgba(145, 70, 255, 0.1);
}

/* ═══════════════════════════════════════════════
   10. FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  padding: 60px 0 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-top: 1px solid var(--border-light);
}

[data-theme="dark"] .footer {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, #050a24 100%);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__brand-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 320px;
}

.footer__heading {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer__links a {
  display: block;
  padding: 5px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--t-fast), transform var(--t-fast);
}

.footer__links a:hover {
  color: var(--accent-1);
  transform: translateX(4px);
}

/* ── Newsletter ── */
.footer__newsletter-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.footer__newsletter-form {
  display: flex;
  gap: 8px;
}

.footer__newsletter-input {
  flex: 1;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-primary);
  font-family: var(--f-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--t-fast);
}

.footer__newsletter-input:focus {
  border-color: var(--accent-2);
}

.footer__newsletter-input::placeholder {
  color: var(--text-tertiary);
}

.footer__newsletter-btn {
  padding: 12px 22px;
  background: var(--accent-1);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--r-full);
  transition: all var(--t-fast);
}

.footer__newsletter-btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

/* ── Footer Social Icons ── */
.footer__social-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: all var(--t-base);
}

.footer__social-link svg {
  width: 20px;
  height: 20px;
}

.footer__social-link:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: var(--shadow-md);
}

.footer__social-link--instagram:hover {
  color: #fff;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
}

.footer__social-link--twitter:hover {
  color: #fff;
  background: #1DA1F2;
  border-color: transparent;
}

/* ── Footer Bottom ── */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.footer__bottom-links {
  display: flex;
  gap: 20px;
}

.footer__bottom-links a {
  color: var(--text-tertiary);
  transition: color var(--t-fast);
}

.footer__bottom-links a:hover {
  color: var(--accent-1);
}

/* ═══════════════════════════════════════════════
   11. PLACEHOLDER IMAGE GRADIENTS
   ═══════════════════════════════════════════════ */
.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}



/* ═══════════════════════════════════════════════
   12. RESPONSIVE
   ═══════════════════════════════════════════════ */

/* ── Tablet ── */
@media (max-width: 1024px) {
  :root {
    --section-pad: 60px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .story-widgets {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .story-widget__carousel {
    aspect-ratio: 16 / 10;
  }

  .story-widget__slide-title {
    font-size: 0.82rem;
  }
}

@media (max-width: 860px) {
  .navbar__links {
    display: none;
  }

  .navbar__burger {
    display: flex;
  }

  .navbar__actions {
    margin-left: auto;
  }

  .mobile-nav {
    display: block;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .story-widget__arrow {
    opacity: 1;
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  :root {
    --section-pad: 48px;
    --nav-h: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .hero__content {
    padding: 24px 16px;
  }

  .hero__title {
    letter-spacing: -0.8px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .story-widgets {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .story-widget__carousel {
    aspect-ratio: 16 / 10;
  }

  .story-widget__slide-title {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
  }

  .post-card {
    flex-direction: column;
  }

  .post-card__thumb {
    width: 100%;
    min-height: 160px;
  }

  .social-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer__newsletter-form {
    flex-direction: column;
  }

  .search-overlay {
    padding-top: 80px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ═══════════════════════════════════════════════
   13. PRINT
   ═══════════════════════════════════════════════ */
@media print {

  .navbar,
  .hero__clouds,
  .hero__stars,
  .tools-strip,
  .social-section,
  .search-overlay,
  .mobile-nav {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero {
    min-height: auto;
    background: none;
    padding: 20px 0;
  }

  .hero__title,
  .hero__subtitle {
    color: #000;
  }
}

/* ═══════════════════════════════════════════════
   14. ARTICLE PAGE
   ═══════════════════════════════════════════════ */

/* ── Reading Progress Box ── */
.reading-progress-box {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: none;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 8px 12px;
  font-family: var(--f-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-1);
  box-shadow: var(--shadow-sm);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--t-base), transform var(--t-base);
  opacity: 0;
  pointer-events: none;
}

.reading-progress-box.visible {
  opacity: 1;
}

@media (max-width: 860px) {
  .reading-progress-box {
    display: none;
  }
}

/* ── Article Header ── */
.article-header {
  padding-top: calc(var(--nav-h) + 32px);
  padding-bottom: 40px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.article-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

[data-theme="dark"] .article-header::before {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
}

/* ── Breadcrumb ── */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.article-breadcrumb a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--t-fast);
}

.article-breadcrumb a:hover {
  color: var(--accent-1);
}

.article-breadcrumb svg {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.article-breadcrumb__current {
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ── Article Meta ── */
.article-meta {
  position: relative;
  max-width: 800px;
}

.article-meta__badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--r-full);
  margin-bottom: 16px;
}

.article-meta__title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.12;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.article-meta__subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 680px;
}

.article-meta__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.article-meta__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-meta__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-gaming));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.article-meta__author-details {
  display: flex;
  flex-direction: column;
}

.article-meta__author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.article-meta__author-role {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.article-meta__stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.article-meta__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.article-meta__stat svg {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   15. ARTICLE TWO-COLUMN LAYOUT
   ═══════════════════════════════════════════════ */
.article-layout {
  padding: 40px 0 60px;
  background: var(--bg-primary);
}

.article-layout__container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* ── Share Bar (top-right of article box) ── */
.article-share {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  z-index: 20;
}

.article-share__btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  color: var(--text-tertiary);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: all var(--t-base);
  cursor: pointer;
}

.article-share__btn:hover {
  color: var(--accent-1);
  background: var(--accent-light);
  border-color: var(--accent-1);
  transform: scale(1.08);
}

.article-share__btn.copied {
  color: #22c55e;
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

/* ── Article Body ── */
.article-body {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.article-body__featured {
  margin-bottom: 32px;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}

.article-body__image-caption {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 10px;
  font-style: italic;
}

/* ── Table of Contents ── */
.article-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin-bottom: 40px;
  transition: background var(--t-base), border-color var(--t-base);
}

.article-toc__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.article-toc__title svg {
  color: var(--accent-1);
}

.article-toc__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-toc__links a {
  display: block;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  border-left: 3px solid transparent;
  transition: all var(--t-fast);
  font-weight: 500;
}

.article-toc__links a:hover {
  color: var(--accent-1);
  background: var(--accent-light);
  border-left-color: var(--accent-1);
}

.article-toc__links a.active {
  color: var(--accent-1);
  background: var(--accent-light);
  border-left-color: var(--accent-1);
  font-weight: 600;
}

/* ── Article Typography ── */
.article-body section {
  margin-bottom: 40px;
}

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
  padding-top: 8px;
  position: relative;
}

.article-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-gaming));
  border-radius: var(--r-full);
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.article-body p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.article-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-body em {
  color: var(--accent-1);
  font-style: italic;
}

.article-body ul,
.article-body ol {
  margin-bottom: 20px;
  padding-left: 8px;
}

.article-body ul li,
.article-body ol li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 17px;
  width: 7px;
  height: 7px;
  background: var(--accent-1);
  border-radius: 50%;
}

.article-body ol {
  counter-reset: list-counter;
}

.article-body ol li {
  counter-increment: list-counter;
}

.article-body ol li::before {
  content: counter(list-counter);
  position: absolute;
  left: 4px;
  top: 8px;
  width: 22px;
  height: 22px;
  background: var(--accent-light);
  color: var(--accent-1);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-body blockquote {
  margin: 28px 0;
  padding: 24px 28px;
  background: var(--bg-card);
  border-left: 4px solid var(--accent-1);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  position: relative;
}

.article-body blockquote::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 14px;
  font-size: 3rem;
  font-family: Georgia, serif;
  color: var(--accent-1);
  opacity: 0.2;
  line-height: 1;
}

.article-body blockquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.75;
}

.article-body blockquote cite {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-style: normal;
  font-weight: 600;
}

/* ── Stats Grid ── */
.article-body__stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.article-body__stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--t-base);
}

.article-body__stat-card:hover {
  border-color: var(--accent-3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.article-body__stat-value {
  display: block;
  font-family: var(--f-heading);
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-gaming));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.article-body__stat-label {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ── Tags ── */
.article-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 24px 0;
  margin-top: 16px;
  border-top: 1px solid var(--border-light);
}

.article-tags__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.article-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-full);
  transition: all var(--t-fast);
  text-decoration: none;
}

.article-tag:hover {
  color: var(--accent-1);
  border-color: var(--accent-1);
  background: var(--accent-light);
}

/* ── Author Card ── */
.article-author-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  margin-top: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  transition: all var(--t-base);
}

.article-author-card:hover {
  border-color: var(--accent-3);
  box-shadow: var(--shadow-md);
}

.article-author-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-gaming));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.article-author-card__info {
  flex: 1;
}

.article-author-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-1);
  margin-bottom: 4px;
  display: block;
}

.article-author-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.article-author-card__bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

.article-author-card__socials {
  display: flex;
  gap: 10px;
}

.article-author-card__socials a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  transition: all var(--t-fast);
}

.article-author-card__socials a:hover {
  color: var(--accent-1);
  background: var(--accent-light);
}

/* ── Boxed Article Content ── */
.article-content--boxed {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 32px;
  padding-top: 64px;
  transition: background var(--t-base), border-color var(--t-base);
  min-width: 0;
}

/* ── Article Image Gallery / Carousel ── */
.article-gallery {
  margin: 32px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

.article-gallery__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  aspect-ratio: 16 / 9;
}

.article-gallery__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.article-gallery__slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
}

.article-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Gallery Arrows ── */
.article-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--t-fast), background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: var(--shadow-md);
}

.article-gallery__viewport:hover .article-gallery__arrow {
  opacity: 1;
}

.article-gallery__arrow:hover {
  background: var(--bg-card-solid);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.article-gallery__arrow--prev {
  left: 14px;
}

.article-gallery__arrow--next {
  right: 14px;
}

/* ── Gallery Info (dots + counter) ── */
.article-gallery__info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
}

.article-gallery__dots {
  display: flex;
  gap: 6px;
}

.article-gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--t-fast), transform var(--t-fast), width var(--t-fast);
}

.article-gallery__dot:hover {
  background: var(--accent-3);
}

.article-gallery__dot.active {
  background: var(--accent-1);
  transform: scale(1.15);
  width: 20px;
  border-radius: var(--r-full);
}

.article-gallery__counter {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════
   16. ARTICLE SIDEBAR
   ═══════════════════════════════════════════════ */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  min-width: 0;
}

.sidebar-widget {
  border-radius: var(--r-lg);
  overflow: hidden;
}

.sidebar-widget__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

/* ── App Promotion ── */
.sidebar-app-promo {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-gaming));
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.sidebar-app-promo__glow {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.sidebar-app-promo__badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: var(--r-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.sidebar-app-promo__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.sidebar-app-promo__desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sidebar-app-promo__buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.sidebar-app-promo__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--r-full);
  transition: all var(--t-fast);
  text-decoration: none;
  flex: 1;
  justify-content: center;
}

.sidebar-app-promo__btn--primary {
  background: #fff;
  color: var(--accent-1);
}

.sidebar-app-promo__btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  color: var(--accent-1);
}

.sidebar-app-promo__btn--secondary {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.sidebar-app-promo__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  color: #fff;
}

.sidebar-app-promo__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.sidebar-app-promo__stars {
  color: #fbbf24;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

[data-theme="dark"] .sidebar-app-promo {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.2);
}

[data-theme="dark"] .sidebar-app-promo__btn--primary {
  background: var(--accent-1);
  color: #0f172a;
}

[data-theme="dark"] .sidebar-app-promo__btn--primary:hover {
  background: var(--accent-2);
  color: #0f172a;
}

/* ── Sidebar Search ── */
.sidebar-search {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 20px;
}

.sidebar-search__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-search__input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  transition: border-color var(--t-fast);
}

.sidebar-search__input-wrap:focus-within {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.sidebar-search__input-wrap svg {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.sidebar-search__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.88rem;
  font-family: var(--f-body);
  color: var(--text-primary);
}

.sidebar-search__input::placeholder {
  color: var(--text-tertiary);
}

.sidebar-search__btn {
  padding: 10px 20px;
  background: var(--accent-1);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--r-full);
  transition: all var(--t-fast);
  cursor: pointer;
  border: none;
}

.sidebar-search__btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* ── Sidebar Ads ── */
.sidebar-ad {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 12px;
}

.sidebar-ad__label {
  display: block;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  opacity: 0.7;
}

.sidebar-ad__slot {
  border-radius: var(--r-md);
  overflow: hidden;
}

.sidebar-ad__slot--large {
  height: 250px;
}

.sidebar-ad__slot--tall {
  height: 600px;
}

.sidebar-ad__slot--medium {
  height: 250px;
}

.sidebar-ad__placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.sidebar-ad__size {
  font-size: 0.7rem;
  opacity: 0.6;
  font-weight: 400;
}

.sidebar-ad--sticky {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

/* ═══════════════════════════════════════════════
   17. RELATED ARTICLES
   ═══════════════════════════════════════════════ */
.related-blogs {
  padding: var(--section-pad) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.related-blogs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--t-base);
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-3);
}

.related-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.related-card__thumb .placeholder-img {
  width: 100%;
  height: 100%;
  transition: transform var(--t-slow);
}

.related-card:hover .related-card__thumb .placeholder-img {
  transform: scale(1.08);
}

.related-card__body {
  padding: 18px;
}

.related-card__category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.related-card__category.gaming {
  color: var(--accent-gaming);
}

.related-card__category.tech {
  color: var(--accent-tech);
}

.related-card__title {
  font-family: var(--f-heading);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card__desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.related-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════
   18. BOTTOM AD
   ═══════════════════════════════════════════════ */
.bottom-ad-section {
  padding: 32px 0;
  background: var(--bg-primary);
}

.bottom-ad__slot {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 12px;
  text-align: center;
}

.bottom-ad__placeholder {
  width: 100%;
  height: 90px;
  background: var(--bg-secondary);
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════
   19. ARTICLE PAGE RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .article-body__stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .article-layout__container {
    grid-template-columns: 1fr 300px;
    gap: 28px;
  }

  .related-blogs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .article-layout__container {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .sidebar-app-promo {
    grid-column: 1 / -1;
  }

  .sidebar-ad--sticky {
    position: static;
  }

  .article-gallery__arrow {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .article-header {
    padding-top: calc(var(--nav-h) + 20px);
    padding-bottom: 28px;
  }

  .article-meta__info {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-meta__stats {
    gap: 14px;
  }

  .article-share {
    position: relative;
    top: 0;
    right: 0;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .article-body h2 {
    font-size: 1.35rem;
  }

  .article-body__stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .article-author-card__socials {
    justify-content: center;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
  }

  .related-blogs__grid {
    grid-template-columns: 1fr;
  }

  .bottom-ad__placeholder {
    flex-direction: column;
    height: auto;
    padding: 20px;
  }

  .article-content--boxed {
    padding: 20px 16px;
  }

  .article-gallery__arrow {
    width: 36px;
    height: 36px;
  }

  .article-gallery__arrow--prev {
    left: 8px;
  }

  .article-gallery__arrow--next {
    right: 8px;
  }
}

/* ═══════════════════════════════════════════════
   13. MOBILE PERFORMANCE OPTIMIZATIONS
   ═══════════════════════════════════════════════ */

/* Hardware accelerate commonly animated elements */
.story-widget__slides, 
.hero__clouds .cloud,
.navbar {
  will-change: transform;
  transform: translateZ(0);
}

/* Under 860px (Mobile / Tablet), remove expensive filters */
@media (max-width: 860px) {
  .navbar,
  .navbar.scrolled,
  .post-card,
  .story-widget__slide,
  .featured-game__badge {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  /* Provide solid fallbacks where glassmorphism was used */
  .navbar.scrolled {
    background: var(--bg-card-solid) !important;
  }
  
  .post-card, 
  .story-widget__slide {
    background: var(--bg-card-solid) !important;
  }
}

/* Disable sticky hover effects on touch devices */
@media (hover: none) {
  .btn:hover,
  .post-card:hover,
  .story-widget__slide:hover,
  .featured-game__card:hover,
  .social-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  
  .post-card:hover .post-card__thumb img {
    transform: none !important;
  }
}

/* ═══════════════════════════════════════════════
   X. RANKING TEMPLATE
   ═══════════════════════════════════════════════ */

/* Hero */
.ranking-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 20px 60px;
  background: var(--hero-grad);
}
.ranking-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.ranking-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.ranking-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-1);
  color: #fff;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.ranking-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.ranking-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.ranking-meta {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* Layout */
.ranking-list-section {
  padding: 60px 0 100px;
  background: var(--bg-primary);
}
.ranking-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Sidebar */
.ranking-sidebar {
  position: sticky;
  top: 100px;
  width: 240px;
  flex-shrink: 0;
  display: none;
}
@media (min-width: 1024px) {
  .ranking-sidebar {
    display: block;
  }
}
.ranking-progress-tracker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--border-light);
}
.tracker-item {
  text-decoration: none;
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  padding: 4px 0;
}
.tracker-item:hover,
.tracker-item.active {
  color: var(--accent-1);
  transform: translateX(4px);
}

/* Main Items */
.ranking-items {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.ranking-item {
  position: relative;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 100px; /* For anchor links to work cleanly with sticky header */
}
.ranking-item__number {
  position: absolute;
  top: -40px;
  left: -20px;
  font-size: 8rem;
  font-weight: 900;
  color: var(--bg-secondary);
  opacity: 0.6;
  z-index: 0;
  line-height: 1;
  pointer-events: none;
}
[data-theme="dark"] .ranking-item__number {
  opacity: 0.2;
}

.ranking-item__card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ranking-item__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ranking-item__image {
  width: 100%;
  height: 350px;
  overflow: hidden;
}
.ranking-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ranking-item__card:hover .ranking-item__image img {
  transform: scale(1.05);
}

.ranking-item__content {
  padding: 40px;
}
@media (max-width: 640px) {
  .ranking-item__content {
    padding: 24px;
  }
}
.ranking-item__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.ranking-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.stat-badge {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}
.stat-score {
  background: var(--accent-1);
  color: #fff;
}

.ranking-item__desc {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .pros-cons-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.pros-cons-box {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}
.pros-cons-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pros-cons-box.pros h4 {
  color: #10b981;
}
.pros-cons-box.pros h4::before {
  content: "+";
  font-weight: 900;
  font-size: 1.2rem;
}
.pros-cons-box.cons h4 {
  color: #ef4444;
}
.pros-cons-box.cons h4::before {
  content: "-";
  font-weight: 900;
  font-size: 1.2rem;
}
.pros-cons-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pros-cons-box li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}
.pros-cons-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════
   Y. DYNAMIC RANKING TEMPLATE
   ═══════════════════════════════════════════════ */

.dynamic-hero {
  padding: 80px 20px 40px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}
.dynamic-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.dynamic-hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.dynamic-list-section {
  padding: 40px 0 80px;
  background: var(--bg-primary);
}
.dynamic-list-container {
  max-width: 900px;
  margin: 0 auto;
}

.dynamic-table-header {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  font-weight: 600;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
}

.dynamic-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dynamic-ranking-item {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.dynamic-ranking-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card-hover);
}

/* Is Top Rank Highlight */
.dynamic-ranking-item.is-top-rank {
  border: 2px solid var(--accent-warm);
  background: var(--accent-warm-light);
}
[data-theme="dark"] .dynamic-ranking-item.is-top-rank {
  background: rgba(245, 158, 11, 0.1);
}
.dynamic-ranking-item.is-top-rank .dyn-number {
  color: var(--accent-warm);
  font-size: 2rem;
}

.dyn-col-rank {
  width: 60px;
  flex-shrink: 0;
  text-align: center;
}
.dyn-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.dyn-col-game {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}
.dyn-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.dyn-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dyn-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.dyn-genre {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.dyn-col-trend {
  width: 100px;
  flex-shrink: 0;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}
.trend-up {
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.trend-down {
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.trend-flat {
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.dyn-col-score {
  width: 80px;
  flex-shrink: 0;
  text-align: right;
}
.dyn-score-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-1);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
}

/* Responsive Table */
@media (max-width: 640px) {
  .dynamic-table-header {
    display: none;
  }
  .dyn-col-trend {
    display: none;
  }
  .dynamic-ranking-item {
    padding: 12px;
  }
  .dyn-col-rank {
    width: 40px;
  }
  .dyn-thumb {
    width: 48px;
    height: 48px;
  }
}