/* RoomCool - Mobile HVAC Capacity Assistant */
:root {
  --bg-primary: #0a0f1d;
  --bg-card: #11182c;
  --bg-input: #0c1222;
  --border-color: #1e2942;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-cyan: #38bdf8;
  --accent-blue: #0284c7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
}

* {
  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, 24, 44, 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;
}

.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);
}

.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);
}

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

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

/* Big Hero Result Card */
.hero-result-card {
  background: linear-gradient(135deg, #13223f, #0d1628);
  border: 1px solid #233863;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.result-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  letter-spacing: 0.5px;
}

.result-main-kw {
  font-size: 40px;
  font-weight: 900;
  color: #38bdf8;
  font-family: monospace;
  line-height: 1.1;
}

.result-sub-units {
  font-size: 13px;
  color: #cbd5e1;
}

.metric-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.metric-box {
  background: rgba(10, 15, 29, 0.6);
  padding: 8px 4px;
  border-radius: 8px;
  text-align: center;
}

.metric-label { font-size: 10px; color: var(--text-muted); }
.metric-val { font-size: 14px; font-weight: 800; font-family: monospace; color: #fff; margin-top: 2px; }

/* Unit Toggle */
.unit-toggle {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 12px;
}

.unit-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;
}

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

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

/* Thermal Factors Checklist */
.factor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.factor-item.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

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

.factor-icon { font-size: 20px; }
.factor-name { font-size: 13px; font-weight: 600; color: #f1f5f9; }
.factor-badge {
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.factor-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

/* Advice note */
.advice-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.advice-title {
  color: #34d399;
  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;
}
