/* ============================================================
   COVID AWARENESS APP — MAIN STYLESHEET
   Google Fonts: Poppins (headings) + Inter (body)
   Colors: --primary #0077B6, --secondary #00B4D8, --accent #E63946
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --primary: #0077B6;
  --primary-dark: #005F94;
  --secondary: #00B4D8;
  --accent: #E63946;
  --success: #2DC653;
  --warning: #F4A261;
  --bg: #F0F7FF;
  --bg-card: #FFFFFF;
  --bg-alt: #E8F4FD;
  --text: #1A2E3F;
  --text-muted: #6B8CA3;
  --border: #CDDFF0;
  --shadow: 0 4px 20px rgba(0,119,182,0.10);
  --shadow-md: 0 8px 32px rgba(0,119,182,0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --navbar-h: 70px;
  --transition: 0.3s ease;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

[data-theme="dark"] {
  --primary: #00B4D8;
  --primary-dark: #0077B6;
  --secondary: #48CAE4;
  --bg: #0D1B2A;
  --bg-card: #162435;
  --bg-alt: #112030;
  --text: #E0EFF9;
  --text-muted: #7FA8C0;
  --border: #1E3A52;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Utility ---- */
.bg-alt { background: var(--bg-alt); }

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--navbar-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
[data-theme="dark"] .navbar {
  background: rgba(13,27,42,0.92);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 1.5rem;
}
.nav-logo {
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem;
  color: var(--primary); display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.nav-logo i { font-size: 1.4rem; }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem; flex: 1; justify-content: center;
}
.nav-links a {
  font-size: 0.85rem; font-weight: 500; padding: 6px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--primary); background: rgba(0,119,182,0.08); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle, .hamburger {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-muted); cursor: pointer; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.theme-toggle:hover, .hamburger:hover { color: var(--primary); border-color: var(--primary); }
.hamburger { display: none; }

/* ============================
   HERO
   ============================ */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #E0F4FF 0%, #B3E5FC 50%, #E0F0FF 100%);
  padding-top: var(--navbar-h);
}
[data-theme="dark"] .hero { background: linear-gradient(135deg, #0D1B2A 0%, #0a2540 50%, #0D1B2A 100%); }
.hero-bg-circles {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
}
.hero-bg-circles span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,0.15), transparent 70%);
}
.hero-bg-circles span:nth-child(1) { width: 600px; height: 600px; top: -200px; right: -100px; }
.hero-bg-circles span:nth-child(2) { width: 400px; height: 400px; bottom: -150px; left: -100px; }
.hero-bg-circles span:nth-child(3) { width: 250px; height: 250px; top: 40%; left: 50%; }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 750px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,119,182,0.12); color: var(--primary);
  border: 1px solid rgba(0,119,182,0.25); border-radius: 50px;
  padding: 6px 18px; font-size: 0.8rem; font-weight: 600; margin-bottom: 1.5rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700;
  line-height: 1.2; color: var(--text); margin-bottom: 1.25rem;
}
.hero h1 .highlight { color: var(--primary); }
.hero-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5rem; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: var(--text-muted); animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; border: none; transition: all var(--transition); font-family: var(--font-body);
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 16px rgba(0,119,182,0.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,119,182,0.4); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ============================
   SECTIONS
   ============================ */
