/* PetTox - Emergency Veterinary Toxicology Styling */
:root {
  --bg-primary: #0a0d18;
  --bg-card: #121727;
  --bg-input: #0e1322;
  --border-color: #202a42;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-coral: #f43f5e;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-blue: #38bdf8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.5;
  padding-bottom: 40px;
}

/* Header */
header {
  background: rgba(18, 23, 39, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-size: 20px;
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.35);
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.lang-switcher {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn.active {
  background: #f43f5e;
  color: #fff;
}

.header-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
}

/* Container */
.container {
  max-width: 580px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Big Hero Severity Card */
.hero-severity-card {
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-severity-card.emerald { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), #0d1a1b); border-color: rgba(16, 185, 129, 0.35); }
.hero-severity-card.amber { background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), #1a160d); border-color: rgba(245, 158, 11, 0.35); }
.hero-severity-card.rose { background: linear-gradient(135deg, rgba(244, 63, 94, 0.22), #1a0f15); border-color: rgba(244, 63, 94, 0.45); }

.severity-title {
  font-size: 17px;
  font-weight: 850;
  line-height: 1.3;
}
.hero-severity-card.emerald .severity-title { color: #34d399; }
.hero-severity-card.amber .severity-title { color: #fbbf24; }
.hero-severity-card.rose .severity-title { color: #fb7185; }

.severity-desc {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Card Module */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Species Segmented Control */
.species-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.species-btn {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.species-btn.active {
  background: #f43f5e;
  color: #fff;
  border-color: #f43f5e;
}

/* Slider */
.slider-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
}

.slider-val {
  color: #f43f5e;
  font-family: monospace;
  font-size: 15px;
  font-weight: 800;
}

.range-slider {
  width: 100%;
  accent-color: #f43f5e;
  height: 6px;
  cursor: pointer;
}

/* Substance List */
.substance-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.substance-item {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.substance-item.active {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
}

.substance-icon { font-size: 22px; }
.substance-name { font-size: 13px; font-weight: 600; color: #f1f5f9; }

/* Notice Box */
.notice-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  font-size: 12.5px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.45;
}

.notice-title {
  color: #f59e0b;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Ad slots */
.ad-mobile-slot {
  margin: 12px 0;
  text-align: center;
}

.ad-mobile-box {
  min-height: 90px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-subtext {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 4px;
}
