/* Light Theme CSS Design System for JJ44 Sites */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Colors */
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFAF9;
  --bg-subtle: #F1F5F9;
  --bg-accent-subtle: #ECFDF5;
  --bg-gold-subtle: #FFFBEB;
  
  --border-light: #E2E8F0;
  --border-emerald: #A7F3D0;
  --border-gold: #FDE68A;
  
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #64748B;
  
  --emerald-500: #10B981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  
  --amber-500: #F59E0B;
  --amber-600: #D97706;
  
  --primary-gradient: linear-gradient(135deg, #059669 0%, #047857 100%);
  --gold-gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Domain Switcher Toolbar (Top Bar) */
.domain-switcher-bar {
  background: #0F172A;
  color: #FFFFFF;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.domain-switcher-bar .label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.domain-switcher-bar .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
}

.domain-nav-links {
  display: flex;
  gap: 6px;
}

.domain-btn {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.domain-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.domain-btn.active {
  background: var(--emerald-600);
  color: #FFFFFF;
  border-color: #34D399;
}

/* Header Navbar */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 37px; /* Below top domain bar */
  z-index: 90;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--emerald-600);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--emerald-600);
  background: var(--bg-accent-subtle);
}

.btn-header-dl {
  background: var(--primary-gradient);
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-header-dl:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}

/* Layout Grid */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 80px 20px;
  width: 100%;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
}

@media (max-width: 960px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero Section */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--primary-gradient);
}

.hero-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 640px) {
  .hero-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.hero-app-logo {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid var(--emerald-500);
}

.hero-info h1 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero-stats {
    justify-content: center;
  }
}

.stat-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 90px;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--emerald-600);
}

.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero-buttons {
    justify-content: center;
    width: 100%;
  }
}

.btn-primary {
  background: var(--primary-gradient);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--border-light);
  color: var(--emerald-700);
}

/* Info Table Styling */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 24px 0;
}

.table-card-header {
  background: var(--bg-accent-subtle);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-emerald);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--emerald-700);
}

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

.info-table th, .info-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  font-size: 0.95rem;
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table th {
  background: var(--bg-subtle);
  font-weight: 600;
  color: var(--text-muted);
  width: 35%;
}

.info-table td {
  font-weight: 500;
  color: var(--text-main);
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-emerald {
  background: var(--bg-accent-subtle);
  color: var(--emerald-700);
  border: 1px solid var(--border-emerald);
}

.badge-amber {
  background: var(--bg-gold-subtle);
  color: var(--amber-600);
  border: 1px solid var(--border-gold);
}

/* Article Styling */
.article-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.article-section h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-section h2::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 24px;
  background: var(--emerald-600);
  border-radius: 4px;
}

.article-section h3 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--emerald-700);
  margin: 20px 0 10px 0;
}

.article-section p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.article-section p strong {
  color: var(--text-main);
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.feature-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 16px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.feature-box:hover {
  border-color: var(--emerald-500);
  background: var(--bg-accent-subtle);
}

.feature-box h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--emerald-700);
  margin-bottom: 6px;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-500);
}

.game-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-accent-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.game-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Step list */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-subtle);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--emerald-600);
}

.step-num {
  width: 28px;
  height: 28px;
  background: var(--emerald-600);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Pros & Cons Box */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

@media (max-width: 600px) {
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
}

.pros-box {
  background: var(--bg-accent-subtle);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-md);
  padding: 20px;
}

.pros-box h4 {
  color: var(--emerald-700);
  font-family: var(--font-heading);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.cons-box {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: var(--radius-md);
  padding: 20px;
}

.cons-box h4 {
  color: #991B1B;
  font-family: var(--font-heading);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.pros-box ul, .cons-box ul {
  list-style: none;
}

.pros-box li, .cons-box li {
  padding: 6px 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pros-box li::before {
  content: '✓';
  color: var(--emerald-600);
  font-weight: bold;
}

.cons-box li::before {
  content: '✕';
  color: #DC2626;
  font-weight: bold;
}

/* FAQ Accordion */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item.active {
  border-color: var(--emerald-500);
}

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

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--emerald-600);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 20px 18px 20px;
}

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

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-subtle);
}

/* TOC Links */
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.toc-link:hover, .toc-link.active {
  color: var(--emerald-600);
  background: var(--bg-accent-subtle);
  font-weight: 600;
}

/* Earning Calculator Widget */
.calc-input-group {
  margin-bottom: 12px;
}

.calc-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.calc-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.calc-result-box {
  background: var(--bg-accent-subtle);
  border: 1px solid var(--border-emerald);
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-top: 12px;
}

.calc-result-val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--emerald-600);
}

/* Mobile Sticky Download Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding: 10px 16px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  z-index: 99;
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

.mobile-app-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-app-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.mobile-app-text h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.mobile-app-text p {
  font-size: 0.75rem;
  color: var(--emerald-600);
  font-weight: 600;
}

/* Modal styling */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 90%;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-backdrop.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-light);
  cursor: pointer;
}

.modal-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  margin-bottom: 14px;
}

.countdown-box {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--emerald-600);
  margin: 14px 0;
}

/* Footer */
.site-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 40px 20px;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
}

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

.footer-link {
  color: #CBD5E1;
  text-decoration: none;
}

.footer-link:hover {
  color: #10B981;
}

.footer-disclaimer {
  max-width: 700px;
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.5;
}
