:root {
  --primary: #0077b6;
  --primary-dark: #023e8a;
  --accent: #00b4d8;
  --bg: #f0f9ff;
  --surface: #ffffff;
  --text: #1a2b3c;
  --text-muted: #5a6b7c;
  --danger: #e63946;
  --safe: #2a9d8f;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 119, 182, 0.12);
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo:hover { text-decoration: none; opacity: 0.9; }

.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.9); font-weight: 500; }
.nav-links a:hover { color: white; text-decoration: none; }

.search-box input {
  padding: 8px 16px;
  border: none;
  border-radius: 24px;
  width: 220px;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h1 { font-size: 3rem; margin-bottom: 16px; font-weight: 800; }
.hero p { font-size: 1.25rem; opacity: 0.9; max-width: 600px; margin: 0 auto 32px; }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 40px; }
.hero-stat strong { display: block; font-size: 2rem; }
.hero-stat span { font-size: 0.9rem; opacity: 0.8; }

/* Cards Grid */
.section { padding: 64px 0; }
.section-title { font-size: 2rem; margin-bottom: 8px; }
.section-subtitle { color: var(--text-muted); margin-bottom: 32px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 119, 182, 0.2);
}

.filter-card {
  width: 100%;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.filter-card.is-active {
  outline: 3px solid var(--accent);
  transform: translateY(-4px);
}
.empty-state {
  grid-column: 1 / -1;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body { padding: 20px; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 4px; }
.card-body .scientific { font-style: italic; color: var(--text-muted); font-size: 0.85rem; }
.card-body p { margin-top: 8px; font-size: 0.9rem; color: var(--text-muted); }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 8px;
}

.badge-safe { background: #d8f3dc; color: var(--safe); }
.badge-danger { background: #ffe0e0; color: var(--danger); }
.badge-category { background: #e0f4ff; color: var(--primary); }

/* Detail Page */
.detail-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: white;
  padding: 48px 24px 32px;
}

.detail-hero h1 { font-size: 2.5rem; }
.detail-hero .scientific { font-style: italic; opacity: 0.85; font-size: 1.1rem; }

.detail-content { padding: 48px 0; }
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.info-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.info-box h2 { font-size: 1.3rem; margin-bottom: 16px; color: var(--primary-dark); }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.fact-item {
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
}

.fact-item label { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.5px; }
.fact-item p { font-weight: 600; margin-top: 4px; }

.fun-facts li { margin-bottom: 12px; padding-left: 8px; }

.faq-item { border-bottom: 1px solid #e8eef3; padding: 16px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h4 { margin-bottom: 8px; }

.map-placeholder {
  background: linear-gradient(135deg, #caf0f8, #90e0ef);
  border-radius: var(--radius);
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-weight: 600;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.related-cards { display: flex; gap: 16px; flex-wrap: wrap; }
.related-card {
  flex: 1;
  min-width: 140px;
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.related-card img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 { color: white; margin-bottom: 12px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,0.7); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}


/* AdSense legal and contact pages */
.legal-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 56px 0;
}
.legal-hero h1 { font-size: 2.5rem; margin-bottom: 8px; }
.legal-hero p { max-width: 760px; opacity: 0.92; font-size: 1.05rem; }
.legal-page { padding: 48px 0; }
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}
.legal-content .info-box h2 { margin-top: 8px; }
.legal-content .info-box h3 { margin: 20px 0 8px; color: var(--primary-dark); }
.legal-content .info-box p,
.legal-content .info-box li { margin-bottom: 10px; color: var(--text); }
.legal-content ul { padding-left: 20px; margin: 10px 0 18px; }
.legal-meta {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: 92px;
}
.legal-meta a { display: block; margin: 8px 0; font-weight: 600; }
.contact-form label {
  display: block;
  font-weight: 600;
  margin: 14px 0 6px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8e2ea;
  border-radius: 8px;
  font: inherit;
  background: white;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button,
.contact-actions button {
  margin-top: 16px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.contact-form button:hover,
.contact-actions button:hover { opacity: 0.9; }
.form-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-muted);
}
.footer-legal {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.footer-legal a { color: rgba(255,255,255,0.85); font-weight: 600; }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-meta { position: static; }
}

