/* ==========================================================================
   Local Vazirmatn Typography for BaziLog (No External CDN Dependency)
   ========================================================================== */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   GameHub Ghost Theme - Gaming UI Components
   Inspired by PixelArts, Gamefa & Dbazi
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Site Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(9, 10, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(121, 40, 202, 0.3);
}

/* Body with WordPress Admin Bar */
body.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
  flex-wrap: nowrap;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: 18px;
  position: relative;
  z-index: 2;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.site-logo-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.site-logo-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  white-space: nowrap;
  text-align: right;
}

.site-logo-text .logo-name {
  font-family: var(--font-heading, 'Vazirmatn', sans-serif);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: inline-block;
}

.site-logo-text .logo-name span,
.site-logo-text span.logo-accent {
  color: var(--accent-cyan) !important;
}

.site-logo-text .logo-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan) !important;
  opacity: 0.9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-transform: lowercase;
  direction: ltr;
  text-align: right;
  margin-top: 1px;
}

/* Light Theme Header & Drawer Only (Footer stays dark) */
[data-theme="light"] .site-header .site-logo-text .logo-name,
[data-theme="light"] .mobile-drawer .site-logo-text .logo-name {
  color: #0f172a;
}

/* Footer Logo: ALWAYS bright white in both dark and light modes */
.site-footer .site-logo,
.site-footer .site-logo:hover,
.site-footer .footer-site-logo,
.site-footer .site-logo-text,
.site-footer .site-logo-text .logo-name,
[data-theme="light"] .site-footer .site-logo,
[data-theme="light"] .site-footer .site-logo:hover,
[data-theme="light"] .site-footer .footer-site-logo,
[data-theme="light"] .site-footer .site-logo-text,
[data-theme="light"] .site-footer .site-logo-text .logo-name {
  color: #ffffff !important;
}

.site-footer .site-logo-text .logo-name span,
.site-footer .site-logo-text span.logo-accent,
[data-theme="light"] .site-footer .site-logo-text .logo-name span,
[data-theme="light"] .site-footer .site-logo-text span.logo-accent {
  color: var(--accent-cyan) !important;
}

.site-footer .site-logo-text .logo-badge,
[data-theme="light"] .site-footer .site-logo-text .logo-badge {
  color: var(--accent-cyan) !important;
  opacity: 0.95 !important;
}

/* About Page Brand Logo */
.about-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.about-brand-logo:hover {
  transform: translateY(-2px);
}

.about-brand-logo .site-logo-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.about-brand-logo .site-logo-icon svg {
  width: 30px !important;
  height: 30px !important;
  fill: #ffffff;
}

.about-brand-logo .site-logo-text .logo-name,
[data-theme="light"] .about-brand-logo .site-logo-text .logo-name {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary) !important;
}

.about-brand-logo .site-logo-text .logo-name span,
[data-theme="light"] .about-brand-logo .site-logo-text .logo-name span {
  color: var(--accent-cyan) !important;
}

.about-brand-logo .site-logo-text .logo-badge,
[data-theme="light"] .about-brand-logo .site-logo-text .logo-badge {
  font-size: 0.9rem;
  color: var(--accent-cyan) !important;
  opacity: 0.95 !important;
}

/* Primary Nav */
.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .main-nav::-webkit-scrollbar {
    display: none;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-list > li > a,
.nav-item a {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 1024px) and (max-width: 1280px) {
  .nav-list {
    gap: 2px;
  }
  .nav-list > li > a,
  .nav-item a {
    padding: 5px 6px;
    font-size: 0.78rem;
  }
}

.nav-list > li > a:hover,
.nav-item a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .nav-list > li > a:hover,
[data-theme="light"] .nav-item a:hover {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

.nav-list > li.current-menu-item > a,
.nav-item.nav-current a {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  border-bottom: 2px solid var(--accent);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition);
  flex-shrink: 0;
}

@media (max-width: 1280px) {
  .header-btn {
    width: 34px;
    height: 34px;
  }
  .header-btn svg {
    width: 16px;
    height: 16px;
  }
}

.header-btn:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 12px var(--accent-glow);
}

[data-theme="light"] .header-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.header-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-subscribe {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--accent), #5a189a);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

@media (min-width: 768px) {
  .btn-subscribe {
    display: inline-flex;
  }
}

.btn-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(121, 40, 202, 0.6);
  color: #fff;
}

.menu-toggle {
  display: flex;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  z-index: 1000;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.drawer-nav .nav-list {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.drawer-nav .nav-item a {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   2. Breaking News Ticker (Gamefa Style)
   -------------------------------------------------------------------------- */
.ticker-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  overflow: hidden;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #f43f5e;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.ticker-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #f43f5e;
  box-shadow: 0 0 10px #f43f5e;
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 24px;
}

.ticker-slider {
  display: flex;
  align-items: center;
  height: 100%;
}

.ticker-item {
  display: none;
  font-size: 0.88rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: fadeIn 0.4s ease-in;
}

.ticker-item.active {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ticker-item a:hover {
  color: var(--accent-cyan);
}

.ticker-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   3. Hero Mosaic Grid (PixelArts & Gamefa Featured Layout)
   -------------------------------------------------------------------------- */
.hero-mosaic {
  margin: 30px 0 45px;
}

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

@media (min-width: 768px) {
  .mosaic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mosaic-grid.mosaic-count-3 .mosaic-item-lead {
    grid-column: 1 / span 2;
  }
}

@media (min-width: 1024px) {
  .mosaic-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 240px 240px;
  }

  .mosaic-item-lead {
    grid-column: span 2;
    grid-row: span 2;
  }

  /* 1 item: full hero banner */
  .mosaic-grid.mosaic-count-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 420px;
  }
  .mosaic-grid.mosaic-count-1 .mosaic-item-lead {
    grid-column: 1;
    grid-row: 1;
  }

  /* 2 items: 50/50 split */
  .mosaic-grid.mosaic-count-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 380px;
  }
  .mosaic-grid.mosaic-count-2 .mosaic-item-lead {
    grid-column: 1;
    grid-row: 1;
  }

  /* 3 items: Balanced full-space layout without empty gaps */
  .mosaic-grid.mosaic-count-3 {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 240px 240px;
  }
  .mosaic-grid.mosaic-count-3 .mosaic-item-lead {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
  }
  .mosaic-grid.mosaic-count-3 .mosaic-item-1 {
    grid-column: 3 / span 2;
    grid-row: 1;
  }
  .mosaic-grid.mosaic-count-3 .mosaic-item-2 {
    grid-column: 3 / span 2;
    grid-row: 2;
  }

  /* 4 items: Full layout with top stacked item and two split bottom items */
  .mosaic-grid.mosaic-count-4 {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 240px 240px;
  }
  .mosaic-grid.mosaic-count-4 .mosaic-item-lead {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
  }
  .mosaic-grid.mosaic-count-4 .mosaic-item-1 {
    grid-column: 3 / span 2;
    grid-row: 1;
  }
  .mosaic-grid.mosaic-count-4 .mosaic-item-2 {
    grid-column: 3;
    grid-row: 2;
  }
  .mosaic-grid.mosaic-count-4 .mosaic-item-3 {
    grid-column: 4;
    grid-row: 2;
  }
}

.mosaic-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: var(--transition);
}

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

.mosaic-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.mosaic-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mosaic-card:hover .mosaic-img-wrap img {
  transform: scale(1.06);
}

.mosaic-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(9, 10, 16, 0.95) 0%, rgba(9, 10, 16, 0.5) 50%, rgba(9, 10, 16, 0.1) 100%);
  transition: var(--transition);
}

.mosaic-card:hover .mosaic-overlay {
  background: linear-gradient(to top, rgba(9, 10, 16, 0.98) 0%, rgba(9, 10, 16, 0.6) 60%, rgba(121, 40, 202, 0.2) 100%);
}

.mosaic-content {
  position: relative;
  z-index: 3;
}

.mosaic-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.card-tag.tag-review {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.card-tag.tag-translated {
  background: linear-gradient(135deg, #0284c7, #2563eb);
}

.mosaic-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 8px;
}

.mosaic-item-lead .mosaic-title {
  font-size: 1.55rem;
}

.mosaic-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: #f1f5f9;
  font-weight: 500;
  margin-top: 8px;
}

.mosaic-footer .mosaic-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff !important;
  font-weight: 700;
}

.mosaic-footer .mosaic-author svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.mosaic-footer .mosaic-sep {
  color: rgba(255, 255, 255, 0.45);
}

.mosaic-footer .mosaic-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0 !important;
  font-weight: 500;
}

.mosaic-footer .mosaic-date svg {
  color: #94a3b8;
  flex-shrink: 0;
}

.mosaic-footer time {
  color: #e2e8f0 !important;
}

/* --------------------------------------------------------------------------
   4. Post Card Component (Standard Grid)
   -------------------------------------------------------------------------- */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.post-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-secondary);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.05);
}

.post-card-score {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(9, 10, 16, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.post-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 10px;
}

.post-card-title a:hover {
  color: var(--accent-cyan);
}

.post-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.post-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 600;
}

.post-card-author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   5. Reviews Row (PixelArts Style Score Cards)
   -------------------------------------------------------------------------- */
.reviews-section {
  margin-bottom: 45px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

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

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

.review-card-mini {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
}

.review-card-mini:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 6px 24px rgba(255, 183, 3, 0.18);
}

.review-mini-cover {
  position: relative;
  width: 100%;
  height: 165px;
  min-height: 165px;
  max-height: 165px;
  background: var(--bg-secondary);
  overflow: hidden;
}

.review-cover-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.review-mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.review-card-mini:hover .review-mini-cover img {
  transform: scale(1.05);
}

.review-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(121, 40, 202, 0.08);
  color: var(--text-muted);
}

.review-cover-placeholder svg {
  width: 44px;
  height: 44px;
  opacity: 0.35;
}

.review-badge-circle {
  position: absolute;
  bottom: -14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: #11131c;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.review-badge-circle svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-gold);
}

.review-mini-body {
  padding: 20px 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.review-mini-title {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.9em;
}

.review-mini-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.review-mini-title a:hover {
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   6. Sidebar Widgets (Gamefa & Dbazi Style)
   -------------------------------------------------------------------------- */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-title svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

/* Trending Posts Widget */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trending-index {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent-cyan);
  opacity: 0.45;
  line-height: 1;
  min-width: 28px;
}

.trending-item:hover .trending-index {
  opacity: 1;
}

.trending-info {
  flex: 1;
}

.trending-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 4px;
}

.trending-title a:hover {
  color: var(--accent-cyan);
}

.trending-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Gaming Platforms Tags Widget */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.platform-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
}

.platform-pill:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(121, 40, 202, 0.15);
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(145deg, #181928, #1e1333);
  border-color: rgba(121, 40, 202, 0.3);
  text-align: center;
}

.newsletter-icon {
  width: 50px;
  height: 50px;
  background: rgba(121, 40, 202, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.newsletter-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--accent-cyan);
}

.newsletter-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.newsletter-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.6;
}

/* Social Channels Widget */
.social-channels-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  height: 46px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: var(--radius-md);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.channel-btn span {
  color: #fff !important;
}

.channel-btn svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  flex-shrink: 0 !important;
  fill: currentColor !important;
}

.channel-telegram {
  background: #229ed9;
}
.channel-discord {
  background: #5865f2;
}
.channel-youtube {
  background: #ff0000;
}
.channel-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.channel-aparat {
  background: #ea1d5d;
}

.channel-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  color: #fff !important;
}

