/* ==========================================================================
   GD Nexus — Main Stylesheet
   Cyberpunk Editorial Dark Theme for gamersdignity.com
   Mobile-first | WCAG AA compliant
   ========================================================================== */

/* ==========================================================================
   1. CUSTOM PROPERTIES
   ========================================================================== */

:root {
  /* Backgrounds */
  --gd-bg-primary: #0a0a0f;
  --gd-bg-secondary: #12121a;
  --gd-bg-tertiary: #1a1a2e;
  --gd-bg-elevated: #16213e;

  /* Text */
  --gd-text-primary: #e8e8ec;
  --gd-text-secondary: #9ca3af;
  --gd-text-muted: #6b7280;

  /* Accent */
  --gd-accent: #00f0ff;
  --gd-accent-hover: #00d4e0;
  --gd-accent-glow: rgba(0, 240, 255, 0.15);

  /* Status */
  --gd-hot: #ff2d78;
  --gd-hot-hover: #e0245e;
  --gd-success: #10b981;
  --gd-warning: #f59e0b;
  --gd-danger: #ef4444;
  --gd-info: #6366f1;

  /* Category colors */
  --gd-cat-error: #ef4444;
  --gd-cat-settings: #8b5cf6;
  --gd-cat-guides: #10b981;
  --gd-cat-tier: #f59e0b;
  --gd-cat-builds: #6366f1;
  --gd-cat-news: #00f0ff;
  --gd-cat-reviews: #ec4899;
  --gd-cat-gta6: #ff6b00;

  /* Spacing */
  --gd-space-xs: 0.25rem;
  --gd-space-sm: 0.5rem;
  --gd-space-md: 1rem;
  --gd-space-lg: 1.5rem;
  --gd-space-xl: 2rem;
  --gd-space-2xl: 3rem;
  --gd-space-3xl: 4rem;

  /* Typography */
  --gd-font-heading: 'Chakra Petch', sans-serif;
  --gd-font-body: 'IBM Plex Sans', sans-serif;
  --gd-font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --gd-content-width: 780px;
  --gd-sidebar-width: 320px;
  --gd-site-width: 1200px;

  /* Borders */
  --gd-radius-sm: 4px;
  --gd-radius-md: 8px;
  --gd-radius-lg: 12px;

  /* Transitions */
  --gd-transition: 0.2s ease;
}


/* ==========================================================================
   2. CSS RESET / NORMALIZE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--gd-bg-primary);
  color: var(--gd-text-primary);
  font-family: var(--gd-font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  padding-left: var(--gd-space-lg);
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

hr {
  border: none;
  height: 1px;
  background: var(--gd-bg-tertiary);
  margin: var(--gd-space-2xl) 0;
}

::selection {
  background: var(--gd-accent);
  color: var(--gd-bg-primary);
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--gd-bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gd-text-muted);
}


/* ==========================================================================
   3. SKIP LINK
   ========================================================================== */

.gd-skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gd-accent);
  color: var(--gd-bg-primary);
  padding: var(--gd-space-sm) var(--gd-space-md);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 var(--gd-radius-sm) var(--gd-radius-sm);
  z-index: 10000;
  transition: top var(--gd-transition);
  text-decoration: none;
  white-space: nowrap;
}

.gd-skip-link:focus {
  top: 0;
  outline: none;
}


/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--gd-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gd-text-primary);
  margin-top: 0;
  margin-bottom: var(--gd-space-sm);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-top: 0;
  margin-bottom: var(--gd-space-md);
  color: var(--gd-text-secondary);
}

a {
  color: var(--gd-accent);
  text-decoration: none;
  transition: color var(--gd-transition);
}

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

strong,
b {
  font-weight: 600;
  color: var(--gd-text-primary);
}

em,
i {
  font-style: italic;
}

code,
kbd,
samp {
  font-family: var(--gd-font-mono);
  font-size: 0.875em;
  background: var(--gd-bg-tertiary);
  padding: 0.15em 0.4em;
  border-radius: var(--gd-radius-sm);
  color: var(--gd-accent);
}

pre {
  font-family: var(--gd-font-mono);
  font-size: 0.875rem;
  background: var(--gd-bg-secondary);
  border: 1px solid var(--gd-bg-tertiary);
  border-radius: var(--gd-radius-md);
  padding: var(--gd-space-lg);
  overflow-x: auto;
  margin: var(--gd-space-lg) 0;
  line-height: 1.7;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

blockquote {
  margin: var(--gd-space-lg) 0;
  padding: var(--gd-space-md) var(--gd-space-lg);
  border-left: 3px solid var(--gd-accent);
  background: var(--gd-bg-secondary);
  border-radius: 0 var(--gd-radius-sm) var(--gd-radius-sm) 0;
  font-style: italic;
  color: var(--gd-text-secondary);
}

blockquote p:last-child {
  margin-bottom: 0;
}

small {
  font-size: 0.8125rem;
}


/* ==========================================================================
   5. LAYOUT
   ========================================================================== */

.gd-container {
  max-width: var(--gd-site-width);
  margin-inline: auto;
  padding-inline: var(--gd-space-md);
}

.gd-main {
  padding: var(--gd-space-lg) 0 var(--gd-space-3xl);
}

/* Flexbox layout with sidebar */
.gd-layout {
  display: flex;
  flex-direction: column;
  gap: var(--gd-space-xl);
}

.gd-layout--with-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--gd-space-xl);
}

.gd-layout__content {
  flex: 1;
  min-width: 0;
}

/* Single column layout for pages */
.gd-layout--single-col {
  max-width: var(--gd-content-width);
  margin-inline: auto;
}

@media (min-width: 900px) {
  .gd-layout--with-sidebar {
    flex-direction: row;
    gap: var(--gd-space-2xl);
  }
}


/* ==========================================================================
   6. HEADER
   ========================================================================== */

.gd-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gd-bg-primary);
  border-bottom: 1px solid var(--gd-bg-tertiary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gd-header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.gd-header.is-hidden {
  transform: translateY(-100%);
}

.gd-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--gd-site-width);
  margin-inline: auto;
  padding: 0.75rem var(--gd-space-md);
  gap: var(--gd-space-md);
}

/* Logo */
.gd-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.gd-logo:hover {
  opacity: 0.9;
}

.gd-logo__full {
  display: none;
}

.gd-logo__small {
  display: block;
}

@media (min-width: 600px) {
  .gd-logo__full {
    display: block;
  }

  .gd-logo__small {
    display: none;
  }
}

/* Header action buttons */
.gd-header__actions {
  display: flex;
  align-items: center;
  gap: var(--gd-space-sm);
}

.gd-search-toggle,
.gd-menu-toggle {
  background: none;
  border: none;
  color: var(--gd-text-primary);
  cursor: pointer;
  padding: var(--gd-space-sm);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--gd-radius-sm);
  transition: background var(--gd-transition), color var(--gd-transition);
}

.gd-search-toggle:hover,
.gd-menu-toggle:hover {
  background: var(--gd-bg-tertiary);
  color: var(--gd-accent);
}

/* Hide hamburger on desktop */
@media (min-width: 900px) {
  .gd-menu-toggle {
    display: none;
  }
}

/* Hamburger icon bars */
.gd-menu-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: absolute;
}

.gd-menu-toggle {
  position: relative;
}

.gd-menu-toggle__bar:nth-child(1) {
  transform: translateY(-6px);
}

.gd-menu-toggle__bar:nth-child(2) {
  transform: translateY(0);
}

.gd-menu-toggle__bar:nth-child(3) {
  transform: translateY(6px);
}

/* Animate to X when active */
.gd-menu-toggle[aria-expanded="true"] .gd-menu-toggle__bar:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.gd-menu-toggle[aria-expanded="true"] .gd-menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.gd-menu-toggle[aria-expanded="true"] .gd-menu-toggle__bar:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}


/* ==========================================================================
   7. NAVIGATION
   ========================================================================== */

.gd-nav {
  display: none;
}

@media (min-width: 900px) {
  .gd-nav {
    display: flex;
    align-items: center;
  }
}

.gd-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--gd-space-xs);
}

.gd-nav__list li {
  position: relative;
}

.gd-nav__list > li > a {
  display: flex;
  align-items: center;
  padding: var(--gd-space-sm) 0.75rem;
  color: var(--gd-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--gd-radius-sm);
  transition: color var(--gd-transition), background var(--gd-transition);
  white-space: nowrap;
  position: relative;
  min-height: 44px;
}

.gd-nav__list > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--gd-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--gd-transition);
  border-radius: 1px;
}

.gd-nav__list > li > a:hover,
.gd-nav__list > li.current-menu-item > a,
.gd-nav__list > li.current-menu-ancestor > a {
  color: var(--gd-text-primary);
}

.gd-nav__list > li > a:hover::after,
.gd-nav__list > li.current-menu-item > a::after,
.gd-nav__list > li.current-menu-ancestor > a::after {
  transform: scaleX(1);
}

/* Category-specific nav colors */
.gd-nav__list > li.menu-item-error-fixes > a::after { background: var(--gd-cat-error); }
.gd-nav__list > li.menu-item-best-settings > a::after { background: var(--gd-cat-settings); }
.gd-nav__list > li.menu-item-game-guides > a::after { background: var(--gd-cat-guides); }
.gd-nav__list > li.menu-item-tier-lists > a::after { background: var(--gd-cat-tier); }
.gd-nav__list > li.menu-item-pc-build-guides > a::after { background: var(--gd-cat-builds); }
.gd-nav__list > li.menu-item-gaming-news > a::after { background: var(--gd-cat-news); }
.gd-nav__list > li.menu-item-game-reviews > a::after { background: var(--gd-cat-reviews); }
.gd-nav__list > li.menu-item-gta-6 > a::after { background: var(--gd-cat-gta6); }

