/* ColorGamesOfficial — Main Domain Stylesheet */
/* Mobile-first. Sections alternate light/dark. No referral links here. */

/* ============================================================
   BASE
   ============================================================ */
:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface2: #263348;
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --white: #ffffff;
  --light-bg: #f8fafc;
  --light-text: #1e293b;
  --light-muted: #64748b;
  --border-light: #e2e8f0;
  --radius: 14px;
  --radius-sm: 8px;
  --transition: all 0.25s ease;
}

html { scroll-behavior: smooth; }

/* ============================================================
   SECTION WRAPPERS
   ============================================================ */
.section-light {
  background: var(--light-bg);
  padding: 3.5rem 1.25rem;
}
.section-dark {
  background: var(--bg);
  padding: 3.5rem 1.25rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}
.container.narrow {
  max-width: 860px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--white);
  line-height: 1.25;
}
.section-title.dark {
  color: var(--light-text);
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}
.section-sub.dark {
  color: var(--light-muted);
}

@media (max-width: 480px) {
  .section-light, .section-dark { padding: 2.5rem 1rem; }
  .section-title { font-size: 1.5rem; }
  .section-sub { font-size: 0.93rem; }
}

/* ============================================================
   PLATFORM CARDS GRID
   ============================================================ */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .platform-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
@media (min-width: 1200px) {
  .platform-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
}

.platform-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.platform-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  border-color: var(--card-color, #94a3b8);
}

/* Colored top accent bar per platform */
.card-accent {
  height: 4px;
  background: var(--card-color, #94a3b8);
  width: 100%;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem 0.5rem;
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.card-info {
  flex: 1;
  min-width: 0;
}
.card-info h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--light-text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-rating {
  font-size: 0.72rem;
  color: var(--light-muted);
  margin-top: 2px;
}
.card-rating span {
  font-weight: 700;
  color: #d97706;
}

.card-bonus {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
  flex-shrink: 0;
}
.card-bonus small {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.9;
}
.card-bonus.coming {
  background: linear-gradient(135deg, #64748b, #475569);
  font-size: 0.8rem;
}
.card-bonus.small-bonus {
  font-size: 0.8rem;
}

.card-games {
  font-size: 0.75rem;
  color: var(--light-muted);
  padding: 0.5rem 1rem;
  line-height: 1.6;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--border-light);
  background: #f8fafc;
}
.badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.badge-top { background: #fef3c7; color: #92400e; }
.badge-variety { background: #dbeafe; color: #1d4ed8; }
.badge-games { background: #f3e8ff; color: #6b21a8; }
.badge-soon { background: #f1f5f9; color: #64748b; }

.card-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--card-color, #64748b);
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 620px;
}
.compare-table thead th {
  background: var(--surface);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.compare-table tbody tr {
  background: var(--surface);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}
.compare-table tbody tr:hover { background: var(--surface2); }
.compare-table tbody tr:last-child { border-bottom: none; }
.compare-table td {
  padding: 0.85rem 1rem;
  color: var(--text);
  vertical-align: middle;
}
.compare-table td strong { color: var(--white); }
.highlight-row { background: rgba(245,158,11,0.07) !important; }
.highlight-row td strong { color: var(--gold); }

.bonus-chip {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.rating-cell { font-weight: 700; color: var(--gold); }
.tbd { color: var(--muted); font-size: 0.82rem; }

.table-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* ============================================================
   HOW IT WORKS — STEPS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

.step-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1.5px solid var(--border-light);
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.step-num {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0f172a;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.step-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--light-text);
  margin-bottom: 0.6rem;
}
.step-box p {
  font-size: 0.9rem;
  color: var(--light-muted);
  line-height: 1.75;
}

.info-box {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.info-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.6rem;
}
.info-box p {
  font-size: 0.9rem;
  color: #78350f;
  line-height: 1.75;
}

/* ============================================================
   HOW TO CHOOSE GRID
   ============================================================ */
.choose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .choose-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .choose-grid { grid-template-columns: repeat(3, 1fr); }
}

.choose-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.07);
  transition: var(--transition);
}
.choose-item:hover {
  border-color: rgba(245,158,11,0.3);
  transform: translateY(-3px);
}
.choose-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.choose-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.choose-item p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}
.faq-item:first-child { border-top: 1px solid var(--border-light); }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--light-text);
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
}
.faq-icon {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold-dark);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding-bottom: 1rem;
}
.faq-a.open { display: block; }
.faq-a p {
  font-size: 0.9rem;
  color: var(--light-muted);
  line-height: 1.8;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #060f1e;
  padding: 3rem 1.25rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 0.5rem;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.9rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.disclaimer {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.75;
}
.disclaimer strong { color: var(--muted); }
.copyright {
  font-size: 0.78rem;
  color: #475569;
}

/* ============================================================
   STICKY CTA (mobile bottom bar)
   ============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  transition: transform 0.4s ease;
}
.sticky-cta a {
  color: #0f172a;
  font-weight: 800;
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.4;
}
/* Hide on desktop */
@media (min-width: 768px) {
  .sticky-cta { display: none; }
}
/* JS hides it via inline style.transform — handled in HTML script */
