/* creaturesincrisis.org — Species Page Styles */

:root {
  --bg: #0a0e1a;
  --bg-2: #0f1524;
  --bg-3: #141c2e;
  --border: #1e2a42;
  --text: #e8ecf4;
  --text-muted: #7a8499;
  --accent: #00d4aa;
  --accent-2: #ff6b35;
  --danger: #ef4444;
  --warning: #f59e0b;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.logo-icon { color: var(--accent); font-size: 10px; }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

/* Breadcrumbs */
.breadcrumbs {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumbs-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); text-decoration: none; }
.bc-sep { color: var(--text-muted); opacity: 0.5; }
.breadcrumbs span { color: var(--text); }

/* Species Hero */
.species-hero {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}
.species-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0, 212, 170, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.species-hero-image {
  position: relative;
  max-width: 480px;
  margin: 0 auto 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-3);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.species-hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.status-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.status-critical, .status-Critically Endangered { background: #ef4444; color: #fff; }
.status-endangered, .status-Endangered { background: #f97316; color: #fff; }
.status-vulnerable, .status-Vulnerable { background: #eab308; color: #000; }
.status-threatened { background: #dc2626; color: #fff; }
.status-unknown { background: var(--bg-3); color: var(--text-muted); border: 1px solid var(--border); }

.species-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.species-scientific {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 24px;
}
.count-hero {
  text-align: center;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  font-family: var(--font-mono);
}
.species-count-label {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Stats Row */
.section-sm { padding: 0; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
}
.stat-item {
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.stat-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* Main Layout */
.section { padding: 48px 0; }
.species-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .species-layout { grid-template-columns: 1fr; }
  .species-sidebar { order: -1; }
}

.species-main h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.species-main h2:first-child { margin-top: 0; }
.species-description .lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}
.section-body p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 12px;
}
.threat-list, .conservation-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.threat-list li, .conservation-list li {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.threat-list li::before { content: '⚠'; color: var(--danger); font-size: 14px; flex-shrink: 0; }
.conservation-list li::before { content: '✓'; color: var(--accent); font-size: 14px; flex-shrink: 0; }

/* Sidebar */
.species-sidebar { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.sidebar-card h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.class-grid { display: flex; flex-direction: column; gap: 8px; }
.class-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.class-row:last-child { border-bottom: none; }
.class-row span { color: var(--text-muted); }
.class-row em { color: var(--text); font-size: 12px; }
.facts-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.facts-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.facts-list li:last-child { border-bottom: none; }
.facts-list li::before { content: '•'; color: var(--accent); flex-shrink: 0; }

/* Footer */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 60px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.footer a { color: var(--accent); }
.footer p { margin-bottom: 6px; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.species-hero { animation: fadeInUp 0.5s ease-out; }
.sidebar-card { animation: fadeInUp 0.5s ease-out 0.15s both; }
.species-main h2 { animation: fadeInUp 0.4s ease-out 0.1s both; }

/* Responsive */
@media (max-width: 768px) {
  .header-inner { height: 56px; padding: 0 16px; }
  .nav { gap: 0; }
  .nav-link { padding: 6px 10px; font-size: 13px; }
  .container { padding: 0 16px; }
  .species-hero { padding: 32px 0 28px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 14px 12px; }
  .section { padding: 32px 0; }
  .species-layout { gap: 24px; }
}


/* ============================================================
   BLUE WHALE — DRAMATIC EDITORIAL STYLE
   ============================================================ */

/* Hero Banner */
.hero-banner {
  background: linear-gradient(180deg, #030b1a 0%, #071428 40%, #0a1f3d 100%);
  border-bottom: 1px solid rgba(0, 180, 220, 0.15);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(0, 150, 200, 0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-bg-gradient {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.04) 0%, transparent 60%);
}
.hero-content-block {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-species-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(0, 212, 255, 0.7);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-species-title {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 0.95;
  margin-bottom: 12px;
  text-shadow: 0 0 60px rgba(0, 180, 220, 0.2);
}
.hero-species-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 40px;
  font-style: normal;
}
.hero-population-stat {
  margin-bottom: 24px;
}
.hero-pop-num {
  font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  color: #00d4ff;
  line-height: 1;
  text-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
}
.hero-pop-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 10px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.hero-status-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.status-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.status-critical { background: #ef4444; color: #fff; }
.status-pill-priority {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
}

/* Stats Bar */
.stats-bar {
  background: var(--bg-2, #0f1524);
  border-bottom: 1px solid var(--border, #1e2a42);
  padding: 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.stat-item {
  padding: 18px 20px;
  border-right: 1px solid var(--border, #1e2a42);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 5px;
}
.stat-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

/* Content Layout */
.content-section {
  padding: 60px 0;
  background: var(--bg, #0a0e1a);
}
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { order: -1; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}
@media (max-width: 600px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: 1px solid var(--border, #1e2a42); }
  .stat-item:nth-child(2n) { border-right: none; }
}

.content-main { min-width: 0; }

.narrative-block {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.narrative-block:last-child { border-bottom: none; }

.section-heading {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #00d4ff;
  display: inline-block;
  letter-spacing: 0.01em;
}

.content-main p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 16px;
}
.content-main p:last-child { margin-bottom: 0; }
.content-main strong {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}
.content-main em { color: rgba(255,255,255,0.6); }

/* Sidebar */
.content-sidebar {
  position: sticky;
  top: 80px;
}
.sidebar-card {
  background: #0f1524;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 16px;
}
.sidebar-heading {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.facts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.facts-list li {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.facts-list li:last-child { border-bottom: none; }
.facts-list strong { color: rgba(255,255,255,0.85); font-weight: 500; white-space: nowrap; }

/* Timeline card */
.species-timeline {
  background: linear-gradient(135deg, #0a1528 0%, #0d1e38 100%);
  border-color: rgba(0, 212, 255, 0.15);
}
.timeline-stat {
  text-align: center;
  padding: 4px 0;
}
.ts-year {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 4px;
}
.ts-val {
  font-family: 'SF Mono', 'Cascadia Code', Consolas, monospace;
  font-size: 24px;
  font-weight: 700;
  color: #00d4ff;
}
.timeline-arrow {
  text-align: center;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.2);
  padding: 6px 0;
}
.ts-note {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
  font-style: italic;
}

/* Sources */
.sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sources-list li a {
  font-size: 12px;
  color: rgba(0, 212, 255, 0.7);
  text-decoration: none;
  line-height: 1.4;
  display: block;
}
.sources-list li a:hover { color: #00d4ff; text-decoration: underline; }

/* Related nav */
.related-nav {
  background: #0a0e1a;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
}
.related-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
}
.related-card {
  padding: 20px 24px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s;
}
.related-card:hover { background: rgba(255,255,255,0.04); text-decoration: none; }
.related-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 4px;
}
.related-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}
.related-region {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.related-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.08);
}
@media (max-width: 700px) {
  .related-inner { grid-template-columns: 1fr; gap: 12px; }
  .related-divider { display: none; }
  .related-card { background: rgba(255,255,255,0.03); border-radius: 8px; }
}