/* Dropdown menus (depth-2) */
.gd-nav__list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--gd-bg-secondary);
  border: 1px solid var(--gd-bg-tertiary);
  border-radius: var(--gd-radius-md);
  padding: var(--gd-space-sm) 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 100;
}

.gd-nav__list li:hover > .sub-menu,
.gd-nav__list li:focus-within > .sub-menu {
  display: block;
}

.gd-nav__list .sub-menu li a {
  display: block;
  padding: var(--gd-space-sm) var(--gd-space-md);
  color: var(--gd-text-secondary);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: background var(--gd-transition), color var(--gd-transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.gd-nav__list .sub-menu li a:hover {
  background: var(--gd-bg-tertiary);
  color: var(--gd-accent);
}


/* ==========================================================================
   8. SEARCH OVERLAY
   ========================================================================== */

.gd-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(10, 10, 15, 0.97);
  padding: var(--gd-space-xl) var(--gd-space-md);
  backdrop-filter: blur(8px);
  animation: gd-fade-in 0.2s ease;
}

.gd-search-overlay[hidden] {
  display: none;
}

@keyframes gd-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gd-search-overlay__inner {
  max-width: 640px;
  margin-inline: auto;
}

.gd-search-overlay .gd-search-form {
  display: flex;
  align-items: center;
  gap: var(--gd-space-sm);
  background: var(--gd-bg-secondary);
  border: 1px solid var(--gd-bg-tertiary);
  border-radius: var(--gd-radius-md);
  padding: var(--gd-space-sm) var(--gd-space-md);
}

.gd-search-overlay .gd-search-form svg {
  flex-shrink: 0;
  color: var(--gd-text-muted);
}

.gd-search-overlay .gd-search-form__input {
  flex: 1;
  background: none;
  border: none;
  color: var(--gd-text-primary);
  font-size: 1.125rem;
  padding: var(--gd-space-sm);
  outline: none;
  min-height: 44px;
}

.gd-search-overlay .gd-search-form__input::placeholder {
  color: var(--gd-text-muted);
}

.gd-search-overlay__close {
  background: none;
  border: none;
  color: var(--gd-text-muted);
  cursor: pointer;
  padding: var(--gd-space-sm);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--gd-radius-sm);
  transition: color var(--gd-transition), background var(--gd-transition);
}

.gd-search-overlay__close:hover {
  color: var(--gd-text-primary);
  background: var(--gd-bg-tertiary);
}

.gd-search-results {
  margin-top: var(--gd-space-lg);
  color: var(--gd-text-secondary);
  font-size: 0.875rem;
}


/* ==========================================================================
   9. MOBILE MENU
   ========================================================================== */

.gd-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--gd-bg-primary);
  overflow-y: auto;
  padding-top: 60px;
  animation: gd-slide-in 0.3s ease;
}

.gd-mobile-menu[hidden] {
  display: none;
}

@keyframes gd-slide-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 900px) {
  .gd-mobile-menu {
    display: none !important;
  }
}

.gd-mobile-menu__inner {
  padding: var(--gd-space-md);
  max-width: 480px;
  margin-inline: auto;
}

.gd-mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gd-mobile-menu__list li {
  border-bottom: 1px solid var(--gd-bg-tertiary);
}

.gd-mobile-menu__list li a {
  display: flex;
  align-items: center;
  padding: var(--gd-space-md);
  color: var(--gd-text-primary);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  min-height: 48px;
  transition: color var(--gd-transition), background var(--gd-transition);
}

.gd-mobile-menu__list li a:hover {
  color: var(--gd-accent);
  background: var(--gd-bg-secondary);
}

.gd-mobile-menu__list li.current-menu-item > a {
  color: var(--gd-accent);
  border-left: 3px solid var(--gd-accent);
}

.gd-mobile-menu__list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--gd-bg-secondary);
}

.gd-mobile-menu__list .sub-menu li a {
  padding-left: var(--gd-space-2xl);
  font-size: 0.9375rem;
  color: var(--gd-text-secondary);
}

.gd-mobile-menu__list .sub-menu li a:hover {
  color: var(--gd-accent);
}


/* ==========================================================================
   10. BREADCRUMBS
   ========================================================================== */

.gd-breadcrumbs-wrapper {
  background: var(--gd-bg-secondary);
  border-bottom: 1px solid var(--gd-bg-tertiary);
  padding: var(--gd-space-sm) 0;
}

.gd-breadcrumbs {
  font-size: 0.8125rem;
}

.gd-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--gd-space-xs);
}

.gd-breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: var(--gd-space-xs);
}

.gd-breadcrumbs__link {
  color: var(--gd-text-muted);
  text-decoration: none;
  transition: color var(--gd-transition);
}

.gd-breadcrumbs__link:hover {
  color: var(--gd-accent);
}

.gd-breadcrumbs__current {
  color: var(--gd-text-secondary);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gd-breadcrumbs__sep {
  color: var(--gd-text-muted);
  display: flex;
  align-items: center;
  opacity: 0.5;
}

.gd-breadcrumbs__sep svg {
  width: 12px;
  height: 12px;
}


/* ==========================================================================
   11. POST GRID
   ========================================================================== */

.gd-post-grid {
  display: grid;
  gap: var(--gd-space-lg);
  grid-template-columns: 1fr;
}

/* 3-column variant */
.gd-post-grid--3col {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .gd-post-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .gd-post-grid--3col {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 4-column variant */
.gd-post-grid--4col {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .gd-post-grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .gd-post-grid--4col {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .gd-post-grid--4col {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ==========================================================================
   12. ARTICLE CARD
   ========================================================================== */

.gd-card {
  display: flex;
  flex-direction: column;
  background: var(--gd-bg-secondary);
  border: 1px solid var(--gd-bg-tertiary);
  border-radius: var(--gd-radius-md);
  overflow: hidden;
  transition: transform var(--gd-transition), border-color var(--gd-transition),
              box-shadow var(--gd-transition);
}

.gd-card:hover {
  transform: translateY(-3px);
  border-color: var(--gd-accent);
  box-shadow: 0 4px 24px var(--gd-accent-glow);
}

.gd-card__image-link {
  display: block;
  text-decoration: none;
}

.gd-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gd-bg-tertiary);
}

.gd-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gd-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gd-card:hover .gd-card__img {
  transform: scale(1.05);
}

.gd-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--gd-space-sm);
  padding: var(--gd-space-md);
  flex: 1;
}

.gd-card__title {
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0;
}

.gd-card__title a {
  color: var(--gd-text-primary);
  text-decoration: none;
  transition: color var(--gd-transition);
}

.gd-card__title a:hover {
  color: var(--gd-accent);
}

.gd-card__excerpt {
  font-size: 0.8125rem;
  color: var(--gd-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gd-card__meta {
  display: flex;
  align-items: center;
  gap: var(--gd-space-sm);
  font-size: 0.75rem;
  color: var(--gd-text-muted);
  margin-top: auto;
  padding-top: var(--gd-space-sm);
  border-top: 1px solid var(--gd-bg-tertiary);
}

.gd-card__date {
  color: var(--gd-text-muted);
}

.gd-card__sep {
  opacity: 0.5;
}


/* ==========================================================================
   13. HERO CARD
   ========================================================================== */

.gd-hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--gd-bg-secondary);
  border: 1px solid var(--gd-bg-tertiary);
  border-radius: var(--gd-radius-lg);
  overflow: hidden;
  transition: border-color var(--gd-transition), box-shadow var(--gd-transition);
}

.gd-hero-card:hover {
  border-color: var(--gd-accent);
  box-shadow: 0 8px 40px var(--gd-accent-glow);
}

.gd-hero-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gd-bg-tertiary);
}

.gd-hero-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gd-hero-card:hover .gd-hero-card__img {
  transform: scale(1.03);
}

.gd-hero-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--gd-space-sm);
  padding: var(--gd-space-lg);
}

.gd-hero-card__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.2;
  margin-bottom: 0;
}

.gd-hero-card__title a {
  color: var(--gd-text-primary);
  text-decoration: none;
  transition: color var(--gd-transition);
}

.gd-hero-card__title a:hover {
  color: var(--gd-accent);
}

.gd-hero-card__excerpt {
  font-size: 0.9375rem;
  color: var(--gd-text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gd-hero-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gd-space-sm);
  font-size: 0.8125rem;
  color: var(--gd-text-muted);
}

.gd-hero-card__author {
  color: var(--gd-text-secondary);
  font-weight: 500;
}

.gd-hero-card__date {
  color: var(--gd-text-muted);
}

.gd-hero-card__sep {
  opacity: 0.4;
}

/* Hero grid: hero + trending sidebar */
.gd-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gd-space-lg);
}

@media (min-width: 900px) {
  .gd-hero-grid {
    grid-template-columns: 1fr 340px;
    gap: var(--gd-space-xl);
  }
}

.gd-hero-main {
  min-width: 0;
}

.gd-hero-trending {
  display: flex;
  flex-direction: column;
}


/* ==========================================================================
   14. CATEGORY BADGE
   ========================================================================== */

.gd-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.6em;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--gd-radius-sm);
  text-decoration: none;
  line-height: 1.4;
  transition: opacity var(--gd-transition);
  white-space: nowrap;
  /* Default: accent color */
  background: var(--gd-accent-glow);
  color: var(--gd-accent);
}

.gd-category-badge:hover {
  opacity: 0.85;
}

.gd-category-badge--large {
  padding: 0.35em 0.8em;
  font-size: 0.8125rem;
}

/* Category-specific colors via data-cat attribute */
.gd-category-badge[data-cat="error-fixes"],
.gd-category-badge[data-cat="pc-errors"],
.gd-category-badge[data-cat="console-errors"],
.gd-category-badge[data-cat="network-issues"] {
  background: rgba(239, 68, 68, 0.15);
  color: var(--gd-cat-error);
}

.gd-category-badge[data-cat="best-settings"] {
  background: rgba(139, 92, 246, 0.15);
  color: var(--gd-cat-settings);
}

