/* FlightBag 3D - Mobile-First Travel Tech Styling */
:root {
  --bg-primary: #0a0f1d;
  --bg-card: #151d30;
  --bg-input: #0f1626;
  --border-color: #23314d;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-cyan: #38bdf8;
  --accent-blue: #0284c7;
  --status-safe: #10b981;
  --status-warn: #f59e0b;
  --status-danger: #ef4444;
}

* {
  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: 30px;
}

/* Header */
header {
  background: rgba(15, 23, 42, 0.9);
  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: 22px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.header-tag {
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  border-radius: 12px;
  font-weight: 600;
}

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

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

/* 3D Visualizer Canvas */
.canvas-card {
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.canvas-viewport {
  width: 100%;
  height: 220px;
  position: relative;
  touch-action: none;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-hint {
  position: absolute;
  bottom: 8px;
  font-size: 10.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

/* Compliance Status Hero */
.status-hero {
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s ease;
}

.status-hero.safe {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-hero.warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-hero.danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.status-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.status-info {
  flex: 1;
}

.status-heading {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 2px;
}

.safe .status-heading { color: #34d399; }
.warning .status-heading { color: #fbbf24; }
.danger .status-heading { color: #f87171; }

.status-desc {
  font-size: 12px;
  color: #cbd5e1;
}

.fee-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #b91c1c;
  color: #fff;
  white-space: nowrap;
}

/* Quick Bag Presets Chips */
.presets-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.presets-scroller::-webkit-scrollbar {
  display: none;
}

.preset-chip {
  flex-shrink: 0;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12px;
  color: #cbd5e1;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.preset-chip:hover, .preset-chip.active {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  color: #fff;
}

/* Bag Type Toggles */
.segmented-control {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 12px;
}

.seg-btn {
  flex: 1;
  text-align: center;
  padding: 7px 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.seg-btn.active {
  background: #0284c7;
  color: #fff;
}

/* Dimension Input Sliders */
.slider-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
}

.slider-val {
  color: var(--accent-cyan);
  font-weight: 700;
  font-family: monospace;
}

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

/* Airline Selector Chips */
.airline-search {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  outline: none;
  margin-bottom: 10px;
}

.airline-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.airline-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.airline-card:hover {
  border-color: #64748b;
}

.airline-card.selected {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.airline-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.airline-badge {
  font-size: 10.5px;
  color: var(--text-muted);
}

.airline-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 4px;
}
.airline-status-dot.safe { background: var(--status-safe); }
.airline-status-dot.warn { background: var(--status-warn); }
.airline-status-dot.danger { background: var(--status-danger); }

/* Multi-Airline Comparison Matrix */
.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--bg-input);
  border-radius: 8px;
  font-size: 12.5px;
}

.comp-carrier {
  font-weight: 600;
  color: #f1f5f9;
}

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

.comp-verdict {
  font-weight: 700;
  font-size: 12px;
}
.comp-verdict.safe { color: var(--status-safe); }
.comp-verdict.warning { color: var(--status-warn); }
.comp-verdict.danger { color: var(--status-danger); }

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