/* AeroCharge - Mobile Aviation Battery Sizer */
:root {
  --bg-primary: #090e1a;
  --bg-card: #111728;
  --bg-input: #0d1322;
  --border-color: #1e2840;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
}

* {
  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(17, 23, 40, 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, #0284c7, #38bdf8);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(56, 189, 248, 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: #0284c7;
  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 Status Card */
.hero-status-card {
  background: linear-gradient(135deg, #131c33, #0d1424);
  border: 1px solid #233252;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.compliance-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.compliance-badge.emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.compliance-badge.amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.compliance-badge.rose { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }

.big-wh-display {
  font-size: 44px;
  font-weight: 900;
  color: #38bdf8;
  font-family: monospace;
  line-height: 1.1;
}

.wh-subtext {
  font-size: 13px;
  color: #cbd5e1;
  max-width: 480px;
  line-height: 1.4;
}

.checked-warning-strip {
  width: 100%;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  color: #fca5a5;
  text-align: left;
  margin-top: 6px;
  line-height: 1.4;
}

/* Card */
.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;
}

/* Presets Grid */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.preset-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  color: var(--text-main);
}

.preset-btn:active {
  transform: scale(0.98);
}

.preset-btn.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.preset-icon { font-size: 20px; }
.preset-name { font-size: 12px; font-weight: 600; }

/* Sliders & Inputs */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.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: var(--accent-cyan);
  font-family: monospace;
  font-size: 16px;
  font-weight: 800;
}

.range-slider {
  width: 100%;
  accent-color: var(--accent-cyan);
  height: 6px;
  cursor: pointer;
}

/* Checklist Notice */
.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;
}