.gd-category-badge[data-cat="game-guides"],
.gd-category-badge[data-cat="beginner-guides"] {
  background: rgba(16, 185, 129, 0.15);
  color: var(--gd-cat-guides);
}

.gd-category-badge[data-cat="tier-lists"] {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gd-cat-tier);
}

.gd-category-badge[data-cat="pc-build-guides"] {
  background: rgba(99, 102, 241, 0.15);
  color: var(--gd-cat-builds);
}

.gd-category-badge[data-cat="gaming-news"],
.gd-category-badge[data-cat="news"] {
  background: rgba(0, 240, 255, 0.15);
  color: var(--gd-cat-news);
}

.gd-category-badge[data-cat="game-reviews"] {
  background: rgba(236, 72, 153, 0.15);
  color: var(--gd-cat-reviews);
}

.gd-category-badge[data-cat="gta-6"] {
  background: rgba(255, 107, 0, 0.15);
  color: var(--gd-cat-gta6);
}


/* ==========================================================================
   15. SECTION HEADERS
   ========================================================================== */

.gd-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gd-space-md);
  margin-bottom: var(--gd-space-lg);
  padding-bottom: var(--gd-space-sm);
  border-bottom: 1px solid var(--gd-bg-tertiary);
}

.gd-section-header__title {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--gd-space-sm);
}

.gd-section-header__accent {
  display: inline-flex;
  align-items: center;
}

.gd-section-header__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gd-accent);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--gd-transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.gd-section-header__link:hover {
  color: var(--gd-accent-hover);
}

/* GTA 6 variant */
.gd-section-header__title--gta6 {
  color: var(--gd-cat-gta6);
}

.gd-section-header__link--gta6 {
  color: var(--gd-cat-gta6);
}

.gd-section-header__link--gta6:hover {
  color: #e05e00;
}

/* Section label (e.g., "Trending Now") */
.gd-section-label {
  display: flex;
  align-items: center;
  gap: var(--gd-space-sm);
  font-family: var(--gd-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gd-hot);
  margin-bottom: var(--gd-space-md);
  padding-bottom: var(--gd-space-sm);
  border-bottom: 2px solid var(--gd-hot);
}

.gd-section-label svg {
  flex-shrink: 0;
}


/* ==========================================================================
   16. TRENDING LIST
   ========================================================================== */

.gd-trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gd-trending-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--gd-space-md);
  padding: var(--gd-space-md) 0;
  border-bottom: 1px solid var(--gd-bg-tertiary);
}

.gd-trending-list__item:last-child {
  border-bottom: none;
}

.gd-trending-list__num {
  font-family: var(--gd-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gd-accent);
  opacity: 0.4;
  line-height: 1;
  min-width: 1.5rem;
  flex-shrink: 0;
}

.gd-trending-list__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gd-text-primary);
  text-decoration: none;
  line-height: 1.4;
  transition: color var(--gd-transition);
}

.gd-trending-list__link:hover {
  color: var(--gd-accent);
}


/* ==========================================================================
   17. COMPACT LIST
   ========================================================================== */

.gd-compact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gd-compact-list__item {
  display: flex;
  align-items: center;
  gap: var(--gd-space-md);
  padding: var(--gd-space-md) 0;
  border-bottom: 1px solid var(--gd-bg-tertiary);
}

.gd-compact-list__item:last-child {
  border-bottom: none;
}

.gd-compact-list__thumb {
  display: block;
  width: 72px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--gd-radius-sm);
  overflow: hidden;
  background: var(--gd-bg-tertiary);
}

.gd-compact-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gd-compact-list__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.gd-compact-list__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gd-text-primary);
  text-decoration: none;
  line-height: 1.3;
  transition: color var(--gd-transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gd-compact-list__link:hover {
  color: var(--gd-accent);
}

.gd-compact-list__date {
  font-size: 0.75rem;
  color: var(--gd-text-muted);
}


/* ==========================================================================
   18. ARCHIVE HEADER
   ========================================================================== */

.gd-archive-header {
  margin-bottom: var(--gd-space-xl);
  padding-bottom: var(--gd-space-lg);
  border-bottom: 1px solid var(--gd-bg-tertiary);
}

.gd-archive-header__title {
  margin-bottom: var(--gd-space-sm);
}

.gd-archive-header__description {
  font-size: 0.9375rem;
  color: var(--gd-text-secondary);
  max-width: 640px;
  line-height: 1.6;
}

.gd-archive-header__description p {
  margin-bottom: 0;
}

.gd-archive-header__count {
  font-size: 0.8125rem;
  color: var(--gd-text-muted);
  margin-top: var(--gd-space-sm);
}

.gd-archive-header__count strong {
  color: var(--gd-text-primary);
}

/* Category variant with colored accent */
.gd-archive-header--category {
  border-bottom-color: var(--cat-color, var(--gd-bg-tertiary));
}

.gd-archive-header--category .gd-archive-header__title {
  color: var(--cat-color, var(--gd-text-primary));
}

/* Search variant */
.gd-archive-header--search .gd-archive-header__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}


/* ==========================================================================
   19. PAGINATION
   ========================================================================== */

.navigation.pagination {
  margin-top: var(--gd-space-2xl);
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--gd-space-xs);
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: var(--gd-space-sm) var(--gd-space-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gd-text-secondary);
  background: var(--gd-bg-secondary);
  border: 1px solid var(--gd-bg-tertiary);
  border-radius: var(--gd-radius-sm);
  text-decoration: none;
  transition: all var(--gd-transition);
  gap: var(--gd-space-xs);
}

.page-numbers:hover {
  color: var(--gd-text-primary);
  border-color: var(--gd-accent);
  background: var(--gd-accent-glow);
}

.page-numbers.current {
  background: var(--gd-accent);
  color: var(--gd-bg-primary);
  border-color: var(--gd-accent);
  font-weight: 700;
}

.page-numbers.dots {
  background: none;
  border-color: transparent;
  cursor: default;
  color: var(--gd-text-muted);
}

.page-numbers.dots:hover {
  background: none;
  border-color: transparent;
  color: var(--gd-text-muted);
}

.page-numbers svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.page-numbers.prev,
.page-numbers.next {
  gap: var(--gd-space-xs);
}


/* ==========================================================================
   20. SIDEBAR
   ========================================================================== */

.gd-sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--gd-space-lg);
}

@media (min-width: 900px) {
  .gd-sidebar {
    width: var(--gd-sidebar-width);
    flex-shrink: 0;
  }
}

.gd-sidebar__sticky {
  position: static;
}

@media (min-width: 900px) {
  .gd-sidebar__sticky {
    position: sticky;
    top: 80px;
  }
}

/* Widget */
.gd-widget {
  background: var(--gd-bg-secondary);
  border: 1px solid var(--gd-bg-tertiary);
  border-radius: var(--gd-radius-md);
  padding: var(--gd-space-lg);
}

.gd-widget__title {
  font-family: var(--gd-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gd-text-primary);
  margin-bottom: var(--gd-space-md);
  padding-bottom: var(--gd-space-sm);
  border-bottom: 2px solid var(--gd-accent);
}

/* Widget post list */
.gd-widget-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.gd-widget-posts__item {
  display: flex;
  align-items: flex-start;
  gap: var(--gd-space-sm);
  padding: var(--gd-space-sm) 0;
  border-bottom: 1px solid var(--gd-bg-tertiary);
}

.gd-widget-posts__item:last-child {
  border-bottom: none;
}

.gd-widget-posts__item--compact {
  align-items: center;
}

.gd-widget-posts__thumb {
  display: block;
  width: 56px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--gd-radius-sm);
  overflow: hidden;
  background: var(--gd-bg-tertiary);
}

.gd-widget-posts__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gd-widget-posts__content {
  flex: 1;
  min-width: 0;
}

.gd-widget-posts__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gd-text-primary);
  text-decoration: none;
  line-height: 1.3;
  transition: color var(--gd-transition);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gd-widget-posts__link:hover {
  color: var(--gd-accent);
}


/* ==========================================================================
   21. AD ZONES
   ========================================================================== */

.gd-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gd-bg-secondary);
  border: 1px dashed var(--gd-bg-tertiary);
  border-radius: var(--gd-radius-sm);
  margin: var(--gd-space-lg) 0;
  padding: var(--gd-space-sm);
  overflow: hidden;
}

.gd-ad__label {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gd-text-muted);
  text-align: center;
  margin-bottom: var(--gd-space-xs);
  opacity: 0.6;
}

.gd-ad__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gd-ad--desktop-only {
  display: none;
}

@media (min-width: 900px) {
  .gd-ad--desktop-only {
    display: flex;
  }
}

.gd-ad--mobile-only {
  display: flex;
}

@media (min-width: 900px) {
  .gd-ad--mobile-only {
    display: none;
  }
}

.gd-ad--in-content {
  margin: var(--gd-space-xl) 0;
  clear: both;
}

/* Mobile anchor ad */
.gd-ad--mobile_anchor {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  margin: 0;
  border-radius: 0;
  border-top: 1px solid var(--gd-bg-tertiary);
  background: var(--gd-bg-primary);
}


/* ==========================================================================
   22. BUTTONS
   ========================================================================== */

.gd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gd-space-sm);
  padding: 0.625rem var(--gd-space-lg);
  font-family: var(--gd-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--gd-bg-tertiary);
  border-radius: var(--gd-radius-sm);
  background: var(--gd-bg-secondary);
  color: var(--gd-text-primary);
  cursor: pointer;
  transition: all var(--gd-transition);
  min-height: 44px;
  white-space: nowrap;
}

.gd-btn:hover {
  border-color: var(--gd-text-muted);
  background: var(--gd-bg-tertiary);
  color: var(--gd-text-primary);
}

.gd-btn--primary {
  background: var(--gd-accent);
  color: var(--gd-bg-primary);
  border-color: var(--gd-accent);
}