.footer-contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 14px;
}
.footer-contact-box .contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.footer-contact-box .contact-item:last-child {
  margin-bottom: 0;
}
.footer-contact-box svg {
  flex-shrink: 0;
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   7. Single Post Experience & Review Layout (Dbazi & PixelArts)
   -------------------------------------------------------------------------- */
.post-hero {
  position: relative;
  margin-bottom: 35px;
}

.post-hero-header {
  padding: 20px 0 30px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.post-hero-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.post-hero-title {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 18px;
}

@media (min-width: 768px) {
  .post-hero-title {
    font-size: 2.6rem;
  }
}

.post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.post-hero-author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
}

.post-hero-author img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.post-hero-feature-img {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.post-hero-feature-img img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

/* Dedicated Game Review Box (PixelArts, Gamefa & IGN Style) */
.review-box-card,
.review-score-box {
  background: linear-gradient(145deg, #121422 0%, #171a2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  margin: 40px 0;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.review-card-top,
.review-box-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
}

@media (min-width: 680px) {
  .review-card-top,
  .review-box-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.review-game-meta {
  flex: 1;
}

.review-label-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  margin-bottom: 10px;
}

.review-game-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.3;
}

.review-dev-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.review-dev-text strong {
  color: #f1f5f9;
  font-weight: 700;
}

.review-platforms-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.platform-mini-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.02em;
}

/* Score Hero with Glowing Radial Badge */
.review-score-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.score-circular-badge,
.review-score-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

.score-circular-badge:hover,
.review-score-circle:hover {
  transform: scale(1.05);
}

.score-number-big,
.review-score-number {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.score-out-of,
.review-score-max {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  margin-top: 2px;
}

.score-tier-text,
.review-verdict-text {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Score Tiers Palette */
.score-tier-masterpiece .score-circular-badge,
.review-score-circle {
  background: radial-gradient(circle, #2d2008 0%, #151624 100%);
  border: 4px solid #ffb703;
  box-shadow: 0 0 30px rgba(255, 183, 3, 0.45);
  color: #ffb703;
}
.score-tier-masterpiece .score-tier-text {
  color: #ffb703;
}

.score-tier-great .score-circular-badge {
  background: radial-gradient(circle, #082a1d 0%, #151624 100%);
  border: 4px solid #10b981;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.45);
  color: #10b981;
}
.score-tier-great .score-tier-text {
  color: #10b981;
}

.score-tier-good .score-circular-badge {
  background: radial-gradient(circle, #0c203b 0%, #151624 100%);
  border: 4px solid #00f2fe;
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.45);
  color: #00f2fe;
}
.score-tier-good .score-tier-text {
  color: #00f2fe;
}

.score-tier-average .score-circular-badge {
  background: radial-gradient(circle, #2d1319 0%, #151624 100%);
  border: 4px solid #f43f5e;
  box-shadow: 0 0 30px rgba(244, 63, 94, 0.45);
  color: #f43f5e;
}
.score-tier-average .score-tier-text {
  color: #f43f5e;
}

/* Pros and Cons (نکات مثبت و منفی) */
.review-pros-cons-grid,
.review-pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}

@media (min-width: 768px) {
  .review-pros-cons-grid,
  .review-pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}

.review-spec-col,
.pros-box,
.cons-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(8px);
}

.pros-spec-col,
.pros-box {
  border-top: 4px solid #10b981;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.cons-spec-col,
.cons-box {
  border-top: 4px solid #f43f5e;
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.08) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.spec-col-header,
.pros-cons-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-icon-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-weight: 900;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.spec-icon-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
  font-weight: 900;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.spec-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.pros-spec-col .spec-title,
.pros-box .pros-cons-title {
  color: #34d399;
}

.cons-spec-col .spec-title,
.cons-box .pros-cons-title {
  color: #fb7185;
}

.spec-points-list,
.pros-cons-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-points-list li,
.pros-cons-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.pros-spec-col .spec-bullet-dot {
  color: #10b981;
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.cons-spec-col .spec-bullet-dot {
  color: #f43f5e;
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.spec-point-text {
  flex: 1;
}

/* Final Verdict Card */
.review-final-verdict-card {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  border-right: 4px solid var(--accent);
}

.verdict-header {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verdict-body {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

/* Social Share Bar */
.post-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin: 35px 0;
}

.share-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.share-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.share-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Author Box (Dbazi Style) */
.author-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin: 40px 0;
}

.author-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}

.author-card-name {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}

.author-card-bio {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #06070a;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 45px;
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 4fr 2fr 2fr 4fr;
  }
}

.footer-widget-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 2px;
  background: var(--accent-cyan);
}

.footer-about-text,
.footer-desc {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.8;
  margin-top: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-links a::before {
  content: '‹';
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
  line-height: 1;
}

.footer-links a:hover {
  color: #ffffff !important;
  transform: translateX(-4px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(2px);
  color: var(--accent);
}

.footer-contact-box {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.88rem;
  color: #94a3b8;
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.back-to-top-btn:hover {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* --------------------------------------------------------------------------
   9. Toast Notification
   -------------------------------------------------------------------------- */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   10. Community Auth Modal (SMS & Email)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.auth-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.96);
  width: 90%;
  max-width: 440px;
  background: var(--bg-secondary);
  border: 1px solid rgba(121, 40, 202, 0.4);
  border-radius: var(--radius-xl);
  padding: 30px;
  z-index: 1600;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(121, 40, 202, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.auth-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.auth-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.auth-alert {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.auth-alert.error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #f43f5e;
}

.auth-alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.auth-tabs {
  display: flex;
  background: var(--bg-primary);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 22px;
}

.auth-tab-btn {
  flex: 1;
  padding: 8px 12px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.auth-tab-btn.active {
  background: var(--bg-card);
  color: var(--accent-cyan);
  box-shadow: var(--shadow-sm);
}

.auth-tab-content {
  display: none;
}

.auth-tab-content.active {
  display: block;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(121, 40, 202, 0.3);
}

.form-help {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-auth-submit {
  width: 100%;
  padding: 12px;
  justify-content: center;
  font-size: 0.96rem;
  margin-top: 6px;
}

.timer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.timer-countdown {
  font-family: var(--font-mono);
  color: var(--accent-gold);
  font-weight: 700;
}

.btn-text-link {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 700;
  padding: 0;
}

.btn-text-link:hover {
  text-decoration: underline;
}

.email-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.subtab-btn {
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.subtab-btn.active {
  background: rgba(0, 180, 216, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 180, 216, 0.3);
}

/* ==========================================================================
   11. Bookmarks Drawer & Bookmark Buttons
   ========================================================================== */
.bookmarks-drawer {
  position: fixed;
  top: 0;
  left: -360px;
  width: 340px;
  height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  z-index: 1400;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

.bookmarks-drawer.active {
  left: 0;
}

.bookmarks-drawer-body {
  flex: 1;
  overflow-y: auto;
  margin-top: 16px;
}

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

.bookmark-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.bookmark-item-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.bookmark-item-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.bookmark-item-info {
  flex: 1;
  overflow: hidden;
}

.bookmark-item-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bookmark-remove-btn {
  color: var(--text-muted);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.bookmark-remove-btn:hover {
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.1);
}

.bookmarks-empty-state {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.bookmarks-empty-state .empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--text-muted);
  opacity: 0.4;
}

.header-badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* Post Bookmark Buttons */
.btn-bookmark-post {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-bookmark-post svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn-bookmark-post:hover,
.btn-bookmark-post.bookmarked {
  background: rgba(0, 180, 216, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.post-card-bookmark-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: rgba(9, 10, 16, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: var(--transition);
}

.post-card-bookmark-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.post-card-bookmark-btn:hover,
.post-card-bookmark-btn.bookmarked {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(9, 10, 16, 0.95);
  transform: scale(1.1);
}

/* ==========================================================================
   12. Community Nested Comments & Reactions
   ========================================================================== */
.community-comments-section {
  margin-top: 45px;
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
}

.comments-counter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: rgba(121, 40, 202, 0.2);
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 800;
  margin-right: 8px;
}

.comment-create-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 30px;
}

.comment-user-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
}

.user-greeting {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.user-name-highlight {
  color: #fff;
  font-size: 0.95rem;
}

.comment-guest-prompt {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .comment-guest-prompt {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Nested Tree */
.comments-tree {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-node {
  display: flex;
  flex-direction: column;
}

.comment-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: var(--transition);
}

.comment-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.comment-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.comment-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.comment-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 14px;
  white-space: pre-wrap;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
}

.reaction-btn svg {
  width: 14px;
  height: 14px;
}

.reaction-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.reaction-btn.like.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.reaction-btn.dislike.active {
  background: rgba(244, 63, 94, 0.15);
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}

.comment-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: auto;
  transition: var(--transition);
}

.comment-reply-btn:hover {
  color: var(--accent-cyan);
}

/* Replies Indentation & Tree Connector */
.comment-replies {
  margin-right: 28px;
  margin-top: 14px;
  padding-right: 18px;
  border-right: 2px solid rgba(121, 40, 202, 0.35);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 640px) {
  .comment-replies {
    margin-right: 14px;
    padding-right: 10px;
  }
}

.reply-form-wrapper {
  margin-top: 12px;
  padding: 14px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.comment-create-card textarea,
.reply-form-wrapper textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 95px;
  outline: none;
  transition: var(--transition);
}

.comment-create-card textarea:focus,
.reply-form-wrapper textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(121, 40, 202, 0.15);
}

.btn-submit-comment {
  display: inline-flex !important;
  white-space: nowrap !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px !important;
  font-size: 0.9rem !important;
  border-radius: var(--radius-md);
  cursor: pointer;
}

/* Header User Profile Dropdown */
.header-user-menu {
  position: relative;
}

.header-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.88rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.header-user-btn .user-display-name {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--text-primary);
}

.header-user-btn:hover {
  border-color: var(--accent);
}

@media (max-width: 1280px) {
  .header-user-btn .user-display-name {
    max-width: 70px;
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .header-user-btn .user-display-name {
    display: none;
  }
  .header-user-btn {
    padding: 4px 8px 4px 6px;
  }
}

.header-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1000;
}

.header-user-dropdown.show {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
}

.dropdown-item:hover {
  background: var(--bg-card);
  color: #fff;
}

.dropdown-item.danger:hover {
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.1);
}

.comments-loading {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   14. Light Mode Theme Support
   ========================================================================== */
[data-theme="light"] {
  --bg-primary: #f4f6fa;
  --bg-secondary: #eaedf5;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.9);
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(121, 40, 202, 0.25);
  --border-hover: rgba(0, 180, 216, 0.6);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(121, 40, 202, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(0, 180, 216, 0.04) 0%, transparent 40%);
  color: var(--text-primary);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .site-logo {
  color: #0f172a;
}

[data-theme="light"] .nav-item a,
[data-theme="light"] .nav-list > li > a {
  color: #334155 !important;
}

[data-theme="light"] .nav-item a:hover,
[data-theme="light"] .nav-list > li > a:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}

[data-theme="light"] .nav-item.nav-current a,
[data-theme="light"] .nav-list > li.current-menu-item > a {
  background: rgba(var(--accent-rgb), 0.12) !important;
  color: var(--accent) !important;
}

[data-theme="light"] .post-hero-title,
[data-theme="light"] .post-card-title,
[data-theme="light"] .widget-title,
[data-theme="light"] .auth-modal-title,
[data-theme="light"] .review-mini-title,
[data-theme="light"] .trending-title,
[data-theme="light"] .comment-author-name,
[data-theme="light"] .mosaic-title {
  color: #0f172a;
}

[data-theme="light"] .mosaic-card .mosaic-title {
  color: #ffffff; /* keep text bright over dark overlay */
}

[data-theme="light"] .mosaic-card .mosaic-footer,
[data-theme="light"] .mosaic-card .mosaic-footer .mosaic-author,
[data-theme="light"] .mosaic-card .mosaic-footer .author-name,
[data-theme="light"] .mosaic-card .mosaic-footer span {
  color: #ffffff !important;
}

[data-theme="light"] .mosaic-card .mosaic-footer .mosaic-author svg {
  color: var(--accent-cyan) !important;
}

[data-theme="light"] .mosaic-card .mosaic-footer .mosaic-date,
[data-theme="light"] .mosaic-card .mosaic-footer time {
  color: #e2e8f0 !important;
}

[data-theme="light"] .mosaic-card .mosaic-footer .mosaic-date svg {
  color: #94a3b8 !important;
}

[data-theme="light"] .mosaic-card .mosaic-footer .mosaic-sep {
  color: rgba(255, 255, 255, 0.45) !important;
}

[data-theme="light"] .gh-content {
  color: #1e293b;
}

[data-theme="light"] .gh-content h1,
[data-theme="light"] .gh-content h2,
[data-theme="light"] .gh-content h3,
[data-theme="light"] .gh-content h4 {
  color: #0f172a;
}

[data-theme="light"] .review-box-card,
[data-theme="light"] .review-score-box {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .review-card-top,
[data-theme="light"] .review-box-top {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .review-game-title {
  color: #0f172a;
}

[data-theme="light"] .review-dev-text {
  color: #64748b;
}

[data-theme="light"] .review-dev-text strong {
  color: #0f172a;
}

[data-theme="light"] .platform-mini-tag {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

[data-theme="light"] .score-tier-masterpiece .score-circular-badge,
[data-theme="light"] .score-tier-masterpiece .review-score-circle {
  background: radial-gradient(circle, #fffbeb 0%, #fef3c7 100%);
  border-color: #f59e0b;
  color: #b45309;
}
[data-theme="light"] .score-tier-masterpiece .score-number-big,
[data-theme="light"] .score-tier-masterpiece .score-tier-text {
  color: #b45309 !important;
}
[data-theme="light"] .score-tier-masterpiece .score-out-of,
[data-theme="light"] .score-tier-masterpiece .review-score-max {
  color: #78350f !important;
  font-weight: 800 !important;
}

[data-theme="light"] .score-tier-great .score-circular-badge {
  background: radial-gradient(circle, #ecfdf5 0%, #d1fae5 100%);
  border-color: #10b981;
  color: #047857;
}
[data-theme="light"] .score-tier-great .score-number-big,
[data-theme="light"] .score-tier-great .score-tier-text {
  color: #047857 !important;
}
[data-theme="light"] .score-tier-great .score-out-of,
[data-theme="light"] .score-tier-great .review-score-max {
  color: #065f46 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .score-tier-good .score-circular-badge {
  background: radial-gradient(circle, #f0fdfa 0%, #ccfbf1 100%);
  border-color: #06b6d4;
  color: #0e7490;
}
[data-theme="light"] .score-tier-good .score-number-big,
[data-theme="light"] .score-tier-good .score-tier-text {
  color: #0e7490 !important;
}
[data-theme="light"] .score-tier-good .score-out-of,
[data-theme="light"] .score-tier-good .review-score-max {
  color: #155e75 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .score-tier-average .score-circular-badge {
  background: radial-gradient(circle, #fff1f2 0%, #ffe4e6 100%);
  border-color: #f43f5e;
  color: #be123c;
}
[data-theme="light"] .score-tier-average .score-number-big,
[data-theme="light"] .score-tier-average .score-tier-text {
  color: #be123c !important;
}
[data-theme="light"] .score-tier-average .score-out-of,
[data-theme="light"] .score-tier-average .review-score-max {
  color: #881337 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .review-spec-col,
[data-theme="light"] .pros-box, 
[data-theme="light"] .cons-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .pros-spec-col {
  background: #f0fdf4;
  border-top-color: #10b981;
}

[data-theme="light"] .cons-spec-col {
  background: #fff1f2;
  border-top-color: #f43f5e;
}

[data-theme="light"] .spec-col-header,
[data-theme="light"] .pros-cons-title {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .spec-points-list li,
[data-theme="light"] .pros-cons-list li {
  color: #334155;
}

[data-theme="light"] .review-final-verdict-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .verdict-header {
  color: #0f172a;
}

[data-theme="light"] .verdict-body {
  color: #334155;
}

[data-theme="light"] .auth-modal,
[data-theme="light"] .mobile-drawer,
[data-theme="light"] .bookmarks-drawer {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .form-group input, 
[data-theme="light"] .form-group textarea {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .header-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

[data-theme="light"] .header-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: var(--accent-cyan);
}

[data-theme="light"] .header-user-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

[data-theme="light"] .header-user-dropdown {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .dropdown-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .site-footer {
  background: #0f121d;
  color: #f8fafc;
}

[data-theme="light"] .site-footer .footer-widget-title,
[data-theme="light"] .site-footer .site-logo {
  color: #ffffff;
}

/* Light Mode: Reviews Section */
[data-theme="light"] .reviews-section {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .review-card-mini {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .review-badge-circle {
  background: #ffffff;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 4px 12px rgba(255, 183, 3, 0.25);
}

[data-theme="light"] .review-mini-title a {
  color: #0f172a;
}

[data-theme="light"] .review-mini-title a:hover {
  color: var(--accent-cyan);
}

/* Light Mode: Left Sidebar Widgets */
[data-theme="light"] .widget {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .widget-title {
  color: #0f172a;
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .newsletter-widget {
  background: linear-gradient(145deg, #ffffff, #f5f3ff);
  border: 1px solid rgba(121, 40, 202, 0.25);
  box-shadow: 0 4px 20px rgba(121, 40, 202, 0.06);
}

[data-theme="light"] .newsletter-title {
  color: #1e1b4b;
}

[data-theme="light"] .newsletter-desc {
  color: #475569;
}

[data-theme="light"] .newsletter-icon {
  background: rgba(121, 40, 202, 0.12);
}

[data-theme="light"] .newsletter-icon svg {
  fill: #7928ca;
}

[data-theme="light"] .platform-pill {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.08);
  color: #334155;
}

[data-theme="light"] .platform-pill:hover {
  background: #ede9fe;
  border-color: var(--accent);
  color: #7928ca;
}

[data-theme="light"] .trending-title a {
  color: #0f172a;
}

[data-theme="light"] .trending-title a:hover {
  color: var(--accent-cyan);
}

[data-theme="light"] .trending-index {
  color: #00b4d8;
  opacity: 0.8;
}

/* Light Mode: Community Comments */
[data-theme="light"] .community-comments-section {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .comment-create-card,
[data-theme="light"] .comment-card {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .comment-create-card textarea,
[data-theme="light"] .reply-form-wrapper textarea {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

[data-theme="light"] .comment-create-card textarea:focus,
[data-theme="light"] .reply-form-wrapper textarea:focus {
  background: #ffffff;
  border-color: var(--accent);
}

[data-theme="light"] .user-name-highlight {
  color: #0f172a;
}

[data-theme="light"] .user-greeting {
  color: #64748b;
}

[data-theme="light"] .comment-author-name {
  color: #0f172a;
}

[data-theme="light"] .comment-body {
  color: #1e293b;
}

[data-theme="light"] .reaction-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

[data-theme="light"] .reaction-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .comments-counter-badge {
  background: rgba(121, 40, 202, 0.1);
  color: #7928ca;
}

[data-theme="light"] .comment-actions {
  border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .reply-form-wrapper {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .pagination-info {
  color: #475569 !important;
}

/* Theme toggle icon state */
.icon-sun {
  display: none;
}
.icon-moon {
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .icon-sun {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
}
[data-theme="light"] .icon-moon {
  display: none;
}

/* ==========================================================================
   Comment Moderation & Locked Notice Styles
   ========================================================================== */
.comment-locked-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px dashed rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 14px;
}

.comment-approval-note {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--accent-amber);
  margin-top: 12px;
}

.comment-badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
}

.comment-badge-rejected {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.35);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
}

.admin-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
}

.admin-inline-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  font-family: inherit;
}

.admin-inline-btn.approve:hover {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: #34d399;
}

.admin-inline-btn.reject:hover {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border-color: #fb7185;
}

.header-user-dropdown a.admin-link {
  color: #818cf8;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.header-user-dropdown a.admin-link:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

/* ==========================================================================
   Color Theme Picker Dropdown
   ========================================================================== */
.color-picker-wrapper {
  position: relative;
}

.color-presets-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
}

.color-presets-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.color-dot-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.color-dot-btn:hover {
  transform: scale(1.2);
}

.color-dot-btn.active {
  border-color: #fff;
  box-shadow: 0 0 12px currentColor;
  transform: scale(1.15);
}

.color-dot-btn.dot-red { background: #e50914; color: #e50914; }
.color-dot-btn.dot-purple { background: #8b5cf6; color: #8b5cf6; }
.color-dot-btn.dot-blue { background: #00b4d8; color: #00b4d8; }
.color-dot-btn.dot-gold { background: #f59e0b; color: #f59e0b; }
.color-dot-btn.dot-green { background: #10b981; color: #10b981; }

[data-theme="light"] .color-presets-dropdown {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Comment Form - Localized Guest Fields & Styling
   ========================================================================== */
.gamehub-comment-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .gamehub-comment-fields-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.gamehub-comment-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gamehub-form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.gamehub-form-label .required {
  color: var(--accent);
  margin-left: 4px;
}

.gamehub-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

.gamehub-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.2);
  background: var(--bg-card-hover);
}

.gamehub-comment-guest-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.gamehub-comment-guest-notice a {
  color: var(--accent-secondary);
  font-weight: 700;
  text-decoration: underline;
}

[data-theme="light"] .gamehub-input {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

[data-theme="light"] .gamehub-input:focus {
  background: #ffffff;
  border-color: var(--accent);
}

[data-theme="light"] .gamehub-comment-guest-notice {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

/* ==========================================================================
   Ads & Sponsorship Styles
   ========================================================================== */
/* Header Banner Ad */
.gamehub-header-ad-wrap {
  width: 100%;
  max-width: var(--container-max);
  margin: 16px auto 0;
  padding: 0 20px;
}

.gamehub-header-ad-inner {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gamehub-header-ad-inner:hover {
  border-color: var(--border-hover);
}

.gamehub-header-ad-inner img {
  width: 100%;
  max-height: 110px;
  object-fit: cover;
  display: block;
}

.ad-badge-corner {
  position: absolute;
  top: 6px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #cbd5e1;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* Sidebar Banner Ad */
.sidebar-ad-widget {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  margin-bottom: 24px;
  text-align: center;
  transition: transform 0.2s ease;
}

.sidebar-ad-widget:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.sidebar-ad-widget img {
  width: 100%;
  height: auto;
  display: block;
}

/* In-Content Paragraph Ad */
.gamehub-in-article-ad {
  position: relative;
  margin: 32px 0;
  padding: 16px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  text-align: center;
  overflow: hidden;
}

.gamehub-in-article-ad .ad-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.gamehub-in-article-ad .ad-sponsor-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 5px;
}

.gamehub-in-article-ad .ad-sponsor-disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.gamehub-in-article-ad img {
  border-radius: var(--radius-sm);
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* Sponsored Article Badges */
.card-tag.tag-sponsored,
.badge-sponsored {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.article-sponsored-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-right: 4px solid #f59e0b;
  border-radius: var(--radius-md);
  margin: 20px 0 24px;
  color: var(--text-primary);
}

.article-sponsored-notice .sponsor-badge-tag {
  background: #f59e0b;
  color: #000;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.article-sponsored-notice .sponsor-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.article-sponsored-notice .sponsor-text strong {
  color: var(--accent-gold);
}

/* ==========================================================================
   GameHub Toast Notification
   ========================================================================== */
.gamehub-toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.gamehub-toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-right: 4px solid var(--accent);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gamehub-toast.toast-warning {
  border-right-color: var(--accent-gold);
}

.gamehub-toast.toast-success {
  border-right-color: var(--accent-emerald);
}

.gamehub-toast-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.gamehub-toast-btn:hover {
  opacity: 0.9;
}

@keyframes slideInToast {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Custom Frontend Login & Registration Page (/login/)
   -------------------------------------------------------------------------- */
.custom-auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-xl);
  padding: 38px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 26px;
}

.auth-brand-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.auth-brand-badge .site-logo-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.4);
}

.auth-brand-badge .site-logo-icon svg {
  width: 30px;
  height: 30px;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.auth-tab-bar {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.auth-tab-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 14px rgba(var(--accent-rgb), 0.45);
}

@media (max-width: 600px) {
  .auth-tab-bar {
    gap: 3px;
    padding: 3px;
  }
  .auth-tab-btn {
    padding: 8px 4px;
    font-size: 0.76rem;
    gap: 3px;
    white-space: nowrap;
  }
}

.auth-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.5;
}

.auth-alert-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.auth-alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.auth-tab-content {
  display: none;
}

.auth-tab-content.active {
  display: block;
  animation: fadeInAuth 0.25s ease-out;
}

@keyframes fadeInAuth {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form-group {
  margin-bottom: 18px;
}

.gamehub-form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gamehub-input {
  width: 100%;
  padding: 12px 42px 12px 42px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  transition: var(--transition);
  box-sizing: border-box;
}

.gamehub-input:focus {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.45);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25);
}

.auth-password-toggle {
  position: absolute;
  left: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.auth-password-toggle:hover {
  color: var(--text-primary);
}

.auth-forgot-link {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.auth-forgot-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.auth-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.auth-submit-btn {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-gradient-end, #be0b13));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(var(--accent-rgb), 0.4);
  transition: var(--transition);
  font-family: inherit;
  margin-top: 10px;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(var(--accent-rgb), 0.6);
  color: #ffffff;
}

/* Light Theme Overrides for Auth Card */
[data-theme="light"] .custom-auth-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .auth-tab-bar {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] .auth-tab-btn {
  color: #64748b;
}

[data-theme="light"] .auth-tab-btn:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .auth-tab-btn.active {
  background: var(--accent);
  color: #ffffff;
}

[data-theme="light"] .gamehub-input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .gamehub-input:focus {
  background: #ffffff;
  border-color: var(--accent);
}

[data-theme="light"] .auth-alert-danger {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

[data-theme="light"] .auth-alert-success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.auth-card-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.auth-back-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-back-link:hover {
  color: var(--accent);
}

[data-theme="light"] .auth-back-link {
  color: #64748b;
}

[data-theme="light"] .auth-back-link:hover {
  color: var(--accent);
}

/* ==========================================================================
   15. High Contrast Post Dates & Meta Visibility Fix
   ========================================================================== */
.post-card-meta time,
.mosaic-meta time,
.review-card-meta time,
.review-time,
.trending-date,
.trending-meta time,
.post-header-meta time,
.js-time-relative,
.js-time-jalali {
  color: #cbd5e1 !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

[data-theme="light"] .post-card-meta time,
[data-theme="light"] .mosaic-meta time,
[data-theme="light"] .review-card-meta time,
[data-theme="light"] .review-time,
[data-theme="light"] .trending-date,
[data-theme="light"] .trending-meta time,
[data-theme="light"] .post-header-meta time,
[data-theme="light"] .js-time-relative,
[data-theme="light"] .js-time-jalali {
  color: #1e293b !important;
  font-weight: 700;
}

/* Post Views Counter Badge */
.post-views-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--accent-cyan, #00f2fe);
}

[data-theme="light"] .post-views-count {
  color: #0284c7;
}

/* ==========================================================================
   16. Comment Cards & Nested Reply Indentation Tree Fix
   ========================================================================== */
.community-comments-section {
  width: 100%;
}

.comment-card {
  background: var(--bg-card, #151624);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 10px);
  padding: 14px 18px !important;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.comment-card:hover {
  border-color: rgba(var(--accent-rgb, 121, 40, 202), 0.35);
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px !important;
}

.comment-body {
  font-size: 0.92rem !important;
  line-height: 1.65 !important;
  color: var(--text-primary);
  margin-bottom: 8px !important;
  white-space: pre-wrap;
}

.comment-body p {
  margin: 0 !important;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 12px !important;
  padding-top: 8px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Nested replies indentation & visual hierarchy */
ul.children {
  list-style: none !important;
  padding: 0 18px 0 0 !important;
  margin: 12px 24px 0 0 !important;
  border-right: 3px solid var(--accent, #7928ca) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  position: relative;
}

ul.children .comment-card {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  padding: 12px 16px !important;
}

[data-theme="light"] .comment-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .comment-actions {
  border-top-color: #f1f5f9;
}

[data-theme="light"] ul.children {
  border-right-color: var(--accent, #7928ca) !important;
}

[data-theme="light"] ul.children .comment-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

.comment-reply-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent, #7928ca);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-sm, 6px);
  background: rgba(var(--accent-rgb, 121, 40, 202), 0.1);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.comment-reply-link:hover {
  background: var(--accent, #7928ca);
  color: #ffffff;
}

/* ==========================================================================
   17. Header Notifications Dropdown Styling
   ========================================================================== */
.notifications-wrapper {
  position: relative;
}

.header-notifications-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 330px;
  max-width: 90vw;
  background: #151624 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
  z-index: 1200;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: notifFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notifFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-header strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
}

.notif-mark-read {
  background: none;
  border: none;
  color: var(--accent, #7928ca);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.notif-mark-read:hover {
  background: rgba(var(--accent-rgb, 121, 40, 202), 0.15);
}

.notif-list {
  max-height: 360px;
  overflow-y: auto;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.notif-item.unread {
  background: rgba(var(--accent-rgb, 121, 40, 202), 0.1);
  border-right: 3px solid var(--accent, #7928ca);
}

[data-theme="light"] .header-notifications-dropdown {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .notif-header {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .notif-header strong {
  color: #0f172a;
}

[data-theme="light"] .notif-item {
  border-bottom-color: #f1f5f9;
}

[data-theme="light"] .notif-item:hover {
  background: #f8fafc;
}

[data-theme="light"] .notif-item.unread {
  background: #f5f3ff;
}

/* ==========================================================================
   18. Bookmarks Drawer Enhancements
   ========================================================================== */
.bookmarks-drawer {
  position: fixed;
  top: 0;
  left: -380px;
  width: 360px;
  max-width: 88vw;
  height: 100vh;
  background: #151624 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  z-index: 100050 !important;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* Offset when WordPress Admin Bar is present so header is fully visible */
body.admin-bar .bookmarks-drawer {
  top: 32px !important;
  height: calc(100vh - 32px) !important;
}

@media (max-width: 782px) {
  body.admin-bar .bookmarks-drawer {
    top: 46px !important;
    height: calc(100vh - 46px) !important;
  }
}

#bookmarks-overlay,
.drawer-overlay {
  z-index: 100040 !important;
}

.bookmarks-drawer.active {
  left: 0;
}

.bookmarks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.bookmarks-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.bookmarks-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.bookmarks-close-btn:hover {
  background: #f43f5e;
  border-color: #f43f5e;
  color: #fff;
}

.bookmarks-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bookmark-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.bookmark-item-card:hover {
  border-color: rgba(var(--accent-rgb, 121, 40, 202), 0.5);
  transform: translateY(-1px);
}

[data-theme="light"] .bookmarks-drawer {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .bookmarks-header {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .bookmarks-header h3 {
  color: #0f172a;
}

[data-theme="light"] .bookmarks-close-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

[data-theme="light"] .bookmark-item-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* ==========================================================================
   19. Live Stream Announcement Banner (🔴 پخش زنده)
   ========================================================================== */
.gamehub-livestream-banner {
  margin: 16px 0 24px;
  position: relative;
}

.livestream-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.15) 0%, rgba(121, 40, 202, 0.15) 100%);
  border: 1.5px solid rgba(244, 63, 94, 0.4);
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.livestream-left-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.livestream-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e11d48;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.5);
  flex-shrink: 0;
}

.livestream-pulse-dot {
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  animation: liveStreamPulse 1.2s infinite ease-in-out;
}

@keyframes liveStreamPulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 1; }
}

.livestream-details {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.livestream-platform-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.livestream-game-tag {
  background: rgba(var(--accent-rgb, 121, 40, 202), 0.25);
  color: #e2e8f0;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.livestream-title {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
}

.livestream-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.35);
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.livestream-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.55);
  color: #ffffff;
}

[data-theme="light"] .livestream-inner {
  background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 100%);
  border-color: #fda4af;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.08);
}

[data-theme="light"] .livestream-platform-tag {
  background: #f1f5f9;
  color: #334155;
}

.livestream-platform-tag.platform-kick {
  background: rgba(83, 252, 24, 0.18) !important;
  color: #53fc18 !important;
  border: 1px solid rgba(83, 252, 24, 0.45) !important;
  font-weight: 800;
}

[data-theme="light"] .livestream-platform-tag.platform-kick {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #6ee7b7 !important;
}

[data-theme="light"] .livestream-game-tag {
  background: #f3e8ff;
  color: #7928ca;
}

[data-theme="light"] .livestream-title {
  color: #0f172a;
}

@media (max-width: 768px) {
  .livestream-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .livestream-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   20. Breadcrumb Navigation
   ========================================================================== */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb-nav a:hover {
  color: var(--accent-cyan);
}

.breadcrumb-sep {
  opacity: 0.45;
  font-size: 0.78rem;
  margin: 0 2px;
}

.breadcrumb-current {
  color: var(--text-muted);
  max-width: 420px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

[data-theme="light"] .breadcrumb-nav a {
  color: #475569;
}

[data-theme="light"] .breadcrumb-nav a:hover {
  color: var(--accent);
}

[data-theme="light"] .breadcrumb-current {
  color: #64748b;
}

/* ==========================================================================
   21. Modern Gaming Search Modal
   ========================================================================== */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.search-modal-box {
  position: relative;
  width: 100%;
  max-width: 620px;
  background: #121422;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(121, 40, 202, 0.2);
  transform: translateY(-20px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

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

.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.search-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.search-brand-title svg {
  color: var(--accent-cyan);
}

.search-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  cursor: pointer;
}

.search-modal-close:hover {
  background: #f43f5e;
  border-color: #f43f5e;
  color: #ffffff;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 6px 8px 6px 16px;
  transition: var(--transition);
}

.search-input-wrapper:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
  background: rgba(0, 0, 0, 0.6);
}

#search-modal-input {
  flex: 1;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1.05rem;
  font-family: inherit;
  outline: none;
  padding: 8px 0;
  direction: rtl;
}

#search-modal-input::placeholder {
  color: #64748b;
  font-size: 0.95rem;
}

.search-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(121, 40, 202, 0.4);
  transition: var(--transition);
  flex-shrink: 0;
}

.search-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

.search-quick-tags {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-tags-label {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 700;
  margin-left: 4px;
}

.search-tag-pill {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.search-tag-pill:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-1px);
}

[data-theme="light"] .search-modal-box {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .search-brand-title {
  color: #0f172a;
}

[data-theme="light"] .search-input-wrapper {
  background: #f8fafc;
  border-color: #cbd5e1;
}

[data-theme="light"] #search-modal-input {
  color: #0f172a;
}

[data-theme="light"] .search-tag-pill {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

/* ==========================================================================
   22. Mobile Drawer Search & User Card Enhancements
   ========================================================================== */
.drawer-search-wrap {
  margin-bottom: 20px;
}

.drawer-search-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px 10px;
}

.drawer-search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  padding: 8px 4px;
  outline: none;
}

.drawer-search-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.drawer-search-btn:hover {
  color: var(--accent-cyan);
}

.drawer-footer-actions {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.35);
}

.drawer-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.drawer-user-info {
  display: flex;
  flex-direction: column;
}

.drawer-user-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
}

.drawer-user-meta {
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

.drawer-user-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-user-link {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.drawer-user-link:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.drawer-user-link.danger {
  color: var(--accent-rose);
}

/* Mobile Toast Overflow Guard */
@media (max-width: 640px) {
  .gamehub-toast-container {
    left: 14px !important;
    right: 14px !important;
    bottom: 16px !important;
  }
  .gamehub-toast {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   23. Newsletter Subscribed State Card
   ========================================================================== */
.newsletter-subscribed-card {
  padding: 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  text-align: center;
  animation: fadeIn 0.3s ease-in;
}

.subscribed-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.subscribed-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-live 1.8s infinite;
}

.subscribed-status-msg {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.subscribed-status-msg strong {
  color: var(--accent-cyan);
}

.btn-unsubscribe-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.76rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.btn-unsubscribe-link:hover {
  color: var(--accent-rose);
}

[data-theme="light"] .newsletter-subscribed-card {
  background: #f0fdf4;
  border-color: #86efac;
}

[data-theme="light"] .subscribed-status-msg {
  color: #166534;
}

[data-theme="light"] .subscribed-status-msg strong {
  color: #047857;
}

/* ==========================================================================
   24. Story Spoiler Warning & Interactive Shortcode
   ========================================================================== */
.gamehub-story-spoiler-notice {
  margin: 20px 0 28px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.12) 0%, rgba(159, 18, 57, 0.08) 100%);
  border: 1.5px solid rgba(225, 29, 72, 0.4);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.1);
}

.spoiler-notice-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.spoiler-notice-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.spoiler-notice-text strong {
  display: block;
  font-size: 0.98rem;
  color: #f43f5e;
  margin-bottom: 4px;
}

.spoiler-notice-text p {
  margin: 0;
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.6;
}

[data-theme="light"] .gamehub-story-spoiler-notice {
  background: #fff1f2;
  border-color: #fecdd3;
}

[data-theme="light"] .spoiler-notice-text strong {
  color: #be123c;
}

[data-theme="light"] .spoiler-notice-text p {
  color: #881337;
}

/* Interactive [spoiler] box */
.gamehub-spoiler-box {
  margin: 24px 0;
  border: 1px dashed var(--accent-rose);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: var(--transition);
}

.spoiler-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(225, 29, 72, 0.1);
  cursor: pointer;
  user-select: none;
}

.spoiler-title {
  color: #f43f5e;
  font-size: 0.9rem;
}

.spoiler-toggle-hint {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.1);
}

.spoiler-content {
  padding: 18px;
  filter: blur(8px);
  user-select: none;
  transition: filter 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gamehub-spoiler-box.revealed .spoiler-content {
  filter: blur(0);
  user-select: text;
}

/* ==========================================================================
   25. Game Data Card (Technical Specs)
   ========================================================================== */
.gamehub-specs-card {
  margin: 28px 0 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.specs-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
}

.specs-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.specs-game-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--accent-cyan);
}

.specs-grid-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border-color);
}

.specs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-card);
  font-size: 0.88rem;
}

.specs-label {
  color: var(--text-muted);
  font-weight: 600;
}

.specs-val {
  color: var(--text-primary);
  font-weight: 700;
  text-align: left;
  direction: ltr;
}

.specs-age-rating {
  color: #f59e0b;
}

/* ==========================================================================
   26. Video Trailer Player Section
   ========================================================================== */
.gamehub-trailer-section {
  margin: 36px 0;
  background: #090a10;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.trailer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-color);
}

.trailer-platform-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  padding: 2px 8px;
  background: rgba(0, 242, 254, 0.12);
  border-radius: var(--radius-sm);
}

.trailer-iframe-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background: #000;
}

.trailer-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   27. Source Citation Box
   ========================================================================== */
.gamehub-source-attribution-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 24px;
  font-size: 0.88rem;
}

.source-label {
  color: var(--text-muted);
  font-weight: 600;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-cyan);
  font-weight: 700;
  transition: color 0.2s ease;
}

.source-link:hover {
  color: #fff;
}

/* ==========================================================================
   28. Floating Article Reading Progress Indicator & Back to Top
   ========================================================================== */
.reading-indicator {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 850;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(121, 40, 202, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.3s ease, border-color 0.2s ease;
  user-select: none;
}

.reading-indicator.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.reading-indicator:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(121, 40, 202, 0.35);
}

.reading-indicator.finished {
  border-color: #10b981;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 18px rgba(16, 185, 129, 0.35);
}

.reading-indicator-ring {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reading-indicator-ring .circular-chart {
  width: 36px;
  height: 36px;
  display: block;
  transform: rotate(-90deg);
}

.reading-indicator-ring .circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 3.2;
}

.reading-indicator-ring .circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.2;
  stroke-linecap: round;
  transition: stroke-dasharray 0.12s linear, stroke 0.3s ease;
}

.reading-indicator.finished .circle {
  stroke: #10b981;
}

.reading-percent-num {
  position: absolute;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  line-height: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.reading-arrow-icon {
  position: absolute;
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.reading-indicator:hover .reading-percent-num {
  opacity: 0;
  transform: translateY(-4px);
}

.reading-indicator:hover .reading-arrow-icon {
  opacity: 1;
  transform: translateY(0);
}

.reading-indicator-label {
  display: flex;
  flex-direction: column;
}

#reading-status-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.reading-indicator:hover #reading-status-text {
  color: var(--accent-cyan);
}

/* Light Theme overrides for Reading Indicator */
[data-theme="light"] .reading-indicator {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 0 15px rgba(121, 40, 202, 0.15);
}

[data-theme="light"] .reading-indicator-ring .circle-bg {
  stroke: rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   28.1. Header Reading Progress Bar & Full-Width Track (فیت کامل نوار مطالعه)
   ========================================================================== */
.reading-progress-track,
#reading-progress-track {
  display: none; /* Shown dynamically via JS only on single article pages */
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  pointer-events: none;
  z-index: 999;
}

[data-theme="light"] .reading-progress-track,
[data-theme="light"] #reading-progress-track {
  background: rgba(0, 0, 0, 0.07);
}

#reading-progress,
.reading-progress-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: auto;
  height: 100%;
  width: 0%;
  background: linear-gradient(270deg, var(--accent, #e50914) 0%, #ff4b72 60%, var(--accent-cyan, #00b4d8) 100%);
  box-shadow: 0 0 10px var(--accent-glow, rgba(229, 9, 20, 0.45));
  border-radius: 4px 0 0 4px;
  transition: width 0.1s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

[data-theme="light"] #reading-progress,
[data-theme="light"] .reading-progress-bar {
  background: linear-gradient(270deg, var(--accent, #e50914) 0%, #ff4b72 60%, var(--accent-cyan, #00b4d8) 100%);
  box-shadow: 0 1px 6px rgba(229, 9, 20, 0.35);
}

/* Inline Color Presets in Dropdown & Mobile Drawer */
.color-presets-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-presets-inline .color-dot-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.color-presets-inline .color-dot-btn:hover {
  transform: scale(1.2);
}

.color-presets-inline .color-dot-btn.active {
  transform: scale(1.25);
  border-color: #fff;
  box-shadow: 0 0 8px currentColor;
}

[data-theme="light"] .color-presets-inline .color-dot-btn.active {
  border-color: #0f172a;
}

/* Dot colors */
.dot-red { background: #ef4444; color: #ef4444; }
.dot-purple { background: #8b5cf6; color: #8b5cf6; }
.dot-blue { background: #06b6d4; color: #06b6d4; }
.dot-gold { background: #f59e0b; color: #f59e0b; }
.dot-green { background: #10b981; color: #10b981; }

@media (max-width: 640px) {
  .reading-indicator {
    bottom: 20px;
    left: 20px;
    padding: 5px 10px 5px 6px;
  }
  .reading-indicator-label {
    display: none;
  }
}

/* ==========================================================================
   29. Upcoming Games Release Calendar Widget
   ========================================================================== */
.widget-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.upcoming-header-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(0, 180, 216, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 180, 216, 0.3);
  letter-spacing: -0.02em;
}

.upcoming-games-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upcoming-game-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}

.upcoming-game-card:hover {
  transform: translateX(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.18);
  background: rgba(0, 180, 216, 0.035);
}

.upcoming-game-thumb-wrap {
  width: 52px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  position: relative;
  background: var(--bg-card);
}

.upcoming-game-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.upcoming-game-card:hover .upcoming-game-thumb {
  transform: scale(1.08);
}

.upcoming-game-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upcoming-game-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.upcoming-game-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(121, 40, 202, 0.12);
  padding: 1px 7px;
  border-radius: 4px;
  border: 1px solid rgba(121, 40, 202, 0.25);
  display: inline-block;
  white-space: nowrap;
}

.upcoming-game-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.upcoming-game-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.upcoming-game-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 700;
}

.upcoming-platforms-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.plat-tag {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.02em;
}

/* Light theme overrides */
[data-theme="light"] .upcoming-game-card {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .upcoming-game-card:hover {
  background: rgba(0, 180, 216, 0.06);
}

[data-theme="light"] .plat-tag {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Editor's Pick (پیشنهاد سردبیر) Section
   ========================================================================== */
.editors-pick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(245, 158, 11, 0.22) !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
}

.editors-pick-card:hover .editors-pick-thumb-wrap img {
  transform: scale(1.05);
}

[data-theme="light"] .editors-pick-card {
  background: #ffffff !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .editors-pick-title a {
  color: #0f172a !important;
}

[data-theme="light"] .editors-pick-excerpt {
  color: #475569 !important;
}

[data-theme="light"] .editors-pick-footer {
  border-top-color: #e2e8f0 !important;
  color: #64748b !important;
}

/* ==========================================================================
   Google Preferred Source Button (Vigiato Style) & Follow Card
   ========================================================================== */
.gh-google-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gh-google-source-btn:hover {
  background: rgba(66, 133, 244, 0.15) !important;
  border-color: #4285f4 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.35) !important;
}

.gh-google-source-btn .gh-google-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gh-google-source-btn .gh-google-btn-text strong {
  color: #ffffff;
  font-weight: 800;
}

[data-theme="light"] .gh-google-source-btn {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .gh-google-source-btn:hover {
  background: #eff6ff !important;
  border-color: #4285f4 !important;
  color: #1d4ed8 !important;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.2) !important;
}

[data-theme="light"] .gh-google-source-btn .gh-google-btn-text strong {
  color: #0f172a;
}

.gh-google-source-card .gh-gsc-action-btn:hover {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="light"] .gh-google-source-card {
  background: #f8fafc !important;
  border-color: rgba(66, 133, 244, 0.35) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .gh-google-source-card h4 {
  color: #0f172a !important;
}

[data-theme="light"] .gh-google-source-card p {
  color: #475569 !important;
}

[data-theme="light"] .gh-gsc-icon-wrap {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

/* ==========================================================================
   Intelligent Related & Recommended Posts Section
   ========================================================================== */
.related-posts-section {
  margin-top: 40px;
  margin-bottom: 30px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.related-posts-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-red));
}

.related-posts-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.related-posts-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
}

.related-posts-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading, inherit);
}

.related-posts-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-right: 32px;
}

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

.related-post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.related-post-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.related-card-thumb-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0d1117;
}

.related-card-thumb {
  width: 100%;
  height: 100%;
  position: relative;
}

.related-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.related-post-card:hover .related-card-thumb img {
  transform: scale(1.06);
}

.related-card-no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.07));
}

.related-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(6px);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 2;
}

.related-card-reading-time {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.related-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 12px;
}

.related-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.related-card-title a:hover {
  color: var(--accent-cyan);
}

.related-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.related-card-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.related-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.related-post-card:hover .related-card-arrow {
  background: var(--accent-cyan);
  color: #000;
  transform: translateX(-3px);
}

@media (max-width: 900px) {
  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
  .related-posts-section {
    padding: 16px;
  }
}

/* ==========================================================================
   Live Instant Search Modal Dropdown
   ========================================================================== */
.search-live-results {
  margin-top: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  max-height: 380px;
  overflow-y: auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.live-search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.live-search-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.live-search-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.live-search-header {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.live-search-item {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
}

.live-search-item:last-child {
  border-bottom: none;
}

.live-search-item:hover {
  background: rgba(0, 240, 255, 0.05);
}

.live-search-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-decoration: none;
  color: inherit;
}

.live-search-thumb {
  width: 60px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #0d1117;
}

.live-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-search-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
}

.live-search-info {
  flex: 1;
  min-width: 0;
}

.live-search-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  font-size: 0.72rem;
}

.live-search-badge {
  color: var(--accent-cyan);
  font-weight: 700;
}

.live-search-date {
  color: var(--text-muted);
}

.live-search-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.live-search-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
}

.live-search-item:hover .live-search-arrow {
  color: var(--accent-cyan);
  transform: translateX(-4px);
}

.live-search-footer {
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.live-search-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}

.live-search-view-all:hover {
  gap: 10px;
  color: #fff;
}

/* ==========================================================================
   Article Reading Experience (UX/UI, Typography, Zen Mode, Special Content Tags)
   ========================================================================== */

/* 1. Reading Controls Toolbar */
.reading-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-card, #161922);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 12px);
  padding: 10px 16px;
  margin: 18px 0 28px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.reading-controls-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reading-controls-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.reading-controls-label svg {
  color: var(--accent, #e50914);
  stroke: var(--accent, #e50914);
  transition: stroke 0.25s ease, color 0.25s ease;
}

.font-size-adjuster {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(var(--accent-rgb, 229, 9, 20), 0.3);
  border-radius: 8px;
  padding: 2px;
  transition: border-color 0.25s ease;
}

.font-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary, #94a3b8);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.font-btn:not(.is-active):hover {
  color: var(--accent, #fff);
  background: rgba(255, 255, 255, 0.08);
}

.font-btn.is-active,
.font-btn.is-active:hover {
  background: var(--accent, #e50914) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px var(--accent-glow, rgba(229, 9, 20, 0.4)) !important;
}

.reading-control-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
  cursor: pointer;
  transition: all 0.2s ease;
}

.reading-control-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.reading-control-btn.is-active {
  background: var(--accent, #f43f5e);
  border-color: var(--accent, #f43f5e);
  color: #fff;
  box-shadow: 0 0 12px var(--accent-glow, rgba(244, 63, 94, 0.4));
}

/* 2. Content Font Size Variations */
.gh-content[data-font-size="small"] {
  font-size: 1rem !important;
  line-height: 1.85 !important;
}

.gh-content[data-font-size="small"] p {
  margin-bottom: 1.4em !important;
}

.gh-content[data-font-size="large"] {
  font-size: 1.25rem !important;
  line-height: 2.2 !important;
}

.gh-content[data-font-size="large"] p {
  margin-bottom: 2em !important;
}

/* 2.1 Text Justify Mode (تراز دوطرفه) */
.gh-content.text-justified,
.gh-content.text-justified p,
.gh-content.text-justified blockquote p {
  text-align: justify !important;
  text-justify: inter-word !important;
  text-align-last: right !important; /* prevents unnatural stretching of the last line in Persian */
}

/* 3. Zen / Focus Reading Mode (حالت مطالعه تمرکز بدون حواس‌پرتی) */
body.zen-reading-mode {
  background-color: #090b12 !important;
  background-image: none !important;
  color: #f1f5f9 !important;
  overflow-x: hidden !important;
}

/* Hide all distractions completely */
body.zen-reading-mode .site-header,
body.zen-reading-mode .gamehub-header-ad-wrap,
body.zen-reading-mode .mobile-drawer,
body.zen-reading-mode .drawer-overlay,
body.zen-reading-mode .breadcrumb-nav,
body.zen-reading-mode .site-sidebar,
body.zen-reading-mode aside.site-sidebar,
body.zen-reading-mode .post-hero-google-source-wrap,
body.zen-reading-mode .gh-google-source-card,
body.zen-reading-mode .article-sponsored-notice,
body.zen-reading-mode .post-card-meta .btn-bookmark-post,
body.zen-reading-mode .post-tags-row,
body.zen-reading-mode .post-share-bar,
body.zen-reading-mode .author-bio-card,
body.zen-reading-mode .related-posts-section,
body.zen-reading-mode .community-comments-section,
body.zen-reading-mode #comments,
body.zen-reading-mode .comment-locked-card,
body.zen-reading-mode .site-footer,
body.zen-reading-mode #reading-indicator,
body.zen-reading-mode .back-to-top {
  display: none !important;
}

/* Container & Grid layout in Zen mode */
body.zen-reading-mode .gh-container {
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  width: 100% !important;
}

body.zen-reading-mode .main-grid {
  display: block !important;
  grid-template-columns: 1fr !important;
  margin-top: 40px !important;
  width: 100% !important;
}

body.zen-reading-mode .single-article-col,
body.zen-reading-mode .main-content-col {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  float: none !important;
  padding: 0 0 100px 0 !important;
}

body.zen-reading-mode .single-post-wrapper {
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.zen-reading-mode .post-hero-title {
  font-size: 2.25rem !important;
  line-height: 1.5 !important;
  margin: 16px 0 20px !important;
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

body.zen-reading-mode .post-hero-lead {
  font-size: 1.15rem !important;
  line-height: 2 !important;
  color: #94a3b8 !important;
}

body.zen-reading-mode .post-featured-image-wrap {
  margin: 28px 0 36px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}

body.zen-reading-mode .reading-controls-bar {
  margin: 24px 0 32px !important;
  background: rgba(22, 25, 34, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

body.zen-reading-mode .gh-content {
  font-size: 1.2rem;
  line-height: 2.2 !important;
  color: #f1f5f9 !important;
}

body.zen-reading-mode .gh-content p {
  color: #cbd5e1 !important;
  font-size: 1.18rem !important;
  line-height: 2.2 !important;
  margin-bottom: 1.8em !important;
}

body.zen-reading-mode .gh-content[data-font-size="small"],
body.zen-reading-mode .gh-content[data-font-size="small"] p {
  font-size: 1.05rem !important;
  line-height: 2.0 !important;
}

body.zen-reading-mode .gh-content[data-font-size="large"],
body.zen-reading-mode .gh-content[data-font-size="large"] p {
  font-size: 1.35rem !important;
  line-height: 2.3 !important;
}

body.zen-reading-mode .gh-content h1,
body.zen-reading-mode .gh-content h2,
body.zen-reading-mode .gh-content h3,
body.zen-reading-mode .gh-content h4 {
  color: #ffffff !important;
  line-height: 1.6 !important;
  margin-top: 2em !important;
  margin-bottom: 0.8em !important;
}

body.zen-reading-mode .gh-content strong,
body.zen-reading-mode .gh-content b {
  color: #ffffff !important;
  font-weight: 700 !important;
}

body.zen-reading-mode .gh-content ul,
body.zen-reading-mode .gh-content ol {
  color: #cbd5e1 !important;
  margin-bottom: 1.8em !important;
}

body.zen-reading-mode .gh-content li {
  color: #cbd5e1 !important;
  line-height: 2.1 !important;
  margin-bottom: 0.5em !important;
}

/* Floating Zen Exit Button */
.zen-exit-floating-btn {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 999999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f43f5e;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.6);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulseZenExit 2.5s infinite ease-in-out;
}

.zen-exit-floating-btn:hover {
  transform: translateY(-2px) scale(1.05);
  background: #e11d48;
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.8);
}

@keyframes pulseZenExit {
  0%, 100% { box-shadow: 0 4px 18px rgba(244, 63, 94, 0.4); }
  50% { box-shadow: 0 4px 28px rgba(244, 63, 94, 0.8); }
}

@media (max-width: 640px) {
  .zen-exit-floating-btn {
    top: 12px;
    left: 12px;
    padding: 7px 14px;
    font-size: 0.78rem;
  }
}

/* 4. Specialized Blockquotes (نقل‌قول‌های حرفه‌ای تحریریه) */
.gh-content blockquote {
  position: relative;
  margin: 2em 0;
  padding: 18px 24px 20px 24px;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.05) 0%, rgba(22, 25, 34, 0.65) 100%);
  border-right: 4px solid var(--accent, #f43f5e) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px;
  color: #f1f5f9;
  font-size: 1.12rem;
  font-style: normal;
  line-height: 2.1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  direction: rtl !important;
  text-align: right !important;
  transition: border-color 0.25s ease;
}

.gh-content blockquote::before {
  display: none !important;
}

/* Dedicated topbar inside blockquote - guarantees ZERO text overlap */
.gh-quote-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gh-quote-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan, #00b4d8);
}

.gh-quote-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gh-quote-copy-btn:hover {
  background: var(--accent, #f43f5e);
  border-color: var(--accent, #f43f5e);
  color: #fff;
  transform: translateY(-1px);
}

.gh-content blockquote p {
  margin-bottom: 0.75em;
  direction: rtl !important;
  text-align: right !important;
  color: #f1f5f9;
}

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

.gh-content blockquote cite,
.gh-content blockquote footer {
  display: block;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-cyan, #00b4d8);
  font-style: normal;
  direction: rtl;
  text-align: right;
}

.gh-content blockquote cite::before,
.gh-content blockquote footer::before {
  content: "— ";
  opacity: 0.7;
}

/* 5. Editorial Pullquote (نقل‌قول محوری برجسته) */
.gh-pullquote,
.pullquote {
  margin: 3em 0;
  padding: 28px 32px;
  text-align: center;
  border-top: 2px solid var(--accent, #f43f5e);
  border-bottom: 2px solid var(--accent, #f43f5e);
  background: rgba(244, 63, 94, 0.04);
  border-radius: 8px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 2.1;
  color: #fff;
  letter-spacing: -0.01em;
}

.gh-pullquote cite,
.pullquote cite {
  display: block;
  font-size: 0.92rem;
  color: var(--accent-cyan, #00b4d8);
  margin-top: 12px;
  font-weight: 600;
}

/* 6. Special Editorial Callout Cards (باکس‌های تحریریه) */
.gh-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 2.2em 0;
  padding: 20px 22px;
  border-radius: 12px;
  border-right: 4px solid var(--accent, #f43f5e);
  background: var(--bg-card, #161922);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.gh-callout-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
}

.gh-callout-body {
  flex: 1;
}

.gh-callout-title {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}

.gh-callout-text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-secondary, #cbd5e1);
}

.gh-callout-info {
  border-right-color: #06b6d4;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(22, 25, 34, 0.8) 100%);
}
.gh-callout-info .gh-callout-icon { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.gh-callout-info .gh-callout-title { color: #38bdf8; }

.gh-callout-tip {
  border-right-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(22, 25, 34, 0.8) 100%);
}
.gh-callout-tip .gh-callout-icon { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.gh-callout-tip .gh-callout-title { color: #34d399; }

.gh-callout-warning {
  border-right-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(22, 25, 34, 0.8) 100%);
}
.gh-callout-warning .gh-callout-icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.gh-callout-warning .gh-callout-title { color: #fbbf24; }

.gh-callout-spoiler {
  border-right-color: #f43f5e;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.08) 0%, rgba(22, 25, 34, 0.8) 100%);
}
.gh-callout-spoiler .gh-callout-icon { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }
.gh-callout-spoiler .gh-callout-title { color: #fb7185; }

/* 7. Key Takeaways / Summary Box (جعبه نکات کلیدی مقاله) */
.gh-key-takeaway,
.gh-summary-box {
  margin: 2.2em 0;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.6) 100%);
  border: 1px solid rgba(0, 180, 216, 0.25);
  border-right: 4px solid var(--accent-cyan, #00b4d8);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.gh-key-takeaway-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

/* 8. Inline Spoilers with Blur Effect */
.gh-spoiler-blur,
.gh-spoiler-inline {
  background: rgba(244, 63, 94, 0.18);
  color: transparent !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  filter: blur(5px);
  padding: 1px 8px;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  vertical-align: baseline;
}

.gh-spoiler-blur:hover,
.gh-spoiler-inline:hover {
  filter: blur(3px);
  background: rgba(244, 63, 94, 0.28);
}

.gh-spoiler-blur.revealed,
.gh-spoiler-inline.revealed {
  filter: none !important;
  color: inherit !important;
  text-shadow: none !important;
  background: rgba(244, 63, 94, 0.12);
  user-select: text;
  box-shadow: 0 0 0 1px rgba(244, 63, 94, 0.3);
}

/* 9. Glowing Neon Highlighting */
.gh-content mark,
.gh-highlight {
  background: linear-gradient(120deg, rgba(244, 63, 94, 0.25) 0%, rgba(0, 180, 216, 0.25) 100%);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.2);
  font-weight: 600;
}

/* 10. Modern Gaming Lists (Unordered & Ordered) */
.gh-content ul {
  list-style: none !important;
  padding-right: 0 !important;
  margin-bottom: 1.8em;
}

.gh-content ul > li {
  position: relative;
  padding-right: 26px;
  margin-bottom: 0.75em;
  line-height: 1.9;
}

.gh-content ul > li::before {
  content: "▸";
  position: absolute;
  right: 0;
  top: -1px;
  color: var(--accent, #f43f5e);
  font-size: 1.15rem;
  font-weight: 900;
  transition: transform 0.2s ease, color 0.2s ease;
}

.gh-content ul > li:hover::before {
  transform: translateX(-2px);
  color: var(--accent-cyan, #00b4d8);
}

.gh-content ol {
  list-style: none !important;
  counter-reset: gh-ol-counter;
  padding-right: 0 !important;
  margin-bottom: 1.8em;
}

.gh-content ol > li {
  position: relative;
  counter-increment: gh-ol-counter;
  padding-right: 34px;
  margin-bottom: 0.85em;
  line-height: 1.9;
}

.gh-content ol > li::before {
  content: counter(gh-ol-counter);
  position: absolute;
  right: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  background: var(--accent-gradient, linear-gradient(135deg, #f43f5e 0%, #be123c 100%));
  color: #fff;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  font-family: var(--font-body, inherit);
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.3);
}

/* 11. Headings Accent Markers in gh-content */
.gh-content h2 {
  position: relative;
  padding-right: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.gh-content h2::after {
  content: "";
  position: absolute;
  right: 0;
  top: 4px;
  bottom: 12px;
  width: 4px;
  background: var(--accent-gradient, #f43f5e);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--accent-glow, rgba(244, 63, 94, 0.5));
}

.gh-content h3 {
  position: relative;
  padding-right: 12px;
}

.gh-content h3::after {
  content: "";
  position: absolute;
  right: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--accent-cyan, #00b4d8);
  border-radius: 3px;
}

/* 12. Figures & Images Caption Glassmorphism & Responsive Protection */
.gh-content figure,
.gh-content .wp-block-image,
.gh-content .wp-caption,
figure.wp-caption,
.wp-caption {
  max-width: 100% !important;
  width: auto;
  margin: 2.5em auto;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.gh-content img,
.gh-content figure img,
.gh-content .wp-caption img,
figure.wp-caption img {
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box;
}

.gh-content figcaption,
.gh-content .wp-caption-text,
.wp-caption .wp-caption-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 0.84rem;
  color: var(--text-secondary, #94a3b8);
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.gh-content figcaption::before,
.gh-content .wp-caption-text::before,
.wp-caption .wp-caption-text::before {
  content: "📷";
  font-size: 0.85rem;
}

/* 13. Light Theme Support for Reading Elements */
[data-theme="light"] .reading-controls-bar {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .reading-controls-label {
  color: #1e293b;
}

[data-theme="light"] .reading-controls-label svg {
  color: var(--accent, #e50914);
  stroke: var(--accent, #e50914);
}

[data-theme="light"] .font-size-adjuster {
  background: #edf2f7;
  border-color: rgba(var(--accent-rgb, 229, 9, 20), 0.35);
}

[data-theme="light"] .font-btn {
  color: #475569;
}

[data-theme="light"] .font-btn:not(.is-active):hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--accent, #0f172a);
}

[data-theme="light"] .font-btn.is-active,
[data-theme="light"] .font-btn.is-active:hover {
  background: var(--accent, #e50914) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px var(--accent-glow, rgba(229, 9, 20, 0.4)) !important;
}

[data-theme="light"] .reading-control-btn {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .reading-control-btn:not(.is-active):hover {
  background: #f1f5f9;
  color: var(--accent, #0f172a);
}

[data-theme="light"] .reading-control-btn.is-active,
[data-theme="light"] .reading-control-btn.is-active:hover {
  background: var(--accent, #e50914) !important;
  border-color: var(--accent, #e50914) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px var(--accent-glow, rgba(229, 9, 20, 0.4)) !important;
}

[data-theme="light"] .reading-control-btn.is-active svg {
  stroke: #ffffff !important;
}

[data-theme="light"] .gh-content blockquote {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.04) 0%, #f8fafc 100%);
  border-right-color: var(--accent, #f43f5e) !important;
  border-left-color: #e2e8f0 !important;
  border-top-color: #e2e8f0 !important;
  border-bottom-color: #e2e8f0 !important;
  color: #1e293b;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .gh-quote-topbar {
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .gh-quote-copy-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .gh-quote-copy-btn:hover {
  background: var(--accent, #f43f5e);
  color: #fff;
  border-color: var(--accent, #f43f5e);
}

[data-theme="light"] .gh-content blockquote p {
  color: #1e293b;
}

[data-theme="light"] .gh-pullquote,
[data-theme="light"] .pullquote {
  background: #fff1f2;
  color: #0f172a;
}

[data-theme="light"] .gh-callout {
  background: #ffffff;
  border-top-color: #e2e8f0;
  border-bottom-color: #e2e8f0;
  border-left-color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .gh-callout-title {
  color: #0f172a;
}

[data-theme="light"] .gh-callout-text {
  color: #475569;
}

[data-theme="light"] .gh-key-takeaway,
[data-theme="light"] .gh-summary-box {
  background: #f0fdf4;
  border-color: #86efac;
}

[data-theme="light"] .gh-key-takeaway-header {
  color: #166534;
  border-bottom-color: #bbf7d0;
}

[data-theme="light"] .gh-content mark,
[data-theme="light"] .gh-highlight {
  background: #fef08a;
  color: #854d0e;
}

[data-theme="light"] .gh-content h2 {
  border-bottom-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .gh-content h3 {
  color: #1e293b;
}

[data-theme="light"] .gh-content figcaption {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] body.zen-reading-mode {
  background-color: #f8fafc !important;
  background-image: none !important;
  color: #1e293b !important;
}

[data-theme="light"] body.zen-reading-mode .post-hero-title {
  color: #0f172a !important;
  text-shadow: none !important;
}

[data-theme="light"] body.zen-reading-mode .post-hero-lead {
  color: #475569 !important;
}

[data-theme="light"] body.zen-reading-mode .reading-controls-bar {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  color: #1e293b !important;
}

[data-theme="light"] body.zen-reading-mode .reading-controls-label {
  color: #1e293b !important;
}

[data-theme="light"] body.zen-reading-mode .reading-controls-label svg {
  color: var(--accent, #e50914) !important;
  stroke: var(--accent, #e50914) !important;
}

[data-theme="light"] body.zen-reading-mode .font-size-adjuster {
  background: #edf2f7 !important;
  border-color: rgba(var(--accent-rgb, 229, 9, 20), 0.35) !important;
}

[data-theme="light"] body.zen-reading-mode .font-btn {
  color: #475569 !important;
}

[data-theme="light"] body.zen-reading-mode .font-btn:not(.is-active):hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #0f172a !important;
}

[data-theme="light"] body.zen-reading-mode .font-btn.is-active,
[data-theme="light"] body.zen-reading-mode .font-btn.is-active:hover {
  background: var(--accent, #e50914) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px var(--accent-glow, rgba(229, 9, 20, 0.4)) !important;
}

[data-theme="light"] body.zen-reading-mode .reading-control-btn {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

[data-theme="light"] body.zen-reading-mode .reading-control-btn:not(.is-active):hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

[data-theme="light"] body.zen-reading-mode .reading-control-btn.is-active,
[data-theme="light"] body.zen-reading-mode .reading-control-btn.is-active:hover {
  background: var(--accent, #e50914) !important;
  border-color: var(--accent, #e50914) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px var(--accent-glow, rgba(229, 9, 20, 0.4)) !important;
}

[data-theme="light"] body.zen-reading-mode .reading-control-btn.is-active svg {
  stroke: #ffffff !important;
}

[data-theme="light"] body.zen-reading-mode .gh-content {
  color: #1e293b !important;
  font-size: 1.2rem;
  line-height: 2.2 !important;
}

[data-theme="light"] body.zen-reading-mode .gh-content p {
  color: #334155 !important;
  font-size: 1.18rem !important;
  line-height: 2.2 !important;
  margin-bottom: 1.8em !important;
}

[data-theme="light"] body.zen-reading-mode .gh-content[data-font-size="small"],
[data-theme="light"] body.zen-reading-mode .gh-content[data-font-size="small"] p {
  font-size: 1.05rem !important;
  line-height: 2.0 !important;
}

[data-theme="light"] body.zen-reading-mode .gh-content[data-font-size="large"],
[data-theme="light"] body.zen-reading-mode .gh-content[data-font-size="large"] p {
  font-size: 1.35rem !important;
  line-height: 2.3 !important;
}

[data-theme="light"] body.zen-reading-mode .gh-content h1,
[data-theme="light"] body.zen-reading-mode .gh-content h2,
[data-theme="light"] body.zen-reading-mode .gh-content h3,
[data-theme="light"] body.zen-reading-mode .gh-content h4 {
  color: #0f172a !important;
  line-height: 1.6 !important;
  margin-top: 2em !important;
  margin-bottom: 0.8em !important;
}

[data-theme="light"] body.zen-reading-mode .gh-content strong,
[data-theme="light"] body.zen-reading-mode .gh-content b {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] body.zen-reading-mode .gh-content ul,
[data-theme="light"] body.zen-reading-mode .gh-content ol {
  color: #334155 !important;
  margin-bottom: 1.8em !important;
  padding-right: 24px !important;
}

[data-theme="light"] body.zen-reading-mode .gh-content li {
  color: #334155 !important;
  line-height: 2.1 !important;
  margin-bottom: 0.6em !important;
}

[data-theme="light"] body.zen-reading-mode .gh-content blockquote {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.04) 0%, #ffffff 100%) !important;
  border-right-color: var(--accent, #f43f5e) !important;
  border-left-color: #e2e8f0 !important;
  border-top-color: #e2e8f0 !important;
  border-bottom-color: #e2e8f0 !important;
  color: #1e293b !important;
  margin: 2em 0 !important;
}

[data-theme="light"] body.zen-reading-mode .gh-content blockquote p {
  color: #334155 !important;
  line-height: 2.1 !important;
}

[data-theme="light"] body.zen-reading-mode .gh-quote-topbar {
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] body.zen-reading-mode .gh-quote-copy-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

[data-theme="light"] body.zen-reading-mode .gh-quote-copy-btn:hover {
  background: var(--accent, #f43f5e) !important;
  border-color: var(--accent, #f43f5e) !important;
  color: #ffffff !important;
}









/* ==========================================================================
   GameHub Advanced Gaming Pagination Styles
   ========================================================================== */
.gamehub-pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 48px auto 24px auto;
  width: 100%;
}

.gh-pagination-badge-bar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gh-pagination-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(121, 40, 202, 0.08);
  border: 1px solid rgba(121, 40, 202, 0.25);
  border-radius: 9999px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
}

.gh-status-icon {
  display: inline-flex;
  align-items: center;
  color: var(--accent-cyan);
}

.gh-status-text {
  font-weight: 500;
}

.gh-current-indicator {
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 0.96rem;
}

.gh-status-count {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.gh-pagination-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gh-page-item {
  display: inline-flex;
  align-items: center;
}

.gh-page-item .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  user-select: none;
}

.gh-page-item a.page-numbers:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-purple);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(121, 40, 202, 0.25);
}

/* Active Current Page - Ultra Visible Gaming Badge */
.gh-page-item.is-active .page-numbers.current,
.page-numbers.current {
  background: linear-gradient(135deg, #7928ca 0%, #ff0080 100%) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(121, 40, 202, 0.55), 0 0 10px rgba(255, 0, 128, 0.35) !important;
  position: relative;
  z-index: 2;
}

.gh-page-item.is-prev .page-numbers,
.gh-page-item.is-next .page-numbers {
  padding: 0 16px;
  gap: 8px;
  font-weight: 700;
}

.gh-nav-arrow {
  font-size: 1.1rem;
  line-height: 1;
}

.gh-page-item.is-dots .page-numbers.dots {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  min-width: 24px;
}

/* Light Theme Overrides for Pagination */
[data-theme="light"] .gh-pagination-status {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .gh-current-indicator {
  color: #7928ca;
}

[data-theme="light"] .gh-page-item .page-numbers {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .gh-page-item a.page-numbers:hover {
  background: #f8fafc;
  border-color: #7928ca;
  color: #7928ca;
  box-shadow: 0 4px 12px rgba(121, 40, 202, 0.15);
}

[data-theme="light"] .gh-page-item.is-active .page-numbers.current,
[data-theme="light"] .page-numbers.current {
  background: linear-gradient(135deg, #7928ca 0%, #ff0080 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

/* ==========================================================================
   Dedicated Explore & Advanced Filter Page Styles
   ========================================================================== */
.explore-page-container {
  margin-top: 24px;
  margin-bottom: 70px;
}

/* Hero Banner Card */
.explore-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px 36px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  margin-bottom: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.explore-hero-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.explore-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.explore-hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.explore-hero-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.explore-hero-subtitle {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 650px;
  line-height: 1.7;
}

.explore-hero-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: rgba(121, 40, 202, 0.12);
  border: 1px solid rgba(121, 40, 202, 0.3);
  border-radius: var(--radius-lg);
  min-width: 110px;
  text-align: center;
}

.hero-stat-pill.secondary {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.25);
}

.hero-stat-pill .stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
}

.hero-stat-pill.secondary .stat-num {
  color: var(--accent-cyan);
}

.hero-stat-pill .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Mobile Filter Bar */
.mobile-filter-bar {
  display: none;
  margin-bottom: 20px;
}

.btn-mobile-toggle-filter {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  color: var(--accent-cyan);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 240, 255, 0.15);
}

.filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent-cyan);
  color: #0b0f19;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
}

/* Main Grid: In RTL, Column 1 is on the RIGHT */
.explore-layout-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

/* Right Sidebar Column */
.explore-sidebar-col {
  position: relative;
}

.explore-sidebar-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.sidebar-header-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.sidebar-reset-link {
  font-size: 0.8rem;
  color: #ef4444;
  text-decoration: none;
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
  transition: all 0.2s;
}

.sidebar-reset-link:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Filter Groups */
.filter-group {
  margin-bottom: 24px;
}

.filter-group:last-of-type {
  margin-bottom: 20px;
}

.filter-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

/* Search Box in Sidebar */
.filter-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-input-text {
  width: 100%;
  padding: 10px 14px;
  padding-left: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.filter-input-text:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

.btn-clear-search {
  position: absolute;
  left: 10px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
}

.btn-clear-search:hover {
  color: #ef4444;
}

/* Time Pills */
.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill-opt {
  cursor: pointer;
  user-select: none;
}

.filter-pill-opt input[type="radio"] {
  display: none;
}

.filter-pill-opt span {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.filter-pill-opt:hover span {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.filter-pill-opt.active span {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Category & Sort Select Dropdowns */
.filter-select-wrap {
  position: relative;
}

.filter-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 16px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(121, 40, 202, 0.15);
}

/* Platform 2-column Grid */
.filter-platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.platform-opt {
  cursor: pointer;
  user-select: none;
}

.platform-opt:first-child {
  grid-column: 1 / -1;
}

.platform-opt input[type="radio"] {
  display: none;
}

.platform-opt .plat-name {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.platform-opt .plat-icon {
  font-size: 1rem;
}

.platform-opt:hover .plat-name {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.platform-opt.active .plat-name {
  background: rgba(121, 40, 202, 0.15);
  border-color: var(--accent-purple);
  color: #d8b4fe;
  font-weight: 700;
}

/* Checkbox / Radio List */
.filter-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.filter-check-item input[type="radio"] {
  display: none;
}

.filter-check-item .check-box-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.filter-check-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.filter-check-item.active {
  background: rgba(255, 0, 128, 0.1);
  border-color: rgba(255, 0, 128, 0.4);
}

.filter-check-item.active .check-box-label {
  color: #f472b6;
  font-weight: 700;
}

/* Sidebar Actions */
.filter-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.btn-apply-filters {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #7928ca 0%, #ff0080 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-apply-filters:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(121, 40, 202, 0.4);
}

.btn-reset-filters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-reset-filters:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* Left Content Stream (Results, Chips, Feed Grid) */
.explore-content-col {
  transition: opacity 0.25s ease;
}

.explore-content-col.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

/* Results Topbar & Active Chips */
.explore-results-topbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.results-meta-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-count-badge {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.results-count-badge strong {
  color: var(--accent-cyan);
  font-weight: 800;
}

.results-page-badge {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Active Chips */
.active-chips-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.chips-heading {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

.filter-chip .chip-remove {
  font-size: 0.75rem;
  background: rgba(0, 240, 255, 0.2);
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.filter-chip:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.filter-chip:hover .chip-remove {
  background: #ef4444;
  color: #ffffff;
}

.filter-chip.chip-clear-all {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.filter-chip.chip-clear-all:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Explore Results Grid */
.explore-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.explore-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.explore-card:hover {
  transform: translateY(-4px);
  border-color: rgba(121, 40, 202, 0.5);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.explore-card .post-card-thumb-wrapper {
  position: relative;
  overflow: hidden;
}

.explore-card-badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.explore-score-badge {
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.explore-pinned-badge {
  padding: 3px 8px;
  background: rgba(121, 40, 202, 0.9);
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.explore-trans-badge {
  padding: 3px 8px;
  background: rgba(2, 132, 199, 0.9);
  color: #ffffff;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}

.explore-card-metrics {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Empty State */
.explore-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-xl);
}

.empty-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(121, 40, 202, 0.1);
  color: var(--accent-purple);
  margin-bottom: 20px;
}

.explore-empty-state h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 10px 0;
}

.explore-empty-state p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto 24px auto;
  line-height: 1.7;
}

.btn-clear-empty-filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #7928ca 0%, #0070f3 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.btn-clear-empty-filters:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(121, 40, 202, 0.4);
}

/* Light Theme Overrides for Explore */
[data-theme="light"] .explore-hero-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-color: #e2e8f0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .explore-sidebar-inner {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .filter-input-text,
[data-theme="light"] .filter-select,
[data-theme="light"] .filter-pill-opt span,
[data-theme="light"] .platform-opt .plat-name,
[data-theme="light"] .filter-check-item,
[data-theme="light"] .btn-reset-filters {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

[data-theme="light"] .filter-pill-opt.active span {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
}

[data-theme="light"] .platform-opt.active .plat-name {
  background: #f3e8ff;
  border-color: #9333ea;
  color: #7e22ce;
}

[data-theme="light"] .explore-results-topbar {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .explore-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .explore-empty-state {
  background: #ffffff;
  border-color: #cbd5e1;
}

/* Responsive Styles for Explore & Sidebar */
@media (max-width: 991px) {
  .explore-layout-grid {
    grid-template-columns: 1fr;
  }

  .mobile-filter-bar {
    display: block;
  }

  .explore-sidebar-col {
    position: fixed;
    top: 0;
    right: -360px;
    width: 340px;
    height: 100vh;
    z-index: 9999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .explore-sidebar-col.is-drawer-open {
    right: 0;
  }

  .explore-sidebar-inner {
    top: 0;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  body.explore-drawer-active {
    overflow: hidden;
  }
}

/* ==========================================================================
   25. GAMIFICATION, PROFILE ANALYTICS & AVATAR GALLERY STYLES
   ========================================================================== */

/* Profile Tabs Navigation */
.profile-tabs-nav {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 25px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.profile-tabs-nav::-webkit-scrollbar {
  height: 4px;
}

.profile-tabs-nav::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.profile-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  bottom: -8px;
  border-radius: 8px 8px 0 0;
}

.profile-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.profile-tab-btn.active {
  color: var(--accent-cyan, #00b4d8);
  border-bottom-color: var(--accent-cyan, #00b4d8);
  background: rgba(0, 180, 216, 0.08);
}

.profile-tab-btn .count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  line-height: 1;
}

.profile-tab-btn.active .count-pill {
  background: rgba(0, 180, 216, 0.2);
  color: var(--accent-cyan, #00b4d8);
}

.profile-tab-btn .notif-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  background: var(--accent-rose, #f43f5e);
  color: #fff;
  line-height: 1;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Badge Cards Grid */
.badges-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.badge-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.badge-card:hover {
  transform: translateY(-3px);
}

.badge-card.is-unlocked {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.badge-card.is-locked {
  opacity: 0.82;
  filter: grayscale(0.2);
}

.badge-card.is-locked:hover {
  opacity: 1;
  filter: grayscale(0);
}

.badge-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  transition: transform 0.25s ease;
}

.badge-card:hover .badge-icon-wrap {
  transform: scale(1.08);
}

/* 18 Gaming Avatars Selection Grid */
.gamer-avatars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 14px;
}

.avatar-pick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--border-color);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  user-select: none;
}

.avatar-pick-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent-cyan, #00b4d8);
  transform: translateY(-2px);
}

.avatar-pick-card.is-selected {
  background: rgba(244, 63, 94, 0.08);
  border-color: var(--accent, #f43f5e) !important;
  box-shadow: 0 0 16px var(--accent-glow, rgba(244, 63, 94, 0.45));
  transform: translateY(-3px);
}

.avatar-pick-card.is-selected span {
  color: var(--accent, #f43f5e) !important;
  font-weight: 800;
}

.avatar-pick-card img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.avatar-pick-card:hover img {
  transform: scale(1.06);
}

/* Gamer Badge Pill in Comments & Author Info */
.gamer-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: middle;
  margin-right: 6px;
  transition: transform 0.2s ease;
}

.gamer-badge-pill:hover {
  transform: scale(1.05);
}

/* Mark as Read Button in Reading Controls Bar */
.reading-control-btn.js-mark-post-read.is-read {
  background: rgba(16, 185, 129, 0.16) !important;
  border-color: #10b981 !important;
  color: #10b981 !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3) !important;
}

.reading-control-btn.js-mark-post-read.is-read svg {
  stroke: #10b981 !important;
}

/* Light Theme Overrides for Gamification */
[data-theme="light"] .profile-tab-btn {
  color: #64748b;
}

[data-theme="light"] .profile-tab-btn:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .profile-tab-btn.active {
  color: #0284c7;
  border-bottom-color: #0284c7;
  background: #f0f9ff;
}

[data-theme="light"] .profile-tab-btn .count-pill {
  background: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .profile-tab-btn.active .count-pill {
  background: #bae6fd;
  color: #0369a1;
}

[data-theme="light"] .badge-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .badge-card.is-locked {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .badge-card.is-unlocked {
  background: #ffffff;
}

[data-theme="light"] .avatar-pick-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .avatar-pick-card:hover {
  background: #f1f5f9;
  border-color: #0284c7;
}

[data-theme="light"] .avatar-pick-card.is-selected {
  background: #fff1f2;
  border-color: #e11d48 !important;
  box-shadow: 0 0 14px rgba(225, 29, 72, 0.25);
}

[data-theme="light"] .custom-badge-showcase {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  border-color: #f59e0b !important;
}

[data-theme="light"] .custom-badge-showcase span {
  color: #78350f !important;
}

[data-theme="light"] .profile-stat-box {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .reading-control-btn.js-mark-post-read.is-read {
  background: #ecfdf5 !important;
  border-color: #059669 !important;
  color: #047857 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2) !important;
}

[data-theme="light"] .reading-control-btn.js-mark-post-read.is-read svg {
  stroke: #047857 !important;
}

/* ==========================================================================
   26. LISTING TOOLBAR, GRID/LIST VIEW SWITCHER & INFINITE SCROLL
   ========================================================================== */

/* Universal Listing Toolbar */
.gamehub-listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  margin-bottom: 24px;
}

.listing-toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toolbar-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.listing-view-switch-btns,
.listing-scroll-mode-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}

.toolbar-icon-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  opacity: 0.8;
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  width: 34px;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.toolbar-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.toolbar-btn.active {
  background: rgba(0, 180, 216, 0.12);
  color: var(--accent-cyan, #00b4d8);
  border-color: rgba(0, 180, 216, 0.4);
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.2);
}

.toolbar-btn.active svg {
  stroke: var(--accent-cyan, #00b4d8);
}

.toolbar-select {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.toolbar-select:focus {
  border-color: var(--accent-cyan, #00b4d8);
}

/* --------------------------------------------------------------------------
   Layout Switching: Grid vs List Mode
   -------------------------------------------------------------------------- */

/* Default / Grid layout */
.posts-feed.layout-grid,
.explore-results-grid.layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* List layout: Full-width horizontal rows */
.posts-feed.layout-list,
.explore-results-grid.layout-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}

.posts-feed.layout-list .post-card,
.explore-results-grid.layout-list .post-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 22px !important;
  padding: 14px 18px !important;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.posts-feed.layout-list .post-card:hover,
.explore-results-grid.layout-list .post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 180, 216, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.posts-feed.layout-list .post-card-thumb-wrapper,
.explore-results-grid.layout-list .post-card-thumb-wrapper,
.posts-feed.layout-list .post-card-thumb,
.explore-results-grid.layout-list .post-card-thumb {
  width: 270px !important;
  min-width: 270px !important;
  max-width: 270px !important;
  height: 175px !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  position: relative !important;
  margin: 0 !important;
}

.posts-feed.layout-list .post-card-thumb img,
.explore-results-grid.layout-list .post-card-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease;
}

.posts-feed.layout-list .post-card:hover .post-card-thumb img,
.explore-results-grid.layout-list .post-card:hover .post-card-thumb img {
  transform: scale(1.05);
}

.posts-feed.layout-list .post-card-body,
.explore-results-grid.layout-list .post-card-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 4px 6px 4px 0 !important;
}

.posts-feed.layout-list .post-card-title,
.explore-results-grid.layout-list .post-card-title {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  line-height: 1.55 !important;
  margin: 6px 0 8px !important;
}

.posts-feed.layout-list .post-card-excerpt,
.explore-results-grid.layout-list .post-card-excerpt {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-size: 0.9rem !important;
  line-height: 1.7 !important;
  color: var(--text-secondary);
  margin: 0 0 12px 0 !important;
}

/* Mobile responsive collapse for list view */
@media (max-width: 768px) {
  .posts-feed.layout-list .post-card,
  .explore-results-grid.layout-list .post-card {
    flex-direction: column !important;
  }

  .posts-feed.layout-list .post-card-thumb-wrapper,
  .explore-results-grid.layout-list .post-card-thumb-wrapper,
  .posts-feed.layout-list .post-card-thumb,
  .explore-results-grid.layout-list .post-card-thumb {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 195px !important;
  }
}

/* --------------------------------------------------------------------------
   Infinite Scroll Container & Indicator Elements
   -------------------------------------------------------------------------- */
.gamehub-infinite-container {
  margin: 35px 0 20px;
  text-align: center;
}

.infinite-loader {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 26px;
  background: rgba(0, 180, 216, 0.08);
  border: 1px solid rgba(0, 180, 216, 0.3);
  border-radius: 9999px;
  color: var(--accent-cyan, #00b4d8);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.15);
}

.infinite-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(0, 180, 216, 0.2);
  border-top-color: var(--accent-cyan, #00b4d8);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-load-more-infinite {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-load-more-infinite:hover {
  border-color: var(--accent-cyan, #00b4d8);
  color: var(--accent-cyan, #00b4d8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.25);
}

.infinite-ended {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Smooth fade-in animation for appended infinite cards */
@keyframes fadeInUpCard {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.infinite-appended-card {
  animation: fadeInUpCard 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Light Theme Overrides for Listing Toolbar */
[data-theme="light"] .gamehub-listing-toolbar {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .listing-view-switch-btns,
[data-theme="light"] .listing-scroll-mode-switch {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] .toolbar-btn {
  color: #64748b;
}

[data-theme="light"] .toolbar-btn:hover {
  color: #0f172a;
  background: #e2e8f0;
}

[data-theme="light"] .toolbar-btn.active {
  background: #ffffff;
  color: #0284c7;
  border-color: #bae6fd;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .toolbar-btn.active svg {
  stroke: #0284c7;
}

[data-theme="light"] .toolbar-select {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}

[data-theme="light"] .posts-feed.layout-list .post-card,
[data-theme="light"] .explore-results-grid.layout-list .post-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .posts-feed.layout-list .post-card:hover,
[data-theme="light"] .explore-results-grid.layout-list .post-card:hover {
  border-color: #0284c7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .infinite-loader {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

[data-theme="light"] .btn-load-more-infinite {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}

[data-theme="light"] .btn-load-more-infinite:hover {
  border-color: #0284c7;
  color: #0284c7;
}

[data-theme="light"] .infinite-ended {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

/* ==========================================================================
   GameHub Advanced Gamification, Binge-Reading & Emil Kowalski Polish
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Sitewide Header Gamer HUD
   -------------------------------------------------------------------------- */
.gamer-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 4px 10px 4px 6px;
  border-radius: 9999px;
  cursor: pointer;
  user-select: none;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease, box-shadow 200ms ease;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gamer-hud-pill:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.gamer-hud-pill:active {
  transform: scale(0.97);
}

.hud-lvl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.hud-lvl-badge.guest-badge {
  background: linear-gradient(135deg, var(--accent-cyan, #06b6d4), var(--accent));
  box-shadow: 0 2px 8px var(--accent-glow);
}

.gamer-hud-progress {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 58px;
}

.gamer-hud-bar {
  height: 5px;
  background: var(--border-color);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.gamer-hud-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 9999px;
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gamer-hud-xp-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  line-height: 1;
}

.gamer-hud-streak {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #f59e0b;
}

.gamer-hud-streak.is-active-today {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.hud-streak-fire {
  font-size: 0.85rem;
  animation: flameGlow 2s ease-in-out infinite alternate;
}

@keyframes flameGlow {
  0% { transform: scale(0.95); opacity: 0.85; }
  100% { transform: scale(1.12); opacity: 1; }
}

.hud-quests-trigger-btn {
  position: relative;
}

.quests-trigger-icon {
  font-size: 1.1rem;
}

.quests-badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

@media (min-width: 1024px) {
  .hud-quests-trigger-btn {
    display: none !important;
  }
}

@media (min-width: 1024px) and (max-width: 1280px) {
  .gamer-hud-pill {
    gap: 6px;
    padding: 3px 8px 3px 5px;
  }
  .gamer-hud-xp-text {
    display: none;
  }
  .gamer-hud-progress {
    min-width: 44px;
  }
}

@media (max-width: 1023px) {
  .gamer-hud-pill {
    display: none !important;
  }
  .hud-quests-trigger-btn {
    display: inline-flex !important;
  }
}

/* --------------------------------------------------------------------------
   2. Quests & Gamer Center Slide Drawer (Matched to Bookmarks Drawer)
   -------------------------------------------------------------------------- */
.quests-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100040 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms cubic-bezier(0.16, 1, 0.3, 1), visibility 240ms;
}

.quests-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.quests-drawer {
  position: fixed;
  top: 0;
  left: -380px;
  width: 360px;
  max-width: 88vw;
  height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 100050 !important;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Offset when WordPress Admin Bar is present so header is fully visible */
body.admin-bar .quests-drawer {
  top: 32px !important;
  height: calc(100vh - 32px) !important;
}

@media (max-width: 782px) {
  body.admin-bar .quests-drawer {
    top: 46px !important;
    height: calc(100vh - 46px) !important;
  }
}

.quests-drawer.active {
  left: 0;
  transform: none;
}

.quests-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card-hover);
  flex-shrink: 0;
}

.quests-drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quests-drawer-icon {
  font-size: 1.35rem;
}

.quests-drawer-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
}

.quests-drawer-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.quests-drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quests-audio-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.quests-audio-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}

.quests-audio-toggle:active {
  transform: scale(0.95);
}

.quests-drawer-close {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms ease, color 150ms ease, border-color 150ms ease;
}

.quests-drawer-close:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.05);
}

.quests-drawer-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quests-gamer-summary-card {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-glow, rgba(var(--accent-rgb), 0.25));
  border-radius: var(--radius-lg, 14px);
  padding: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.summary-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.summary-lvl-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  padding: 2px 7px;
  border-radius: 9999px;
  margin-bottom: 3px;
}

.summary-lvl-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.summary-streak-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  padding: 4px 10px;
  border-radius: 9999px;
  color: #f59e0b;
  font-size: 0.78rem;
  font-weight: 700;
}

.summary-xp-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.summary-xp-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.summary-xp-track {
  height: 7px;
  background: var(--border-color);
  border-radius: 9999px;
  overflow: hidden;
}

.summary-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 9999px;
  transition: width 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.quests-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

/* SCOPED PROPERLY TO AVOID COLLISION WITH GLOBAL .section-title */
.quests-section-header .section-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.section-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  padding: 2px 7px;
  border-radius: 9999px;
}

.quests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quest-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-md, 10px);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, box-shadow 180ms ease;
}

.quest-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.quest-card.is-completed {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}

.quest-card.is-claimed {
  opacity: 0.75;
}

.quest-card-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.quest-card-content {
  flex: 1;
  min-width: 0;
}

.quest-card-title {
  margin: 0 0 2px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.quest-card-desc {
  margin: 0 0 6px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.quest-progress-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quest-mini-track {
  flex: 1;
  height: 4px;
  background: var(--border-color);
  border-radius: 9999px;
  overflow: hidden;
}

.quest-mini-fill {
  height: 100%;
  background: #10b981;
  border-radius: 9999px;
  transition: width 300ms ease;
}

.quest-progress-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quest-card-action {
  flex-shrink: 0;
}

.quest-reward-tag {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  white-space: nowrap;
}

.quest-btn-claim {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
  transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1), filter 150ms ease;
  white-space: nowrap;
}

.quest-btn-claim:hover {
  filter: brightness(1.1);
  transform: scale(1.03);
}

.quest-btn-claim:active {
  transform: scale(0.97);
}

.quest-btn-claimed {
  font-size: 0.72rem;
  color: #10b981;
  font-weight: 700;
  padding: 3px 6px;
}

.quests-view-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md, 10px);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.quests-view-profile-btn:hover {
  background: rgba(var(--accent-rgb), 0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.quests-view-profile-btn:active {
  transform: scale(0.98);
}

/* Guest summary card in drawer */
.guest-summary-card {
  text-align: center;
  padding: 24px 18px;
}

.guest-card-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.guest-card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.guest-card-desc {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.guest-stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.guest-stat-box {
  flex: 1;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
}

.guest-stat-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

.guest-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.guest-register-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #ffffff;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), filter 180ms ease;
}

.guest-register-cta-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  color: #fff;
}

.guest-register-cta-btn:active {
  transform: scale(0.97);
}

/* --------------------------------------------------------------------------
   3. Article Completion & Reward Card (انتهای مقاله)
   -------------------------------------------------------------------------- */
.article-completion-card {
  margin: 36px 0 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow, rgba(var(--accent-rgb), 0.3));
  border-radius: var(--radius-xl, 18px);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease;
}

.article-completion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary), var(--accent-cyan, #06b6d4));
}

.completion-card-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.completion-badge-col {
  flex-shrink: 0;
}

.completion-trophy-wrap {
  width: 64px;
  height: 64px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.trophy-emoji {
  font-size: 2rem;
  animation: trophyBob 2.5s ease-in-out infinite alternate;
}

@keyframes trophyBob {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-4px) scale(1.08); }
}

.completion-info-col {
  flex: 1;
  min-width: 260px;
}

.completion-status-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.completion-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.completion-desc {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.completion-stats-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.completion-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.chip-xp {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}

.chip-streak {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.completion-action-col {
  flex-shrink: 0;
}

.btn-claim-guest,
.btn-open-quests {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #ffffff;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), filter 180ms ease;
  white-space: nowrap;
}

.btn-claim-guest:hover,
.btn-open-quests:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-claim-guest:active,
.btn-open-quests:active {
  transform: scale(0.97);
}

/* --------------------------------------------------------------------------
   4. Smart Binge-Reading "Up Next" Card (جریان مطالعه مداوم)
   -------------------------------------------------------------------------- */
.binge-up-next-card {
  margin: 24px 0 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl, 18px);
  padding: 22px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), border-color 240ms ease;
}

.binge-up-next-card:hover {
  border-color: var(--accent);
}

.binge-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.binge-label-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.binge-icon {
  font-size: 1.1rem;
  color: var(--accent);
}

.binge-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
}

.binge-bonus-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #eab308;
  background: rgba(234, 179, 8, 0.14);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 2px 8px;
  border-radius: 9999px;
}

.binge-countdown-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.countdown-bar-track {
  width: 90px;
  height: 6px;
  background: var(--border-color);
  border-radius: 9999px;
  overflow: hidden;
}

.countdown-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 9999px;
  transition: width 1s linear;
}

.countdown-text {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.countdown-toggle-btn {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.72rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms ease, background 150ms ease;
}

.countdown-toggle-btn:hover {
  background: var(--border-color);
  transform: scale(1.06);
}

.countdown-toggle-btn:active {
  transform: scale(0.94);
}

.binge-card-body {
  display: flex;
  gap: 20px;
  align-items: center;
}

.binge-card-media {
  position: relative;
  width: 170px;
  height: 110px;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  flex-shrink: 0;
}

.binge-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.binge-up-next-card:hover .binge-card-media img {
  transform: scale(1.05);
}

.binge-cat-tag {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.binge-card-details {
  flex: 1;
  min-width: 0;
}

.binge-card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
}

.binge-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 180ms ease;
}

.binge-card-title a:hover {
  color: var(--accent);
}

.binge-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.binge-xp-highlight {
  color: #10b981;
  font-weight: 700;
}

.btn-read-next-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), filter 180ms ease;
}

.btn-read-next-now:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-read-next-now:active {
  transform: scale(0.97);
}

@media (max-width: 640px) {
  .binge-card-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .binge-card-media {
    width: 100%;
    height: 160px;
  }
}

/* --------------------------------------------------------------------------
   5. Sidebar Gamification Widgets (Quests & Leaderboard)
   -------------------------------------------------------------------------- */
.gamer-sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg, 14px);
}

.gamer-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.gamer-widget-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gamer-widget-icon {
  font-size: 1.15rem;
  color: var(--accent);
}

.gamer-widget-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
}

.gamer-widget-action-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px;
  transition: opacity 150ms ease;
}

.gamer-widget-action-btn:hover {
  opacity: 0.8;
}

.gamer-streak-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: #f59e0b;
}

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

.sidebar-quest-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 10px;
}

.sidebar-quest-check {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-muted);
  width: 18px;
  text-align: center;
}

.sidebar-quest-row.is-done .sidebar-quest-check {
  color: #10b981;
}

.sidebar-quest-info {
  flex: 1;
  min-width: 0;
}

.sidebar-quest-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-quest-bar {
  height: 4px;
  background: var(--border-color);
  border-radius: 9999px;
  overflow: hidden;
}

.sidebar-quest-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 9999px;
}

.sidebar-quest-reward {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}

/* Sidebar Guest CTA */
.sidebar-guest-cta {
  text-align: center;
  padding: 6px 0;
}

.sidebar-guest-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.sidebar-guest-stats {
  font-size: 0.76rem;
  color: #f59e0b;
  margin-bottom: 12px;
}

.sidebar-guest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 12px var(--accent-glow);
  transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-guest-btn:hover {
  color: #fff;
}

.sidebar-guest-btn:active {
  transform: scale(0.97);
}

/* Weekly Leaderboard Widget */
.gamer-leaderboard-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg, 14px);
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms ease, border-color 180ms ease;
}

.leaderboard-item:hover {
  transform: translateX(-3px);
  background: rgba(var(--accent-rgb), 0.08);
  border-color: var(--accent);
}

.leaderboard-rank-num {
  font-size: 0.88rem;
  font-weight: 900;
  width: 20px;
  text-align: center;
  color: var(--text-muted);
}

.leaderboard-item.rank-gold .leaderboard-rank-num {
  color: #f59e0b;
}
.leaderboard-item.rank-silver .leaderboard-rank-num {
  color: #94a3b8;
}
.leaderboard-item.rank-bronze .leaderboard-rank-num {
  color: #cd7f32;
}

.leaderboard-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.leaderboard-user-info {
  flex: 1;
  min-width: 0;
}

.leaderboard-user-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-meta {
  display: flex;
  gap: 6px;
  font-size: 0.68rem;
  margin-top: 2px;
}

.leaderboard-lvl-tag {
  color: var(--accent);
}

.leaderboard-streak-tag {
  color: #f59e0b;
}

.leaderboard-xp-col {
  text-align: left;
  flex-shrink: 0;
}

.leaderboard-xp-val {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
}

.leaderboard-xp-unit {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-right: 2px;
}

/* --------------------------------------------------------------------------
   6. Sonner-Style Stacking Toast Notifications
   -------------------------------------------------------------------------- */
.gamehub-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - 48px);
}

.gamehub-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1), opacity 250ms ease;
}

.gamehub-toast.toast-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.gamehub-toast.toast-hiding {
  transform: translateY(10px) scale(0.95);
  opacity: 0;
}

.gamehub-toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.gamehub-toast-body {
  flex: 1;
  line-height: 1.4;
}

.gamehub-toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  transition: color 150ms ease;
}

.gamehub-toast-close:hover {
  color: var(--text-primary);
}

.gamehub-toast.toast-xp {
  border-color: var(--accent);
}

.gamehub-toast.toast-streak {
  border-color: rgba(245, 158, 11, 0.5);
}

.gamehub-toast.toast-levelup {
  border-color: var(--accent);
  box-shadow: 0 0 25px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   7. Light Theme Specific Overrides for Gamification
   -------------------------------------------------------------------------- */
[data-theme="light"] .gamer-hud-pill {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .quests-drawer {
  background: #ffffff !important;
  border-right-color: #e2e8f0 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .quests-drawer-header {
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .quests-audio-toggle,
[data-theme="light"] .quests-drawer-close {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

[data-theme="light"] .quests-gamer-summary-card {
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .quest-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .quest-card:hover {
  background: #f8fafc;
  border-color: var(--accent);
}

[data-theme="light"] .article-completion-card {
  background: #ffffff;
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .binge-up-next-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .gamer-sidebar-widget,
[data-theme="light"] .gamer-leaderboard-widget {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .leaderboard-item {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .gamehub-toast {
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   8. Reduced Motion Support
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .gamer-hud-pill,
  .quests-drawer,
  .article-completion-card,
  .binge-up-next-card,
  .gamehub-toast,
  .trophy-emoji,
  .hud-streak-fire {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}


