/* Color Game Plus - Official Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800;900&display=swap');

:root {
  --bg-main: #080d1a;
  --bg-card: #0f172a;
  --bg-card-hover: #1e293b;
  --border-color: #334155;
  --border-glow: rgba(245, 158, 11, 0.3);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --gold-primary: #f59e0b;
  --gold-glow: #fbbf24;
  --emerald-accent: #10b981;
  --emerald-glow: #34d399;
  --sky-accent: #38bdf8;
  --pink-perya: #ec4899;
  --red-accent: #ef4444;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background-image: radial-gradient(circle at 50% -20%, rgba(56, 189, 248, 0.08), transparent 45%),
                    radial-gradient(circle at 100% 50%, rgba(245, 158, 11, 0.04), transparent 40%);
  background-attachment: fixed;
  padding-bottom: 70px; /* Space for mobile bar */
}

a {
  color: var(--sky-accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--gold-glow);
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav - Premium Glassmorphism */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 13, 26, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  flex-shrink: 0;
}

.logo-wrapper img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #94a3b8;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-header-apk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-full);
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-header-apk:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.btn-header-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #0b0f19 !important;
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 60%, #d97706 100%);
  border: none;
  border-radius: var(--radius-full);
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-header-play:hover {
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 60%, #f59e0b 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
  transform: translateY(-1px);
  color: #0b0f19 !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
  color: #000;
}

.btn-emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #34d399, #10b981);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--sky-accent);
  color: var(--sky-accent);
}

/* Breadcrumbs */
.breadcrumb-bar {
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  font-size: 14px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--gold-primary);
}

.breadcrumbs .separator {
  color: var(--text-muted);
}

.breadcrumbs .current {
  color: var(--gold-glow);
  font-weight: 600;
}

/* Hero Banner */
.page-hero {
  position: relative;
  padding: 48px 0 36px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(8, 13, 26, 0.95) 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--gold-glow), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.badge-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-accent);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}

.hero-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-image:hover img {
  transform: scale(1.03);
}

/* Article & Content Layout */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 40px 0 60px;
}

.article-body {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

/* E-E-A-T Callout Box */
.expert-insight-box {
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin-bottom: 24px;
  font-size: 15px;
  color: #f1f5f9;
}

.expert-insight-box strong {
  color: var(--gold-primary);
  font-family: var(--font-heading);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* TL;DR Box */
.tldr-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.tldr-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--emerald-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Answer Capsule */
.answer-capsule {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 16px 0 24px;
  font-size: 15px;
  color: #e2e8f0;
  font-weight: 500;
}

/* Typography in Articles */
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--gold-glow);
  margin: 24px 0 12px;
}

.article-body p {
  margin-bottom: 16px;
  color: #cbd5e1;
  font-size: 16px;
}

.article-body ul, .article-body ol {
  margin: 16px 0 24px 24px;
  color: #cbd5e1;
}

.article-body li {
  margin-bottom: 10px;
}

/* Data Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.data-table th {
  background: #1e293b;
  color: var(--gold-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  color: #e2e8f0;
}

.data-table tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.4);
}

.data-table tr:hover {
  background: rgba(245, 158, 11, 0.05);
}

/* Callouts & Warnings */
.callout {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  font-size: 15px;
}

.callout-warning {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--red-accent);
  color: #fecaca;
}

.callout-tip {
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid var(--emerald-accent);
  color: #a7f3d0;
}

/* Interlinking Hub Grid / Spoke Cards */
.spoke-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.spoke-card {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spoke-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.spoke-card h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.spoke-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.spoke-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* FAQs Accordion */
.faq-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.5);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-question:hover {
  color: var(--gold-primary);
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 15px;
  color: #94a3b8;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question {
  color: var(--gold-primary);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

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

.sidebar-widget h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  margin-bottom: 10px;
}

.sidebar-links a {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.sidebar-links a:hover {
  color: var(--gold-primary);
  transform: translateX(4px);
}

.promo-banner-widget {
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  border: 1px solid rgba(245, 158, 11, 0.4);
  text-align: center;
  padding: 28px 20px;
}

.promo-banner-widget h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  color: var(--gold-glow);
  margin-bottom: 8px;
}

.promo-banner-widget p {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 20px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--gold-primary);
}

.trust-badges-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-disclaimer {
  padding-top: 24px;
  border-top: 1px solid rgba(51, 65, 85, 0.4);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.8;
}

/* Mobile Sticky Bottom Floating Action Bar */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(8, 13, 26, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  display: none;
  align-items: center;
  justify-content: space-around;
  padding: 0 12px;
  z-index: 1000;
}

.mobile-action-btn {
  flex: 1;
  margin: 0 4px;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  border-radius: var(--radius-md);
  text-transform: uppercase;
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .main-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-menu {
    display: none;
  }
  .mobile-action-bar {
    display: flex;
  }
}

@media (max-width: 600px) {
  .article-body {
    padding: 24px 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 26px;
  }
}