.gd-btn--primary:hover {
  background: var(--gd-accent-hover);
  border-color: var(--gd-accent-hover);
  color: var(--gd-bg-primary);
}

.gd-btn--large {
  padding: 0.875rem var(--gd-space-xl);
  font-size: 1rem;
  min-height: 52px;
}

.gd-btn svg {
  flex-shrink: 0;
}


/* ==========================================================================
   23. SEARCH FORM
   ========================================================================== */

.gd-search-form {
  display: flex;
  gap: var(--gd-space-sm);
}

.gd-search-form__input {
  flex: 1;
  padding: var(--gd-space-sm) var(--gd-space-md);
  background: var(--gd-bg-secondary);
  border: 1px solid var(--gd-bg-tertiary);
  border-radius: var(--gd-radius-sm);
  color: var(--gd-text-primary);
  font-size: 0.9375rem;
  min-height: 44px;
  transition: border-color var(--gd-transition), box-shadow var(--gd-transition);
}

.gd-search-form__input::placeholder {
  color: var(--gd-text-muted);
}

.gd-search-form__input:focus {
  outline: none;
  border-color: var(--gd-accent);
  box-shadow: 0 0 0 3px var(--gd-accent-glow);
}

/* Inline variant (used in no-results, search page) */
.gd-search-form--inline {
  max-width: 480px;
  margin-inline: auto;
}

/* 404 variant */
.gd-search-form--404 {
  max-width: 520px;
  margin: var(--gd-space-xl) auto;
}


/* ==========================================================================
   24. FOOTER
   ========================================================================== */

.gd-footer {
  background: var(--gd-bg-secondary);
  border-top: 1px solid var(--gd-bg-tertiary);
  margin-top: var(--gd-space-3xl);
}

.gd-footer__top {
  padding: var(--gd-space-3xl) 0;
}

.gd-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gd-space-xl);
}

@media (min-width: 600px) {
  .gd-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .gd-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gd-footer__col {
  display: flex;
  flex-direction: column;
}

.gd-footer__heading {
  font-family: var(--gd-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gd-text-primary);
  margin-bottom: var(--gd-space-md);
  padding-bottom: var(--gd-space-sm);
  border-bottom: 2px solid var(--gd-accent);
}

.gd-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gd-space-sm);
}

.gd-footer__links li a {
  color: var(--gd-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.6;
  transition: color var(--gd-transition);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.gd-footer__links li a:hover {
  color: var(--gd-accent);
}

/* Social links */
.gd-footer__social {
  display: flex;
  gap: var(--gd-space-sm);
  flex-wrap: wrap;
}

.gd-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--gd-text-secondary);
  background: var(--gd-bg-tertiary);
  border-radius: var(--gd-radius-sm);
  text-decoration: none;
  transition: color var(--gd-transition), background var(--gd-transition);
}

.gd-footer__social-link:hover {
  color: var(--gd-accent);
  background: var(--gd-bg-elevated);
}

/* Footer bottom */
.gd-footer__bottom {
  border-top: 1px solid var(--gd-bg-tertiary);
  padding: var(--gd-space-lg) 0;
}

.gd-footer__bottom .gd-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gd-space-sm);
  text-align: center;
}

.gd-footer__bottom p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--gd-text-muted);
}

.gd-footer__affiliate {
  font-size: 0.75rem !important;
  opacity: 0.7;
}


/* ==========================================================================
   25. READING PROGRESS BAR
   ========================================================================== */

.gd-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1001;
  background: transparent;
  pointer-events: none;
}

.gd-reading-progress__bar {
  height: 100%;
  width: 0;
  background: var(--gd-accent);
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--gd-accent-glow);
}


/* ==========================================================================
   26. NEWSLETTER CTA
   ========================================================================== */

.gd-newsletter {
  padding: var(--gd-space-3xl) 0;
  background: linear-gradient(
    135deg,
    var(--gd-bg-elevated) 0%,
    var(--gd-bg-secondary) 50%,
    rgba(0, 240, 255, 0.05) 100%
  );
  border-top: 1px solid var(--gd-bg-tertiary);
  border-bottom: 1px solid var(--gd-bg-tertiary);
  margin: var(--gd-space-2xl) 0;
}

.gd-newsletter__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--gd-space-xl);
  max-width: 600px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .gd-newsletter__inner {
    flex-direction: row;
    text-align: left;
    max-width: 100%;
  }
}

.gd-newsletter__content {
  flex: 1;
}

.gd-newsletter__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: var(--gd-space-sm);
  color: var(--gd-text-primary);
}

.gd-newsletter__text {
  color: var(--gd-text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.gd-newsletter__form {
  width: 100%;
  max-width: 400px;
  flex-shrink: 0;
}

.gd-newsletter__input-group {
  display: flex;
  gap: var(--gd-space-sm);
}

.gd-newsletter__input {
  flex: 1;
  padding: var(--gd-space-sm) var(--gd-space-md);
  background: var(--gd-bg-primary);
  border: 1px solid var(--gd-bg-tertiary);
  border-radius: var(--gd-radius-sm);
  color: var(--gd-text-primary);
  font-size: 0.9375rem;
  min-height: 44px;
  transition: border-color var(--gd-transition);
}

.gd-newsletter__input::placeholder {
  color: var(--gd-text-muted);
}

.gd-newsletter__input:focus {
  outline: none;
  border-color: var(--gd-accent);
  box-shadow: 0 0 0 3px var(--gd-accent-glow);
}

.gd-newsletter__btn {
  flex-shrink: 0;
}


/* ==========================================================================
   27. POST META (Single Article)
   ========================================================================== */

.gd-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gd-space-md);
  margin: var(--gd-space-md) 0 var(--gd-space-lg);
  font-size: 0.8125rem;
  color: var(--gd-text-muted);
}

.gd-post-meta__author {
  display: flex;
  align-items: center;
  gap: var(--gd-space-sm);
}

.gd-post-meta__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.gd-post-meta__author-name {
  color: var(--gd-text-primary);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--gd-transition);
}

.gd-post-meta__author-name:hover {
  color: var(--gd-accent);
}

.gd-post-meta__dates {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gd-space-sm);
}

.gd-post-meta__date {
  color: var(--gd-text-muted);
}

.gd-post-meta__updated {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gd-success);
  font-size: 0.75rem;
}

.gd-post-meta__updated svg {
  flex-shrink: 0;
}


/* ==========================================================================
   28. AUTHOR BOX
   ========================================================================== */

.gd-author-box {
  display: flex;
  gap: var(--gd-space-lg);
  padding: var(--gd-space-xl);
  background: var(--gd-bg-secondary);
  border: 1px solid var(--gd-bg-tertiary);
  border-radius: var(--gd-radius-md);
  margin: var(--gd-space-2xl) 0;
}

.gd-author-box__avatar {
  flex-shrink: 0;
}

.gd-author-box__avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gd-bg-tertiary);
}

.gd-author-box__info {
  flex: 1;
  min-width: 0;
}

.gd-author-box__header {
  margin-bottom: var(--gd-space-sm);
}

.gd-author-box__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gd-text-muted);
}

.gd-author-box__name {
  font-size: 1.125rem;
  margin-top: 2px;
  margin-bottom: 0;
}

.gd-author-box__name a {
  color: var(--gd-text-primary);
  text-decoration: none;
  transition: color var(--gd-transition);
}

.gd-author-box__name a:hover {
  color: var(--gd-accent);
}

.gd-author-box__bio {
  font-size: 0.875rem;
  color: var(--gd-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--gd-space-sm);
}

.gd-author-box__meta {
  font-size: 0.8125rem;
}

.gd-author-box__posts-link {
  color: var(--gd-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--gd-transition);
}

.gd-author-box__posts-link:hover {
  color: var(--gd-accent-hover);
}

/* Stack on small screens */
@media (max-width: 599px) {
  .gd-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}


/* ==========================================================================
   29. SHARE BUTTONS
   ========================================================================== */

.gd-share {
  display: flex;
  align-items: center;
  gap: var(--gd-space-md);
  padding: var(--gd-space-lg) 0;
  border-top: 1px solid var(--gd-bg-tertiary);
  border-bottom: 1px solid var(--gd-bg-tertiary);
  margin: var(--gd-space-xl) 0;
}

.gd-share__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gd-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.gd-share__buttons {
  display: flex;
  gap: var(--gd-space-sm);
  flex-wrap: wrap;
}

.gd-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gd-space-xs);
  min-width: 44px;
  min-height: 44px;
  padding: var(--gd-space-sm) var(--gd-space-md);
  border-radius: var(--gd-radius-sm);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all var(--gd-transition);
  border: 1px solid var(--gd-bg-tertiary);
  background: var(--gd-bg-secondary);
  color: var(--gd-text-secondary);
  cursor: pointer;
}

.gd-share__btn:hover {
  border-color: var(--gd-text-muted);
  color: var(--gd-text-primary);
  background: var(--gd-bg-tertiary);
}

.gd-share__btn--twitter:hover {
  border-color: #1da1f2;
  color: #1da1f2;
}

.gd-share__btn--facebook:hover {
  border-color: #4267b2;
  color: #4267b2;
}

.gd-share__btn--reddit:hover {
  border-color: #ff4500;
  color: #ff4500;
}

.gd-share__btn--copy:hover {
  border-color: var(--gd-accent);
  color: var(--gd-accent);
}

.gd-share__copy-text {
  font-size: 0.75rem;
}

.gd-share__btn svg {
  flex-shrink: 0;
}


/* ==========================================================================
   30. DIFFICULTY BADGE
   ========================================================================== */

.gd-difficulty {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.6em;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--gd-radius-sm);
  line-height: 1.4;
}

.gd-difficulty--easy {
  background: rgba(16, 185, 129, 0.15);
  color: var(--gd-success);
}

.gd-difficulty--medium {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gd-warning);
}

