/* Faridabad Game - Main Styles | Mobile First */
:root {
  --primary-from: #667eea;
  --primary-to: #764ba2;
  --accent: #ffd700;
  --success: #6bcf7f;
  --warn: #ffd93d;
  --error: #ff6b6b;
  --max-w: 1140px;
  --radius: 14px;
  --shadow: 0 4px 14px rgba(102, 126, 234, 0.15);
  --shadow-lg: 0 8px 24px rgba(118, 75, 162, 0.12);
}

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=Montserrat:wght@400;500;600&display=swap');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: #2d3748;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Chakra Petch', sans-serif; font-weight: 600; }
.container { max-width: var(--max-w); margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 768px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
  box-shadow: var(--shadow);
}
.site-header .navbar-brand { display: flex; align-items: center; gap: 0.5rem; color: #fff !important; font-family: 'Chakra Petch', sans-serif; font-weight: 600; }
.site-header .navbar-brand img { height: 36px; width: auto; }
.site-header .nav-link {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
  border-radius: var(--radius);
}
.site-header .nav-link:hover { color: #fff !important; background: rgba(255,255,255,0.15); }
.navbar-toggler { border-color: rgba(255,255,255,0.5); }
.navbar-toggler-icon { filter: invert(1); }

/* Hero */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-from) 0%, var(--primary-to) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath fill='%23f7fafc' d='M0 120L60 105 120 90 180 75 240 60 300 75 360 90 420 75 480 60 540 75 600 90 660 75 720 60 780 75 840 90 900 75 960 60 1020 75 1080 90 1140 75 1200 60 1260 75 1320 90 1380 75 1440 60V120H0Z'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100% 100%;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); color: #fff; margin-bottom: 0.75rem; }
.hero .lead { color: rgba(255,255,255,0.95); font-size: 1rem; margin-bottom: 1.5rem; }
.hero-bg-wrap {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  max-height: 50vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}
.hero-bg-wrap::before { content: 'Faridabad Game'; }
.hero-bg-wrap .hero-bg { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.hero .btn-cta {
  background: var(--accent);
  color: #1a202c;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero .btn-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,215,0,0.4); color: #1a202c; }
.hero .btn-secondary {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
}
.hero .btn-secondary:hover { background: rgba(255,255,255,0.3); border-color: #fff; color: #fff; }
@media (max-width: 767px) {
  .hero .btn-cta, .hero .btn-secondary { width: 100%; display: block; text-align: center; margin-bottom: 0.5rem; }
}
.hero--short { min-height: auto; }
.hero--short::before { display: none; }

/* Sections */
section { padding: 3rem 0; }
.section-title { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 1rem; color: #1a202c; }
.section-sub { color: #718096; margin-bottom: 2rem; }

/* USP Cards */
.usp-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.25s, box-shadow 0.25s;
}
.usp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.usp-card .icon { width: 48px; height: 48px; margin-bottom: 1rem; }
.usp-card .icon svg { width: 100%; height: 100%; }
.usp-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; color: #1a202c; }
.usp-card p { font-size: 0.9rem; color: #4a5568; margin: 0; }

/* How to Play */
.how-img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
}
.how-steps { list-style: none; padding: 0; margin: 0; }
.how-steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: #f7fafc;
  border-radius: var(--radius);
}
.how-steps .step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 600;
  font-size: 1rem;
}
.how-steps h4 { margin: 0 0 0.25rem 0; font-size: 1.05rem; }
.how-steps p { margin: 0; font-size: 0.9rem; color: #4a5568; }

/* Strategies */
.strat-list { counter-reset: strat; }
.strat-list li {
  list-style: none;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1rem;
}
.strat-list li::before {
  counter-increment: strat;
  content: counter(strat);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
  color: #fff;
  border-radius: 50%;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.strat-list li strong { display: block; margin-bottom: 0.25rem; }

/* Rules (details/summary) */
.rules-details { margin-bottom: 1rem; }
.rules-details summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  background: #f7fafc;
  border-radius: var(--radius);
  font-weight: 600;
  color: #1a202c;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rules-details summary::-webkit-details-marker { display: none; }
.rules-details summary::after { content: '+'; font-size: 1.25rem; color: var(--primary-to); }
.rules-details[open] summary::after { content: '−'; }
.rules-details .details-inner { padding: 1rem 1.25rem; border-top: 1px solid #e2e8f0; }
.rules-details .details-inner p { margin: 0 0 0.75rem 0; font-size: 0.95rem; color: #4a5568; }
.rules-details .details-inner p:last-child { margin-bottom: 0; }

/* App info table */
.app-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.app-table th, .app-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.app-table th { background: linear-gradient(135deg, var(--primary-from), var(--primary-to)); color: #fff; font-weight: 600; }
.app-table tr:last-child td { border-bottom: 0; }
.app-table tr:nth-child(even) { background: #f7fafc; }

/* Game type cards */
.game-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.game-card .game-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}
.game-card img.game-thumb-img { width: 100%; height: auto; object-fit: cover; }
.game-card .game-body { padding: 1rem; }
.game-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }

/* Stats */
.stats-section { background: linear-gradient(135deg, var(--primary-from), var(--primary-to)); color: #fff; }
.stat-item { text-align: center; padding: 1rem; }
.stat-num { font-family: 'Chakra Petch', sans-serif; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; display: block; }
.stat-label { font-size: 0.9rem; opacity: 0.9; }

/* SEO content */
.seo-content { background: #f7fafc; padding: 2rem 0; }
.seo-content p { max-width: 72ch; margin-bottom: 1rem; color: #4a5568; line-height: 1.7; }

/* Footer */
.site-footer {
  background: #1a202c;
  color: rgba(255,255,255,0.85);
  padding: 2.5rem 0 1.5rem;
}
.site-footer a { color: rgba(255,255,255,0.9); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-links { list-style: none; padding: 0; margin: 0 0 1rem 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a { font-size: 1.25rem; opacity: 0.9; }
.footer-copy { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.9rem; opacity: 0.8; }

/* Buttons */
.btn-download {
  background: linear-gradient(135deg, var(--accent), #e6c200);
  color: #1a202c;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,215,0,0.4); color: #1a202c; }
@media (max-width: 767px) { .btn-download { width: 100%; } }

/* Fixed bottom CTA (mobile) */
.fixed-bottom-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 1020;
}
@media (max-width: 767px) { .fixed-bottom-cta { display: block; } }
.fixed-bottom-cta .btn-download { width: 100%; }
body { padding-bottom: 0; }
@media (max-width: 767px) { body { padding-bottom: 70px; } }

/* Form */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-weight: 500; }
.form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}
.form-control:focus { outline: none; border-color: var(--primary-from); box-shadow: 0 0 0 3px rgba(102,126,234,0.2); }
textarea.form-control { min-height: 120px; resize: vertical; }
.btn-submit {
  background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.95; color: #fff; }

/* About */
.mission-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.mission-item .icon { flex-shrink: 0; width: 48px; height: 48px; }
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--primary-from), var(--primary-to)); }
.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-item::before { content: ''; position: absolute; left: -1.5rem; top: 6px; width: 14px; height: 14px; background: var(--primary-to); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary-to); }
.timeline-item h4 { margin: 0 0 0.25rem 0; font-size: 1.1rem; }
.timeline-item p { margin: 0; font-size: 0.9rem; color: #4a5568; }

/* Blog */
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.blog-card .blog-thumb {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-from), var(--primary-to));
  color: #fff;
  font-weight: 600;
}
.blog-card .blog-meta { font-size: 0.85rem; color: #718096; margin-bottom: 0.5rem; }
.blog-article h2 { font-size: 1.35rem; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.blog-article p { margin-bottom: 1rem; line-height: 1.75; color: #4a5568; }
.blog-article ul { margin-bottom: 1rem; padding-left: 1.5rem; }

/* Badges */
.badge-wrap { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.badge-wrap .badge-item { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: #4a5568; }

/* Utility */
.text-gradient { background: linear-gradient(135deg, var(--primary-from), var(--primary-to)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1rem; }
