/* worldquakes.org — Dark Cinematic Earthquake Theme */
:root {
  --bg-deep: #05080f;
  --bg-body: #0a0e17;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);
  --bg-section: #0d1420;
  --bg-section-dark: #080c14;
  --text: #e8e8e8;
  --text-dim: #7a8294;
  --text-muted: #4a5264;
  --neon: #00d4ff;
  --neon-dim: rgba(0,212,255,0.3);
  --gold: #f0c040;
  --orange: #ff6b35;
  --border: rgba(255,255,255,0.08);
  radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg-body); color: var(--text); font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,sans-serif; line-height: 1.6; overflow-x: hidden; }

/* ===== HEADER ===== */
.eq-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(5,8,15,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.eq-header-inner { max-width: 1400px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; height: 64px; gap: 2rem; }
.eq-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.eq-logo-ic { font-size: 1.4rem; }
.eq-nav { display: flex; gap: 0.25rem; flex: 1; }
.eq-nav a { color: var(--text-dim); text-decoration: none; padding: 0.5rem 0.75rem; border-radius: 8px; font-size: 0.9rem; transition: all 0.2s; }
.eq-nav a:hover { color: var(--text); background: var(--bg-card); }

/* Language Switcher */
.eq-lang { position: relative; }
.eq-lang-btn { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); padding: 0.4rem 0.8rem; border-radius: 8px; cursor: pointer; font-size: 0.85rem; }
.eq-lang-btn:hover { background: var(--bg-card-hover); }
.eq-lang-dd { display: none; position: absolute; top: 100%; right: 0; background: #111827; border: 1px solid var(--border); border-radius: 12px; padding: 0.5rem; min-width: 180px; z-index: 200; margin-top: 4px; }
.eq-lang-dd.show { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.eq-lang-dd button { background: none; border: none; color: var(--text-dim); padding: 0.4rem 0.6rem; cursor: pointer; border-radius: 6px; font-size: 0.85rem; flex: 1 0 45%; text-align: left; }
.eq-lang-dd button:hover { background: var(--bg-card); color: var(--text); }

/* ===== HERO ===== */
.eq-hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 6rem 2rem 4rem; background: radial-gradient(ellipse at 30% 50%, rgba(0,212,255,0.06) 0%, transparent 60%), radial-gradient(ellipse at 70% 80%, rgba(240,192,64,0.04) 0%, transparent 50%), var(--bg-deep); }
.eq-hero-bg { position: absolute; inset: 0; overflow: hidden; }
.eq-particles { position: absolute; inset: 0; }
.eq-hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.eq-hero-badge { display: inline-block; background: rgba(0,212,255,0.1); border: 1px solid var(--neon-dim); color: var(--neon); padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.85rem; margin-bottom: 1.5rem; letter-spacing: 0.05em; }
.eq-hero-title { font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; line-height: 1.05; margin-bottom: 1rem; background: linear-gradient(135deg, #fff 0%, var(--neon) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.02em; }
.eq-hero-sub { font-size: 1.2rem; color: var(--text-dim); max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.5; }
.eq-hero-stats { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.eq-stat { text-align: center; }
.eq-stat-num { font-size: 2.5rem; font-weight: 800; color: var(--neon); }
.eq-stat-label { font-size: 0.85rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }

/* ===== SECTIONS ===== */
.eq-section { padding: 5rem 2rem; }
.eq-section-dark { background: var(--bg-section-dark); }
.eq-container { max-width: 1200px; margin: 0 auto; }
.eq-section-badge { display: inline-block; background: rgba(0,212,255,0.08); border: 1px solid var(--neon-dim); color: var(--neon); padding: 0.3rem 0.8rem; border-radius: 100px; font-size: 0.8rem; margin-bottom: 1rem; letter-spacing: 0.03em; }
.eq-section-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; color: #fff; }
.eq-section-sub { color: var(--text-dim); font-size: 1rem; margin-bottom: 2rem; max-width: 600px; }

/* ===== FILTERS ===== */
.eq-filters { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.eq-filter { background: var(--bg-card); color: var(--text-dim); border: 1px solid var(--border); padding: 0.4rem 1rem; border-radius: 8px; cursor: pointer; font-size: 0.85rem; transition: all 0.2s; }
.eq-filter:hover { background: var(--bg-card-hover); color: var(--text); }
.eq-filter.active { background: rgba(0,212,255,0.15); border-color: var(--neon-dim); color: var(--neon); }

/* ===== EARTHQUAKE CARDS ===== */
.eq-card-list { display: flex; flex-direction: column; gap: 0.5rem; }
.eq-live-indicator { text-align: center; padding: 2rem; color: var(--text-dim); font-style: italic; }
.eq-live-dot { display: inline-block; width: 8px; height: 8px; background: #22c55e; border-radius: 50%; animation: pulse-dot 2s infinite; margin-right: 0.5rem; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.4} }

.eq-card { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.2rem; background: var(--bg-card); border-radius: var(--radius,12px); text-decoration: none; color: var(--text); transition: all 0.2s; }
.eq-card:hover { background: var(--bg-card-hover); transform: translateX(4px); }
.eq-card-mag { font-size: 1.4rem; font-weight: 900; min-width: 60px; }
.eq-card-body { flex: 1; }
.eq-card-place { font-weight: 600; margin-bottom: 0.2rem; }
.eq-card-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-dim); }

/* ===== STATS ===== */
.eq-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.eq-stat-card { background: var(--bg-card); border-radius: var(--radius,12px); padding: 2rem; text-align: center; border: 1px solid var(--border); transition: all 0.3s; }
.eq-stat-card:hover { border-color: var(--neon-dim); transform: translateY(-2px); }
.eq-stat-card-num { font-size: 3rem; font-weight: 900; background: linear-gradient(135deg, var(--neon), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.eq-stat-card-label { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== HISTORICAL CARDS ===== */
.eq-hist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.eq-hist-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--bg-card); border-left: 4px solid; border-radius: var(--radius,12px); text-decoration: none; color: var(--text); transition: all 0.2s; }
.eq-hist-card:hover { background: var(--bg-card-hover); transform: translateY(-2px); }
.eq-hist-mag { font-size: 1.2rem; font-weight: 900; min-width: 50px; }
.eq-hist-name { font-weight: 600; }
.eq-hist-year { font-size: 0.8rem; color: var(--text-dim); }

/* ===== COUNTRY GRID ===== */
.eq-country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
.eq-country-card { display: block; padding: 1rem; background: var(--bg-card); border-radius: var(--radius,12px); text-decoration: none; color: var(--text); border: 1px solid var(--border); transition: all 0.2s; }
.eq-country-card:hover { border-color: var(--neon-dim); background: var(--bg-card-hover); }
.eq-country-name { font-weight: 600; margin-bottom: 0.3rem; }
.eq-country-count { font-size: 0.8rem; color: var(--text-dim); }

/* ===== YEAR GRID ===== */
.eq-year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.eq-year-card { display: block; padding: 1rem; background: var(--bg-card); border-radius: var(--radius,12px); text-decoration: none; color: var(--text); border: 1px solid var(--border); text-align: center; transition: all 0.2s; }
.eq-year-card:hover { border-color: var(--neon-dim); background: var(--bg-card-hover); }
.eq-year-num { font-size: 1.5rem; font-weight: 800; color: var(--neon); }
.eq-year-count { font-size: 0.8rem; color: var(--text-dim); }

/* ===== TOOLS / LEARN GRID ===== */
.eq-tools-grid, .eq-learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.eq-tool-card, .eq-learn-card { display: block; padding: 1.5rem; background: var(--bg-card); border-radius: var(--radius,12px); text-decoration: none; color: var(--text); border: 1px solid var(--border); transition: all 0.2s; }
.eq-tool-card:hover, .eq-learn-card:hover { border-color: var(--neon-dim); background: var(--bg-card-hover); transform: translateY(-2px); }
.eq-tool-ic, .eq-learn-ic { font-size: 2rem; margin-bottom: 0.75rem; }
.eq-tool-name, .eq-learn-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.3rem; }
.eq-tool-desc, .eq-learn-desc { font-size: 0.85rem; color: var(--text-dim); }

/* ===== DETAIL PAGE ===== */
.eq-page { padding: 6rem 2rem 4rem; min-height: 100vh; }
.eq-back { display: inline-block; color: var(--neon); text-decoration: none; margin-bottom: 1.5rem; font-size: 0.9rem; }
.eq-back:hover { text-decoration: underline; }
.eq-page-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; background: linear-gradient(135deg, #fff 0%, var(--neon) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.eq-page-desc { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 2rem; }

.eq-detail-header { display: flex; align-items: flex-start; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.eq-detail-info { flex: 1; }
.eq-detail-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.3rem; }
.eq-detail-place { color: var(--text-dim); margin-bottom: 0.75rem; }
.eq-detail-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.eq-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; color: #fff; }
.eq-badge-tsunami { background: #0369a1; }
.eq-badge-historical { background: #6b21a8; }

.eq-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.eq-detail-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius,12px); padding: 1.2rem; }
.eq-detail-label { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.3rem; }
.eq-detail-value { font-size: 1.3rem; font-weight: 700; }
.eq-related-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; color: #fff; }

/* ===== FAQ ===== */
.eq-faq { max-width: 800px; margin: 0 auto; }
.eq-faq-item { margin-bottom: 0.5rem; }
.eq-faq-q { background: var(--bg-card); padding: 1rem 1.2rem; border-radius: var(--radius,12px); cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.eq-faq-q:hover { background: var(--bg-card-hover); }
.eq-faq-toggle { font-size: 1.3rem; color: var(--neon); transition: transform 0.2s; }
.eq-faq-q.open .eq-faq-toggle { transform: rotate(45deg); }
.eq-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 1.2rem; color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; }
.eq-faq-a.open { max-height: 500px; padding: 1rem 1.2rem; }

/* ===== BUTTONS ===== */
.eq-btn { display: inline-block; padding: 0.6rem 1.5rem; background: var(--neon); color: #000; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: all 0.2s; }
.eq-btn:hover { background: #00e5ff; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,212,255,0.3); }

/* ===== FOOTER ===== */
.eq-footer { border-top: 1px solid var(--border); padding: 2rem; background: var(--bg-deep); }
.eq-footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.eq-footer p { color: var(--text-dim); font-size: 0.85rem; }
.eq-footer-links { display: flex; gap: 1.5rem; }
.eq-footer-links a { color: var(--text-dim); text-decoration: none; font-size: 0.85rem; }
.eq-footer-links a:hover { color: var(--neon); }
.eq-footer-src { font-size: 0.8rem; }
.eq-footer-src a { color: var(--neon); text-decoration: none; }

/* ===== COOKIE ===== */
.eq-cookie { position: fixed; bottom: 0; left: 0; right: 0; background: #111827; border-top: 1px solid var(--border); padding: 1rem 2rem; z-index: 200; display: none; }
.eq-cookie.show { display: block; }
.eq-cookie-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.eq-cookie p { color: var(--text-dim); font-size: 0.85rem; }
.eq-cookie-btn { padding: 0.4rem 1rem; background: var(--neon); color: #000; border: none; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 0.85rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .eq-nav { display: none; }
  .eq-hero-title { font-size: 2.5rem; }
  .eq-hero-stats { gap: 1.5rem; }
  .eq-stat-num { font-size: 1.8rem; }
  .eq-section { padding: 3rem 1rem; }
  .eq-detail-header { flex-direction: column; }
  .eq-page { padding: 5rem 1rem 3rem; }
  .eq-tools-grid, .eq-learn-grid { grid-template-columns: 1fr; }
  .eq-hist-grid { grid-template-columns: 1fr; }
  .eq-footer-inner { flex-direction: column; text-align: center; }
}

/* ===== SCROLL ANIMATIONS ===== */
.eq-section { opacity: 0; transform: translateY(20px); animation: fadeUp 0.6s ease forwards; }
.eq-section:nth-child(1) { animation-delay: 0s; }
.eq-section:nth-child(2) { animation-delay: 0.1s; }
.eq-section:nth-child(3) { animation-delay: 0.2s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ===== MAGNITUDE COLOR CLASSES ===== */
.mag-great { color: #dc2626; }
.mag-major { color: #a855f7; }
.mag-strong { color: #ef4444; }
.mag-moderate { color: #fb923c; }
.mag-light { color: #facc15; }
.mag-minor { color: #4ade80; }

/* ===== TOOL PLACEHOLDER ===== */
.eq-tool-placeholder { background: var(--bg-card); border: 2px dashed var(--border); border-radius: var(--radius,12px); margin-top: 1rem; }