.gd-difficulty--hard {
  background: rgba(239, 68, 68, 0.15);
  color: var(--gd-danger);
}

.gd-difficulty--expert {
  background: rgba(139, 92, 246, 0.15);
  color: var(--gd-cat-settings);
}


/* ==========================================================================
   31. READING TIME
   ========================================================================== */

.gd-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--gd-text-muted);
  white-space: nowrap;
}

.gd-reading-time svg {
  flex-shrink: 0;
  opacity: 0.7;
}


/* ==========================================================================
   32. GTA 6 SECTION
   ========================================================================== */

.gd-gta6-section {
  padding: var(--gd-space-2xl) 0;
}

.gd-gta6-banner {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.08) 0%,
    var(--gd-bg-secondary) 40%,
    var(--gd-bg-secondary) 60%,
    rgba(255, 107, 0, 0.05) 100%
  );
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: var(--gd-radius-lg);
  padding: var(--gd-space-xl);
}

.gd-gta6-banner .gd-section-header {
  border-bottom-color: rgba(255, 107, 0, 0.3);
}


/* ==========================================================================
   33. TWO-COLUMN GRID SECTION
   ========================================================================== */

.gd-two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gd-space-xl);
}

@media (min-width: 900px) {
  .gd-two-col-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gd-two-col-grid__col {
  min-width: 0;
}


/* ==========================================================================
   34. NO RESULTS
   ========================================================================== */

.gd-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--gd-space-3xl) var(--gd-space-md);
}

.gd-no-results__icon {
  margin-bottom: var(--gd-space-lg);
  opacity: 0.6;
}

.gd-no-results__title {
  margin-bottom: var(--gd-space-sm);
}

.gd-no-results__text {
  max-width: 420px;
  margin-bottom: var(--gd-space-xl);
}

.gd-no-results .gd-search-form {
  margin-bottom: var(--gd-space-2xl);
}

.gd-no-results__categories {
  width: 100%;
  max-width: 600px;
}

.gd-no-results__categories h3 {
  font-size: 1rem;
  margin-bottom: var(--gd-space-md);
}


/* ==========================================================================
   35. 404 PAGE
   ========================================================================== */

.gd-main--404 {
  padding-top: var(--gd-space-2xl);
}

.gd-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gd-404__hero {
  margin-bottom: var(--gd-space-xl);
}

/* Glitch effect on "404" text */
.gd-404__glitch {
  font-family: var(--gd-font-heading);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  color: var(--gd-accent);
  position: relative;
  line-height: 1;
  margin-bottom: var(--gd-space-md);
  animation: gd-glitch-skew 4s infinite linear alternate-reverse;
}

.gd-404__glitch::before,
.gd-404__glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gd-404__glitch::before {
  color: var(--gd-hot);
  animation: gd-glitch-1 3s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  transform: translate(-3px, -2px);
}

.gd-404__glitch::after {
  color: var(--gd-info);
  animation: gd-glitch-2 2s infinite linear alternate-reverse;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
  transform: translate(3px, 2px);
}

@keyframes gd-glitch-1 {
  0% { clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); transform: translate(-3px, -2px); }
  20% { clip-path: polygon(0 15%, 100% 15%, 100% 50%, 0 50%); transform: translate(2px, 1px); }
  40% { clip-path: polygon(0 5%, 100% 5%, 100% 40%, 0 40%); transform: translate(-1px, -3px); }
  60% { clip-path: polygon(0 20%, 100% 20%, 100% 55%, 0 55%); transform: translate(3px, 2px); }
  80% { clip-path: polygon(0 10%, 100% 10%, 100% 45%, 0 45%); transform: translate(-2px, 1px); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); transform: translate(-3px, -2px); }
}

@keyframes gd-glitch-2 {
  0% { clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%); transform: translate(3px, 2px); }
  25% { clip-path: polygon(0 55%, 100% 55%, 100% 90%, 0 90%); transform: translate(-2px, -1px); }
  50% { clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%); transform: translate(1px, 3px); }
  75% { clip-path: polygon(0 50%, 100% 50%, 100% 85%, 0 85%); transform: translate(-3px, -2px); }
  100% { clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%); transform: translate(3px, 2px); }
}

@keyframes gd-glitch-skew {
  0% { transform: skew(0deg); }
  20% { transform: skew(0deg); }
  21% { transform: skew(2deg); }
  22% { transform: skew(0deg); }
  50% { transform: skew(0deg); }
  51% { transform: skew(-1deg); }
  52% { transform: skew(0deg); }
  80% { transform: skew(0deg); }
  81% { transform: skew(3deg); }
  82% { transform: skew(0deg); }
  100% { transform: skew(0deg); }
}

/* Reduce animation for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .gd-404__glitch {
    animation: none;
  }

  .gd-404__glitch::before,
  .gd-404__glitch::after {
    animation: none;
  }
}

.gd-404__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: var(--gd-space-sm);
}

.gd-404__text {
  max-width: 480px;
  color: var(--gd-text-secondary);
  margin-bottom: 0;
}

.gd-404__categories {
  margin: var(--gd-space-2xl) 0;
  width: 100%;
  max-width: 640px;
}

.gd-404__subtitle {
  font-size: 1.125rem;
  margin-bottom: var(--gd-space-lg);
}

.gd-404__popular {
  width: 100%;
  margin: var(--gd-space-xl) 0;
}

.gd-404__home {
  margin-top: var(--gd-space-xl);
}


/* ==========================================================================
   36. COMMENTS
   ========================================================================== */

.gd-comments {
  margin-top: var(--gd-space-2xl);
  padding-top: var(--gd-space-xl);
  border-top: 1px solid var(--gd-bg-tertiary);
}

.gd-comments__title {
  font-size: 1.25rem;
  margin-bottom: var(--gd-space-xl);
}

.gd-comments__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gd-comments__list .children {
  list-style: none;
  margin: 0;
  padding-left: var(--gd-space-xl);
}

@media (max-width: 599px) {
  .gd-comments__list .children {
    padding-left: var(--gd-space-md);
  }
}

/* Individual comment */
.gd-comment {
  margin-bottom: var(--gd-space-lg);
}

.gd-comment__inner {
  display: flex;
  gap: var(--gd-space-md);
  padding: var(--gd-space-md);
  background: var(--gd-bg-secondary);
  border: 1px solid var(--gd-bg-tertiary);
  border-radius: var(--gd-radius-md);
}

.gd-comment__avatar {
  flex-shrink: 0;
}

.gd-comment__avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.gd-comment__body {
  flex: 1;
  min-width: 0;
}

.gd-comment__header {
  display: flex;
  align-items: baseline;
  gap: var(--gd-space-sm);
  margin-bottom: var(--gd-space-sm);
  flex-wrap: wrap;
}

.gd-comment__author {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gd-text-primary);
}

.gd-comment__date {
  font-size: 0.75rem;
  color: var(--gd-text-muted);
}

.gd-comment__pending {
  font-size: 0.8125rem;
  color: var(--gd-warning);
  font-style: italic;
  margin-bottom: var(--gd-space-sm);
}

.gd-comment__content {
  font-size: 0.9375rem;
  color: var(--gd-text-secondary);
  line-height: 1.6;
}

.gd-comment__content p:last-child {
  margin-bottom: 0;
}

.gd-comment__actions {
  margin-top: var(--gd-space-sm);
}

.gd-comment__reply a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gd-accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--gd-transition);
}

.gd-comment__reply a:hover {
  color: var(--gd-accent-hover);
}

.gd-comments__closed {
  font-size: 0.875rem;
  color: var(--gd-text-muted);
  font-style: italic;
  padding: var(--gd-space-md);
  background: var(--gd-bg-secondary);
  border-radius: var(--gd-radius-sm);
  text-align: center;
}

.gd-comments__pagination {
  display: flex;
  justify-content: center;
  gap: var(--gd-space-sm);
  margin: var(--gd-space-xl) 0;
}

/* Comment form */
.gd-comment-form {
  margin-top: var(--gd-space-xl);
}

.gd-comment-form .comment-reply-title {
  font-family: var(--gd-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--gd-space-lg);
}

.gd-comment-form__field {
  margin-bottom: var(--gd-space-md);
}

.gd-comment-form__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gd-text-secondary);
  margin-bottom: var(--gd-space-xs);
}

.gd-comment-form__textarea {
  width: 100%;
  padding: var(--gd-space-md);
  background: var(--gd-bg-secondary);
  border: 1px solid var(--gd-bg-tertiary);
  border-radius: var(--gd-radius-md);
  color: var(--gd-text-primary);
  font-size: 0.9375rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--gd-transition);
}

.gd-comment-form__textarea:focus {
  outline: none;
  border-color: var(--gd-accent);
  box-shadow: 0 0 0 3px var(--gd-accent-glow);
}

/* WordPress default form fields (name, email, url) */
.gd-comment-form .comment-form-author,
.gd-comment-form .comment-form-email,
.gd-comment-form .comment-form-url {
  margin-bottom: var(--gd-space-md);
}

.gd-comment-form .comment-form-author label,
.gd-comment-form .comment-form-email label,
.gd-comment-form .comment-form-url label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gd-text-secondary);
  margin-bottom: var(--gd-space-xs);
}

.gd-comment-form .comment-form-author input,
.gd-comment-form .comment-form-email input,
.gd-comment-form .comment-form-url input {
  width: 100%;
  padding: var(--gd-space-sm) var(--gd-space-md);
  background: var(--gd-bg-secondary);
  border: 1px solid var(--gd-bg-tertiary);
  border-radius: var(--gd-radius-sm);
  color: var(--gd-text-primary);
  font-size: 0.9375rem;
  min-height: 44px;
  transition: border-color var(--gd-transition);
}

.gd-comment-form .comment-form-author input:focus,
.gd-comment-form .comment-form-email input:focus,
.gd-comment-form .comment-form-url input:focus {
  outline: none;
  border-color: var(--gd-accent);
  box-shadow: 0 0 0 3px var(--gd-accent-glow);
}