.section { padding: 90px 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-badge {
  display: inline-block; background: rgba(0,119,182,0.10); color: var(--primary);
  border-radius: 50px; padding: 4px 16px; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700;
  color: var(--text); margin-bottom: 0.75rem;
}
.section-header p { color: var(--text-muted); max-width: 550px; margin: 0 auto; }

/* ============================
   SCROLL REVEAL
   ============================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================
   COUNTRY SELECTOR
   ============================ */
.country-selector {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--bg-card); border-radius: var(--radius); padding: 16px 24px;
  border: 1px solid var(--border); margin-bottom: 2rem;
}
.country-selector label { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.country-selector select {
  padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: var(--font-body);
  font-size: 0.9rem; cursor: pointer; outline: none;
  transition: border-color var(--transition);
}
.country-selector select:focus { border-color: var(--primary); }
.last-updated { margin-left: auto; font-size: 0.8rem; color: var(--text-muted); }

/* ============================
   STATS GRID
   ============================ */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); display: flex; align-items: center; gap: 20px;
  box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
}
.stat-card.cases::before { background: #E63946; }
.stat-card.recovered::before { background: #2DC653; }
.stat-card.deaths::before { background: #F4A261; }
.stat-card.active::before { background: #0077B6; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0;
}
.cases .stat-icon { background: rgba(230,57,70,0.1); color: #E63946; }
.recovered .stat-icon { background: rgba(45,198,83,0.1); color: #2DC653; }
.deaths .stat-icon { background: rgba(244,162,97,0.1); color: #F4A261; }
.active .stat-icon { background: rgba(0,119,182,0.1); color: var(--primary); }
.stat-info { display: flex; flex-direction: column; }
.stat-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-value { font-family: var(--font-head); font-size: 1.75rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.stat-today { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ============================
   CHARTS
   ============================ */
.charts-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.chart-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.chart-card h3 { font-family: var(--font-head); font-size: 1rem; color: var(--text); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 8px; }
.chart-wrap { position: relative; height: 280px; }

/* ============================
   SYMPTOMS
   ============================ */
.symptoms-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
}
.symptom-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 24px 20px;
  border: 1px solid var(--border); text-align: center; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.symptom-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.symptom-icon { font-size: 2.2rem; color: var(--primary); margin-bottom: 12px; }
.symptom-card h4 { font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 8px; }
.symptom-card p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.severity { display: inline-block; padding: 3px 12px; border-radius: 50px; font-size: 0.72rem; font-weight: 600; }
.severity.high { background: rgba(230,57,70,0.1); color: #E63946; }
.severity.critical { background: rgba(230,57,70,0.2); color: #C1121F; }
.severity.medium { background: rgba(244,162,97,0.15); color: #E07020; }
.severity.low { background: rgba(45,198,83,0.1); color: #1A9E40; }

/* ============================
   FLIP CARDS (Prevention)
   ============================ */
.prevention-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px;
  margin-bottom: 3rem;
}
.flip-card { height: 190px; perspective: 1000px; cursor: pointer; }
.flip-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform 0.7s ease; transform-style: preserve-3d;
}
.flip-card:hover .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius); padding: 24px; display: flex;
  flex-direction: column; align-items: center; justify-content: center; text-align: center;
  border: 1px solid var(--border);
}
.flip-front {
  background: var(--bg-card); box-shadow: var(--shadow);
}
.flip-front i { font-size: 2.4rem; color: var(--primary); margin-bottom: 12px; }
.flip-front h4 { font-family: var(--font-head); font-size: 0.95rem; }
.flip-back {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: rotateY(180deg); color: white;
}
.flip-back h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 10px; }
.flip-back p { font-size: 0.82rem; line-height: 1.6; opacity: 0.92; }
.do-donts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dos, .donts {
  background: var(--bg-card); border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.dos h3 { color: #2DC653; font-family: var(--font-head); margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; }
.donts h3 { color: var(--accent); font-family: var(--font-head); margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; }
.dos li, .donts li {
  font-size: 0.88rem; padding: 7px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; color: var(--text-muted);
}
.dos li::before { content: '✓'; color: #2DC653; font-weight: 700; flex-shrink: 0; }
.donts li::before { content: '✗'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.dos li:last-child, .donts li:last-child { border-bottom: none; }

/* ============================
   VACCINES
   ============================ */
.vaccine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 2.5rem; }
.vaccine-card {
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.vaccine-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.vaccine-logo {
  padding: 20px 24px; font-family: var(--font-head); font-size: 1.2rem; font-weight: 700;
  letter-spacing: 0.05em;
}
.vaccine-logo.covishield { background: linear-gradient(135deg, #E8F4FD, #BCDFF9); color: #0077B6; }
.vaccine-logo.covaxin { background: linear-gradient(135deg, #FFF3E0, #FFCC80); color: #E65100; }
.vaccine-logo.pfizer { background: linear-gradient(135deg, #E8EAF6, #C5CAE9); color: #3949AB; }
.vaccine-logo.moderna { background: linear-gradient(135deg, #E8F5E9, #A5D6A7); color: #2E7D32; }
.vaccine-info { padding: 20px 24px; }
.vaccine-info h4 { font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 8px; }
.vaccine-info p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }
.vaccine-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.vaccine-stats span { font-size: 0.78rem; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.vaccine-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================
   SYMPTOM CHECKER
   ============================ */
.checker-wrapper {
  max-width: 760px; margin: 0 auto;
  background: var(--bg-card); border-radius: var(--radius); padding: 36px;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.checker-box h3 { font-family: var(--font-head); color: var(--text); margin-bottom: 1.5rem; }
.checker-symptoms {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px; margin-bottom: 1.5rem;
}
.check-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; cursor: pointer; font-size: 0.88rem;
  transition: background var(--transition), border-color var(--transition);
}
.check-item:hover { background: rgba(0,119,182,0.06); border-color: var(--primary); }
.check-item input[type=checkbox] { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }
.check-item i { color: var(--primary); width: 18px; }
.checker-contact { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 1.5rem; }
.checker-contact label { font-weight: 600; display: block; margin-bottom: 10px; }
.radio-group { display: flex; gap: 24px; }
.radio-group label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.9rem; }
.radio-group input { accent-color: var(--primary); }
.checker-result { text-align: center; }
.result-icon { font-size: 4rem; margin-bottom: 1rem; }
.result-level { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; }
.result-msg { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.7; }
.result-steps { text-align: left; margin: 0 auto 2rem; max-width: 480px; }
.result-steps li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; display: flex; gap: 10px; align-items: flex-start; }
.result-steps li::before { content: '→'; color: var(--primary); flex-shrink: 0; }
.result-low .result-level { color: #2DC653; }
.result-medium .result-level { color: #F4A261; }
.result-high .result-level { color: var(--accent); }

/* ============================
   FAQ
   ============================ */
.faq-search {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 18px; margin-bottom: 1.5rem;
}
.faq-search i { color: var(--text-muted); }
.faq-search input {
  border: none; background: transparent; outline: none; width: 100%;
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text);
}
.faq-item {
  background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid var(--border);
  margin-bottom: 10px; overflow: hidden; cursor: pointer;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; font-weight: 600; font-size: 0.92rem;
}
.faq-q i { color: var(--primary); flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 22px 18px; font-size: 0.87rem; color: var(--text-muted); line-height: 1.7; border-top: 1px solid var(--border); padding-top: 14px; }
.faq-item.open .faq-a { display: block; }

/* ============================
   HELPLINE
   ============================ */
.helpline-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 3rem; }
.helpline-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 28px 22px;
  border: 1px solid var(--border); text-align: center; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.helpline-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.helpline-card.emergency { border-color: var(--accent); }
.helpline-icon { font-size: 2.2rem; color: var(--primary); margin-bottom: 14px; }
.helpline-card.emergency .helpline-icon { color: var(--accent); }
.helpline-card h4 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 8px; }
.helpline-num {
  display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 700;
  color: var(--primary); margin-bottom: 8px;
}
.helpline-card.emergency .helpline-num { color: var(--accent); }
.helpline-card p { font-size: 0.82rem; color: var(--text-muted); }
.official-links h3 { font-family: var(--font-head); margin-bottom: 1rem; }
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.official-link {
  display: flex; align-items: center; gap: 10px; background: var(--bg-card);
  border-radius: var(--radius-sm); padding: 14px 18px; border: 1px solid var(--border);
  font-size: 0.88rem; font-weight: 600; color: var(--primary);
  transition: all var(--transition);
}
.official-link:hover { background: var(--primary); color: white; transform: translateY(-2px); }

/* ============================
   FOOTER
   ============================ */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.83rem; color: var(--text-muted); margin-top: 12px; max-width: 360px; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h5 { font-family: var(--font-head); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 4px; }
.footer-links a { font-size: 0.87rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  font-size: 0.82rem; color: var(--text-muted); text-align: center;
}
.footer-bottom a { color: var(--primary); }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .charts-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: var(--navbar-h); left: 0; right: 0;
    background: var(--bg-card); flex-direction: column; padding: 20px; gap: 4px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 2rem; }
  .do-donts { grid-template-columns: 1fr; }
  .checker-wrapper { padding: 24px 18px; }
  .footer-content { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 60px 0; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .prevention-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================
   LOADING SKELETON
   ============================ */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, rgba(0,119,182,0.08) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  display: inline-block;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