.gd-comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: var(--gd-space-sm);
  margin-bottom: var(--gd-space-md);
  font-size: 0.8125rem;
  color: var(--gd-text-muted);
}

.gd-comment-form .comment-form-cookies-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gd-accent);
}

.gd-comment-form .form-submit {
  margin-top: var(--gd-space-md);
}


/* ==========================================================================
   37. CATEGORY LINKS
   ========================================================================== */

.gd-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gd-space-sm);
}

.gd-category-links--centered {
  justify-content: center;
}


/* ==========================================================================
   38. HIGHLIGHT (Search Terms)
   ========================================================================== */

.gd-highlight {
  color: var(--gd-accent);
  font-weight: 600;
}


/* ==========================================================================
   39. PAGE STYLES
   ========================================================================== */

.gd-page__header {
  margin-bottom: var(--gd-space-xl);
  padding-bottom: var(--gd-space-lg);
  border-bottom: 1px solid var(--gd-bg-tertiary);
}

.gd-page__title {
  margin-bottom: 0;
}

.gd-page__content {
  max-width: var(--gd-content-width);
}


/* ==========================================================================
   40. CONTENT STYLES (Article/Page body)
   ========================================================================== */

.gd-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--gd-text-secondary);
}

.gd-content h2 {
  margin-top: var(--gd-space-2xl);
  padding-top: var(--gd-space-lg);
  border-top: 1px solid var(--gd-bg-tertiary);
}

.gd-content h3 {
  margin-top: var(--gd-space-xl);
}

.gd-content h4,
.gd-content h5,
.gd-content h6 {
  margin-top: var(--gd-space-lg);
}

.gd-content p {
  margin-bottom: var(--gd-space-lg);
  color: var(--gd-text-secondary);
}

.gd-content a {
  color: var(--gd-accent);
  text-decoration: underline;
  text-decoration-color: rgba(0, 240, 255, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--gd-transition);
}

.gd-content a:hover {
  text-decoration-color: var(--gd-accent);
}

.gd-content ul,
.gd-content ol {
  margin-bottom: var(--gd-space-lg);
  padding-left: var(--gd-space-xl);
}

.gd-content li {
  margin-bottom: var(--gd-space-sm);
}

.gd-content img {
  border-radius: var(--gd-radius-md);
  margin: var(--gd-space-lg) 0;
}

.gd-content figure {
  margin: var(--gd-space-xl) 0;
}

.gd-content figcaption {
  font-size: 0.8125rem;
  color: var(--gd-text-muted);
  text-align: center;
  margin-top: var(--gd-space-sm);
}

.gd-content table {
  margin: var(--gd-space-lg) 0;
  border: 1px solid var(--gd-bg-tertiary);
  border-radius: var(--gd-radius-sm);
  overflow: hidden;
}

.gd-content th {
  background: var(--gd-bg-tertiary);
  font-weight: 600;
  color: var(--gd-text-primary);
  text-align: left;
  padding: var(--gd-space-sm) var(--gd-space-md);
  font-size: 0.875rem;
}

.gd-content td {
  padding: var(--gd-space-sm) var(--gd-space-md);
  border-top: 1px solid var(--gd-bg-tertiary);
  font-size: 0.9375rem;
}

.gd-content tr:nth-child(even) td {
  background: var(--gd-bg-secondary);
}

.gd-content .wp-block-embed {
  margin: var(--gd-space-xl) 0;
}

.gd-content iframe {
  max-width: 100%;
  border-radius: var(--gd-radius-md);
}


/* ==========================================================================
   41. ARTICLE HEADER & FEATURED IMAGE
   ========================================================================== */

.gd-article__header {
  margin-bottom: var(--gd-space-xl);
}

.gd-article__meta-top {
  display: flex;
  align-items: center;
  gap: var(--gd-space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--gd-space-md);
}

.gd-article__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.15;
  margin-bottom: var(--gd-space-sm);
}

.gd-article__featured-image {
  margin: var(--gd-space-lg) 0 var(--gd-space-xl);
  border-radius: var(--gd-radius-lg);
  overflow: hidden;
}

.gd-article__featured-image img {
  width: 100%;
  height: auto;
}

/* TOC wrapper */
.gd-article__toc-wrapper {
  margin-bottom: var(--gd-space-xl);
}


/* ==========================================================================
   42. TABLE OF CONTENTS
   ========================================================================== */

.gd-toc {
  background: var(--gd-bg-secondary);
  border: 1px solid var(--gd-bg-tertiary);
  border-radius: var(--gd-radius-md);
  overflow: hidden;
}

.gd-toc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--gd-space-md) var(--gd-space-lg);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gd-text-primary);
  font-family: var(--gd-font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  min-height: 48px;
  transition: background var(--gd-transition);
}

.gd-toc__toggle:hover {
  background: var(--gd-bg-tertiary);
}

.gd-toc__title {
  display: flex;
  align-items: center;
  gap: var(--gd-space-sm);
}

.gd-toc__icon {
  flex-shrink: 0;
  color: var(--gd-accent);
}

.gd-toc__count {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gd-text-muted);
  margin-left: var(--gd-space-sm);
}

.gd-toc__chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--gd-text-muted);
}

.gd-toc__toggle[aria-expanded="false"] .gd-toc__chevron {
  transform: rotate(-90deg);
}

.gd-toc__nav {
  padding: 0 var(--gd-space-lg) var(--gd-space-lg);
}

.gd-toc__toggle[aria-expanded="false"] + .gd-toc__nav {
  display: none;
}

.gd-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.gd-toc__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-left: var(--gd-space-lg);
}

.gd-toc__item {
  counter-increment: toc;
}

.gd-toc__link {
  display: flex;
  align-items: center;
  gap: var(--gd-space-sm);
  padding: var(--gd-space-xs) 0;
  font-size: 0.875rem;
  color: var(--gd-text-secondary);
  text-decoration: none;
  transition: color var(--gd-transition);
  line-height: 1.5;
  min-height: 32px;
}

.gd-toc__link:hover {
  color: var(--gd-accent);
}

.gd-toc__item--h3 .gd-toc__link {
  font-size: 0.8125rem;
  color: var(--gd-text-muted);
}


/* ==========================================================================
   43. QUICK FIX BOX
   ========================================================================== */

.gd-quick-fix {
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.05) 0%,
    var(--gd-bg-secondary) 100%
  );
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-left: 4px solid var(--gd-accent);
  border-radius: var(--gd-radius-md);
  padding: var(--gd-space-lg);
  margin-bottom: var(--gd-space-xl);
}

.gd-quick-fix__title {
  display: flex;
  align-items: center;
  gap: var(--gd-space-sm);
  font-family: var(--gd-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gd-accent);
  margin-bottom: var(--gd-space-md);
}

.gd-quick-fix__title svg {
  flex-shrink: 0;
}

.gd-quick-fix__code {
  font-family: var(--gd-font-mono);
  font-size: 0.8125rem;
  background: var(--gd-bg-tertiary);
  padding: 0.15em 0.5em;
  border-radius: var(--gd-radius-sm);
  color: var(--gd-danger);
}

.gd-quick-fix__content {
  font-size: 0.9375rem;
  color: var(--gd-text-secondary);
  line-height: 1.7;
}

.gd-quick-fix__content p:last-child {
  margin-bottom: 0;
}


/* ==========================================================================
   44. RELATED POSTS
   ========================================================================== */

.gd-related-posts {
  margin: var(--gd-space-2xl) 0;
}

.gd-related-posts__title {
  font-size: 1.25rem;
  margin-bottom: var(--gd-space-lg);
  padding-bottom: var(--gd-space-sm);
  border-bottom: 2px solid var(--gd-accent);
}

.gd-related-section {
  padding: var(--gd-space-xl) 0;
}


/* ==========================================================================
   45. HOMEPAGE SECTION SPACING
   ========================================================================== */

.gd-main--home {
  padding-top: 0;
}

.gd-main--home .gd-section {
  padding: var(--gd-space-xl) 0;
}

.gd-main--home .gd-hero-section {
  padding-top: var(--gd-space-xl);
}

.gd-main--home .gd-section + .gd-section {
  border-top: 1px solid var(--gd-bg-tertiary);
}

.gd-main--home .gd-gta6-section {
  border-top: none;
}


/* ==========================================================================
   46. FOCUS STATES (Accessibility)
   ========================================================================== */

/* Global focus outline for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gd-accent);
  outline-offset: 2px;
}

/* Remove default outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Card-specific focus */
.gd-card__title a:focus-visible {
  outline-offset: 1px;
}

/* Nav items */
.gd-nav__list > li > a:focus-visible {
  outline-offset: -2px;
}

/* Comment reply link */
.gd-comment__reply a:focus-visible {
  outline-offset: 2px;
}


/* ==========================================================================
   47. SCREEN READER UTILITIES
   ========================================================================== */

.screen-reader-text,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.screen-reader-text:focus,
.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}


/* ==========================================================================
   48. WORDPRESS ALIGNMENT CLASSES
   ========================================================================== */

.alignnone {
  margin: var(--gd-space-lg) 0;
}

.aligncenter {
  display: block;
  margin: var(--gd-space-lg) auto;
}

.alignleft {
  float: left;
  margin: var(--gd-space-sm) var(--gd-space-lg) var(--gd-space-sm) 0;
}

.alignright {
  float: right;
  margin: var(--gd-space-sm) 0 var(--gd-space-sm) var(--gd-space-lg);
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.8125rem;
  color: var(--gd-text-muted);
  text-align: center;
  margin-top: var(--gd-space-sm);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--gd-space-sm);
  margin: var(--gd-space-lg) 0;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  border-radius: var(--gd-radius-sm);
}


/* ==========================================================================
   49. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   50. PRINT STYLES
   ========================================================================== */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .gd-header,
  .gd-footer,
  .gd-sidebar,
  .gd-share,
  .gd-ad,
  .gd-reading-progress,
  .gd-mobile-menu,
  .gd-search-overlay,
  .gd-newsletter,
  .gd-breadcrumbs-wrapper,
  .gd-comments,
  .gd-related-posts,
  .gd-menu-toggle,
  .gd-search-toggle,
  .gd-toc {
    display: none !important;
  }

  .gd-layout--with-sidebar {
    display: block;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .gd-article__title {
    font-size: 2rem;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}

/* =====================================================
   51. Image Lightbox
   ===================================================== */
.gd-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gd-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gd-lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.gd-lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gd-lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.gd-lightbox__caption {
  color: var(--gd-text-secondary, #94a3b8);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  text-align: center;
  max-width: 600px;
}

.gd-lightbox__close {
  position: absolute;
  top: -2.5rem;
  right: -0.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.gd-lightbox__close:hover,
.gd-lightbox__close:focus-visible {
  opacity: 1;
}

body.lightbox-open {
  overflow: hidden;
}

/* =====================================================
   52. Mobile Anchor Ad
   ===================================================== */
.gd-ad-anchor {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9000;
  background: var(--gd-bg-secondary, #1e293b);
  border-top: 1px solid var(--gd-border, #334155);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding: 0.5rem;
}

.gd-ad-anchor--visible {
  transform: translateY(0);
}

.gd-ad-anchor__inner {
  display: flex;
  justify-content: center;
  min-height: 50px;
}

.gd-ad-anchor__close {
  position: absolute;
  top: -1.75rem;
  right: 0.5rem;
  background: var(--gd-bg-secondary, #1e293b);
  border: 1px solid var(--gd-border, #334155);
  color: var(--gd-text-secondary, #94a3b8);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.gd-ad-anchor__close:hover {
  color: var(--gd-text-primary, #f1f5f9);
}

/* =====================================================
   53. External Link Icon
   ===================================================== */
.gd-external-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.15em;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.gd-external-link:hover .gd-external-icon {
  opacity: 1;
}

/* =====================================================
   54. Newsletter Notice
   ===================================================== */
.gd-newsletter__notice {
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.gd-newsletter__notice--success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.gd-newsletter__notice--error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* =====================================================
   55. Sidebar Stopped State
   ===================================================== */
.gd-sidebar--stopped {
  position: relative !important;
}

/* ================================================================
   HOMEPAGE STYLES — Sections 56–68
   Appended to main.css (after line 3550, section 55)
   ================================================================ */


/* ===== 56. Homepage Layout ===== */

.gd-home-layout {
  display: flex;
  gap: 2rem;
}

.gd-home-content {
  flex: 1;
  min-width: 0;
}

.gd-home-layout .gd-sidebar {
  width: var(--gd-sidebar-width);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .gd-home-layout {
    flex-direction: column;
  }

  .gd-home-layout .gd-sidebar {
    width: 100%;
  }
}


/* ===== 57. Hero Section — Empty State ===== */

.gd-hero-empty {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    var(--gd-bg-primary)
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(255, 255, 255, 0.03) 59px,
      rgba(255, 255, 255, 0.03) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(255, 255, 255, 0.03) 59px,
      rgba(255, 255, 255, 0.03) 60px
    );
}

.gd-hero-empty__content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.gd-hero-empty__title {
  font-family: var(--gd-font-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin: 0;
  line-height: 1.1;
}

.gd-hero-empty__title span {
  color: var(--gd-accent);
}

/* Glitch Effect */

.gd-glitch {
  position: relative;
  display: inline-block;
}

.gd-glitch::before,
.gd-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.gd-glitch::before {
  color: #ff2d78;
  animation: glitch-before 0.8s ease-in-out 1;
}

.gd-glitch::after {
  color: var(--gd-accent);
  animation: glitch-after 0.8s ease-in-out 1;
}

@keyframes glitch-before {
  0% {
    opacity: 0.7;
    transform: translate(0);
    clip-path: inset(0 50% 0 0);
  }
  20% {
    opacity: 0.7;
    transform: translateX(-3px) translateY(3px);
    clip-path: inset(10% 50% 30% 0);
  }
  40% {
    opacity: 0.7;
    transform: translateX(3px) translateY(-3px);
    clip-path: inset(40% 50% 10% 0);
  }
  60% {
    opacity: 0.5;
    transform: translateX(-2px) translateY(1px);
    clip-path: inset(20% 50% 20% 0);
  }
  80% {
    opacity: 0.3;
    transform: translateX(1px) translateY(-1px);
    clip-path: inset(5% 50% 5% 0);
  }
  100% {
    opacity: 0;
    transform: translate(0);
    clip-path: inset(0 50% 0 0);
  }
}

@keyframes glitch-after {
  0% {
    opacity: 0.7;
    transform: translate(0);
    clip-path: inset(0 0 0 50%);
  }
  20% {
    opacity: 0.7;
    transform: translateX(3px) translateY(-2px);
    clip-path: inset(15% 0 25% 50%);
  }
  40% {
    opacity: 0.7;
    transform: translateX(-3px) translateY(2px);
    clip-path: inset(35% 0 15% 50%);
  }
  60% {
    opacity: 0.5;
    transform: translateX(2px) translateY(-1px);
    clip-path: inset(10% 0 30% 50%);
  }
  80% {
    opacity: 0.3;
    transform: translateX(-1px) translateY(1px);
    clip-path: inset(5% 0 5% 50%);
  }
  100% {
    opacity: 0;
    transform: translate(0);
    clip-path: inset(0 0 0 50%);
  }
}

.gd-hero-empty__tagline {
  font-size: 1.25rem;
  color: var(--gd-text-secondary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 1.5rem;
}

.gd-hero-empty__soon {
  margin-top: 2rem;
  color: var(--gd-text-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  display: inline-block;
  padding-bottom: 0.25rem;
  animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
  0%,
  100% {
    border-bottom-color: transparent;
  }
  50% {
    border-bottom-color: var(--gd-accent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gd-glitch::before,
  .gd-glitch::after {
    animation: none;
    opacity: 0;
  }

  .gd-hero-empty__soon {
    animation: none;
    border-bottom-color: var(--gd-accent);
  }
}


/* ===== 58. Hero Section — Featured Post ===== */

.gd-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
}

.gd-hero-card {
  position: relative;
  border-radius: var(--gd-radius-lg);
  overflow: hidden;
  background: var(--gd-bg-secondary);
}

.gd-hero-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  display: block;
}

.gd-hero-card__content {
  padding: 1.5rem;
  position: relative;
}

.gd-hero-card__title {
  font-family: var(--gd-font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.5rem 0;
}

.gd-hero-card__title a {
  color: #ffffff;
  text-decoration: none;
  transition: color var(--gd-transition);
}

.gd-hero-card__title a:hover {
  color: var(--gd-accent);
}

.gd-hero-card__excerpt {
  color: var(--gd-text-secondary);
  font-size: 0.95rem;
  margin: 0.5rem 0;
  line-height: 1.5;
}

.gd-hero-card__meta {
  color: var(--gd-text-muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .gd-hero-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== 59. Hero Trending Sidebar ===== */

.gd-hero-trending {
  background: var(--gd-bg-secondary);
  border-radius: var(--gd-radius-lg);
  padding: 1.25rem;
}

.gd-section-label {
  font-family: var(--gd-font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gd-hot);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gd-trending-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gd-trending-list__item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--gd-transition);
}

.gd-trending-list__item:last-child {
  border-bottom: none;
}

.gd-trending-list__num {
  font-family: var(--gd-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gd-accent);
  min-width: 2rem;
  opacity: 0.5;
}

.gd-trending-list__link {
  color: var(--gd-text-primary);
  font-size: 0.9rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--gd-transition);
}

.gd-trending-list__link:hover {
  color: var(--gd-accent);
}


/* ===== 60. Trending Bar ===== */

.gd-trending-bar {
  background: var(--gd-bg-secondary);
  border-bottom: 2px solid var(--gd-accent);
  padding: 0.75rem 0;
  position: relative;
  overflow: hidden;
}

.gd-trending-bar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--gd-site-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.gd-trending-bar__label {
  flex-shrink: 0;
  font-family: var(--gd-font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gd-hot);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.gd-trending-bar__scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gd-trending-bar__scroll::-webkit-scrollbar {
  display: none;
}

.gd-trending-bar__item {
  scroll-snap-align: start;
  white-space: nowrap;
  flex-shrink: 0;
}

.gd-trending-bar__item a {
  color: var(--gd-text-secondary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--gd-transition);
}

.gd-trending-bar__item a:hover {
  color: var(--gd-accent);
}

.gd-trending-bar__arrow {
  background: none;
  border: none;
  color: var(--gd-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  flex-shrink: 0;
  transition: color var(--gd-transition);
  line-height: 1;
}

.gd-trending-bar__arrow:hover {
  color: var(--gd-accent);
}


/* ===== 61. Post Grids (Homepage Specific) ===== */

.gd-post-grid {
  display: grid;
  gap: 1.25rem;
}

.gd-post-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

.gd-post-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .gd-post-grid--4col {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .gd-post-grid--4col,
  .gd-post-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gd-post-grid--4col,
  .gd-post-grid--3col {
    grid-template-columns: 1fr;
  }
}


/* ===== 62. Section Headers (Homepage Enhancements) ===== */

.gd-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gd-section-header__title {
  font-family: var(--gd-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gd-section-header__accent {
  display: inline-flex;
}

.gd-section-header__link {
  font-size: 0.85rem;
  color: var(--gd-accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  transition: color var(--gd-transition);
}

.gd-section-header__link:hover {
  color: var(--gd-accent-hover);
}


/* ===== 63. GTA 6 Banner ===== */

.gd-gta6-banner {
  background: var(--gd-bg-secondary);
  border-radius: var(--gd-radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255, 107, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.gd-gta6-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gd-cat-gta6), transparent);
}

.gd-section-header__title--gta6 {
  color: var(--gd-cat-gta6);
}

.gd-section-header__link--gta6 {
  color: var(--gd-cat-gta6);
  transition: filter var(--gd-transition), color var(--gd-transition);
}

.gd-section-header__link--gta6:hover {
  filter: brightness(1.2);
  color: var(--gd-cat-gta6);
}


/* ===== 64. Two-Column Split ===== */

.gd-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .gd-two-col-grid {
    grid-template-columns: 1fr;
  }
}

.gd-compact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gd-compact-list__item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
}

.gd-compact-list__item:last-child {
  border-bottom: none;
}

.gd-compact-list__thumb {
  flex-shrink: 0;
  width: 120px;
  height: 68px;
  border-radius: var(--gd-radius-sm);
  overflow: hidden;
}

.gd-compact-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gd-compact-list__content {
  flex: 1;
  min-width: 0;
}

.gd-compact-list__link {
  color: var(--gd-text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--gd-transition);
}

.gd-compact-list__link:hover {
  color: var(--gd-accent);
}

.gd-compact-list__date {
  font-size: 0.8rem;
  color: var(--gd-text-muted);
  margin-top: 0.25rem;
  display: block;
}


/* ===== 65. Empty State Categories Grid ===== */

.gd-empty-state {
  padding: var(--gd-space-3xl) 0;
}

.gd-empty-state__heading {
  text-align: center;
  font-family: var(--gd-font-heading);
  font-size: 1.5rem;
  color: var(--gd-text-secondary);
  margin-bottom: 2rem;
}

.gd-empty-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.gd-empty-cat-card {
  background: var(--gd-bg-secondary);
  border-radius: var(--gd-radius-lg);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.gd-empty-cat-card:hover {
  border-color: var(--gd-card-accent, var(--gd-accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.08);
}

.gd-empty-cat-card__icon svg {
  color: var(--gd-card-accent, var(--gd-accent));
}

.gd-empty-cat-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.gd-empty-cat-card__icon svg {
  width: 24px;
  height: 24px;
}

.gd-empty-cat-card__name {
  font-family: var(--gd-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gd-text-primary);
  margin-bottom: 0.25rem;
}

.gd-empty-cat-card__soon {
  font-size: 0.8rem;
  color: var(--gd-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* ===== 66. Sidebar — Homepage Hard-coded ===== */

.gd-sidebar-about {
  padding: 1.25rem;
  text-align: center;
}

.gd-sidebar-about__name {
  font-family: var(--gd-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gd-text-primary);
  margin-bottom: 0.5rem;
}

.gd-sidebar-about__desc {
  font-size: 0.85rem;
  color: var(--gd-text-secondary);
  line-height: 1.5;
}

.gd-sidebar-about__social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.gd-sidebar-about__social a {
  color: var(--gd-text-muted);
  transition: color var(--gd-transition);
}

.gd-sidebar-about__social a:hover {
  color: var(--gd-accent);
}

.gd-sidebar-categories__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gd-sidebar-categories__item {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gd-sidebar-categories__item a {
  color: var(--gd-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  transition: color var(--gd-transition);
}

.gd-sidebar-categories__item a:hover {
  color: var(--gd-accent);
}

.gd-sidebar-categories__count {
  font-size: 0.8rem;
  color: var(--gd-text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
}


/* ===== 67. Scroll Reveal Animation ===== */

.gd-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .gd-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ===== 68. Homepage Responsive Overrides ===== */

@media (max-width: 768px) {
  .gd-hero-empty__title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .gd-hero-empty__tagline {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .gd-hero-empty {
    min-height: 360px;
  }

  .gd-hero-card__title {
    font-size: 1.35rem;
  }

  .gd-section {
    padding: var(--gd-space-lg) 0;
  }

  .gd-section-header__title {
    font-size: 1.15rem;
  }

  .gd-home-layout .gd-sidebar {
    display: none;
  }

  .gd-gta6-banner {
    padding: 1.25rem;
  }

  .gd-compact-list__thumb {
    width: 90px;
    height: 52px;
  }
}

@media (max-width: 480px) {
  .gd-trending-bar__label {
    display: none;
  }

  .gd-hero-empty__tagline {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
  }

  .gd-hero-card__content {
    padding: 1rem;
  }

  .gd-hero-card__title {
    font-size: 1.15rem;
  }

  .gd-empty-categories {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════ */
/* 69. AD ZONES                                                  */
/* ══════════════════════════════════════════════════════════════ */

.ad-zone {
  margin: 1.5rem 0;
  text-align: center;
  min-height: 90px;
  overflow: hidden;
}

.ad-header-leaderboard {
  max-width: 728px;
  margin: 0.75rem auto;
  min-height: 90px;
}

.ad-in-article {
  margin: 2rem -1rem;
  padding: 1.25rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.01);
}

.ad-mid-content {
  margin: 2rem 0;
  padding: 1rem 0;
}

.ad-after-article {
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ad-in-feed {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.gd-ad--sidebar_top {
  min-height: 250px;
  padding: 0;
  background: transparent;
  border: none;
}

.gd-ad--sidebar_sticky {
  position: sticky;
  top: 80px;
  min-height: 600px;
}

.ad-zone::before {
  content: '';
}

@media (max-width: 768px) {
  .ad-header-leaderboard { min-height: 50px; }
  .ad-in-article { margin: 1.5rem 0; padding: 1rem 0.5rem; }
  .ad-zone { min-height: 50px; }
}

.ad-zone:empty,
.ad-zone ins[data-ad-status="unfilled"] {
  min-height: 0;
  margin: 0;
  padding: 0;
}

/* ══════════════════════════════════════ */
/* 70. PLATFORM & GAME BROWSER STRIP    */
/* ══════════════════════════════════════ */

.browse-strip {
  max-width: 1400px;
  margin: 0 auto 2rem;
  padding: 1rem 1.5rem;
  background: #0e0e16;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  overflow: hidden;
}

.browse-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.browse-label {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  min-width: 80px;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
}

.browse-items {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.25rem 0;
  flex: 1;
  min-width: 0;
}

.browse-items::-webkit-scrollbar {
  display: none;
}

.browse-divider {
  height: 1px;
  background: rgba(255,255,255,0.04);
  margin: 0.6rem 0;
}

/* ── Platform Items — ALWAYS horizontal pills ── */

.platform-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
}

.platform-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--item-color);
  color: var(--item-color);
}

.platform-item .browse-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-item .browse-icon svg {
  width: 14px;
  height: 14px;
}

.platform-item:hover .browse-icon svg {
  color: var(--item-color);
}

.platform-item .browse-name {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ── Game Items — ALWAYS compact tiles ── */

.game-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.5rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 56px;
  max-width: 72px;
  flex-shrink: 0;
}

.game-item:hover {
  background: var(--item-bg);
  border-color: rgba(255,255,255,0.06);
  color: var(--item-color);
}

.game-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.game-item:hover .game-icon-wrap {
  background: var(--item-bg);
  border-color: var(--item-color);
}

.game-icon-svg {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.game-icon-svg svg {
  width: 20px;
  height: 20px;
}

.game-item:hover .game-icon-svg {
  opacity: 1;
  color: var(--item-color);
}

.game-icon-letter {
  position: absolute;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.12);
  bottom: 1px;
  right: 2px;
  pointer-events: none;
}

.game-item:hover .game-icon-letter {
  color: var(--item-color);
  opacity: 0.3;
}

.game-item .browse-name {
  font-size: 0.65rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.15;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Scroll Fade Edges ── */

.browse-scroll {
  mask-image: linear-gradient(to right, black 0%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 92%, transparent 100%);
}

/* ── Browse Strip Responsive: Tablet ── */

@media (max-width: 1024px) {
  .browse-strip {
    margin: 0 1rem 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
  }
}

/* ── Browse Strip Responsive: Mobile ── */

@media (max-width: 768px) {
  .browse-strip {
    margin: 0 0.75rem 1rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
  }
  .browse-row {
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
  }
  .browse-label {
    min-width: auto;
    font-size: 0.5rem;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    letter-spacing: 0.1em;
    padding: 0.25rem 0;
  }
  .browse-items {
    gap: 0.35rem;
    flex-wrap: nowrap !important;
  }
  .platform-item {
    padding: 0.3rem 0.5rem;
    gap: 0.25rem;
    border-radius: 5px;
  }
  .platform-item .browse-icon { width: 14px; height: 14px; }
  .platform-item .browse-icon svg { width: 12px; height: 12px; }
  .platform-item .browse-name { font-size: 0.6rem; }
  .game-item { min-width: 48px; max-width: 60px; padding: 0.3rem; gap: 0.2rem; }
  .game-icon-wrap { width: 32px; height: 32px; border-radius: 6px; }
  .game-icon-svg { width: 18px; height: 18px; }
  .game-icon-svg svg { width: 16px; height: 16px; }
  .game-item .browse-name { font-size: 0.55rem; max-width: 56px; }
  .game-icon-letter { font-size: 0.4rem; }
  .browse-divider { margin: 0.4rem 0; }
}

/* ── Browse Strip Responsive: Small phones ── */

@media (max-width: 380px) {
  .browse-strip { margin: 0 0.5rem 0.75rem; padding: 0.5rem; }
  .browse-label { font-size: 0.45rem; }
  .platform-item { padding: 0.25rem 0.4rem; }
  .platform-item .browse-name { font-size: 0.55rem; }
  .game-item { min-width: 42px; max-width: 52px; }
  .game-icon-wrap { width: 28px; height: 28px; }
  .game-icon-svg { width: 16px; height: 16px; }
  .game-icon-svg svg { width: 14px; height: 14px; }
  .game-item .browse-name { font-size: 0.5rem; max-width: 48px; }
}
