/* budget-planner.css — Advertiser Budget Planner page styles.
   Dark theme with NovaReelOS Blue (#1A73E8) + Cyan (#06B6D4) accents.
   Owns: /tools/budget-planner layout, cards, ROAS card color states.
   Does NOT own: sidebar (sidebar.css), shared design tokens. */

:root {
  --bp-blue: #1A73E8;
  --bp-cyan: #06B6D4;
  --bp-blue-dim: rgba(26, 115, 232, 0.12);
  --bp-blue-glow: rgba(26, 115, 232, 0.3);
  --bp-bg: #050508;
  --bp-surface: #0C0C12;
  --bp-surface-2: #13131D;
  --bp-border: #1E1E2E;
  --bp-text: #B0B0C0;
  --bp-text-muted: #6B6B80;
  --bp-white: #F5F5FF;
  --bp-green: #22C55E;
  --bp-yellow: #EAB308;
  --bp-red: #EF4444;
  --bp-radius: 12px;
}

/* ── Page wrapper ─────────────────────────────────── */
.bp-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ── Hero ─────────────────────────────────────────── */
.bp-hero { text-align: center; padding: 3rem 1rem 2rem; }
.bp-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bp-blue);
  background: var(--bp-blue-dim);
  border: 1px solid rgba(26, 115, 232, 0.25);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.bp-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--bp-white);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
.bp-hero h1 .bp-highlight {
  background: linear-gradient(135deg, var(--bp-blue), var(--bp-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bp-hero-sub {
  font-size: 1.05rem;
  color: var(--bp-text);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Calculator layout ────────────────────────────── */
.bp-calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.bp-panel {
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  padding: 2rem;
}
.bp-panel-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bp-white);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bp-panel-title .bp-icon { font-size: 1.2rem; }

/* ── Fields ───────────────────────────────────────── */
.bp-field { margin-bottom: 1.1rem; }
.bp-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bp-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.bp-field input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  color: var(--bp-white);
  background: var(--bp-surface-2);
  border: 1px solid var(--bp-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.bp-field input:focus {
  border-color: var(--bp-blue);
  box-shadow: 0 0 0 3px var(--bp-blue-dim);
}
.bp-field input::placeholder { color: var(--bp-text-muted); }
.bp-field-hint {
  font-size: 0.75rem;
  color: var(--bp-text-muted);
  margin-top: 0.3rem;
}

/* ── Reset button ─────────────────────────────────── */
.bp-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--bp-text);
  background: var(--bp-surface-2);
  border: 1px solid var(--bp-border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  margin-top: 0.5rem;
}
.bp-reset-btn:hover {
  border-color: var(--bp-blue);
  color: var(--bp-white);
}

/* ── ROAS hero card ───────────────────────────────── */
.bp-roas-card {
  border-radius: var(--bp-radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--bp-border);
  background: var(--bp-surface-2);
  transition: background 0.3s, border-color 0.3s;
}
.bp-roas-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bp-text-muted);
  margin-bottom: 0.35rem;
}
.bp-roas-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.25rem;
  color: var(--bp-white);
  transition: color 0.3s;
}
.bp-roas-sub {
  font-size: 0.75rem;
  color: var(--bp-text-muted);
}

/* ROAS color states */
.bp-roas-green {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
}
.bp-roas-green .bp-roas-value { color: var(--bp-green); }
.bp-roas-yellow {
  background: rgba(234, 179, 8, 0.08);
  border-color: rgba(234, 179, 8, 0.3);
}
.bp-roas-yellow .bp-roas-value { color: var(--bp-yellow); }
.bp-roas-red {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}
.bp-roas-red .bp-roas-value { color: var(--bp-red); }

/* ── Metrics grid ─────────────────────────────────── */
.bp-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.bp-metric-card {
  background: var(--bp-surface-2);
  border: 1px solid var(--bp-border);
  border-radius: 10px;
  padding: 1rem;
  transition: border-color 0.2s;
}
.bp-metric-card:hover { border-color: var(--bp-blue-glow); }
.bp-metric-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bp-text-muted);
  margin-bottom: 0.3rem;
}
.bp-metric-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bp-white);
  margin-bottom: 0.2rem;
}
.bp-metric-revenue { color: var(--bp-green); }
.bp-metric-desc {
  font-size: 0.68rem;
  color: var(--bp-text-muted);
}

/* ── Summary line ─────────────────────────────────── */
.bp-summary {
  font-size: 0.88rem;
  color: var(--bp-text);
  line-height: 1.6;
  background: var(--bp-surface-2);
  border: 1px solid var(--bp-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

/* ── Bottom CTA ───────────────────────────────────── */
.bp-bottom-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--bp-border);
}
.bp-bottom-cta p {
  color: var(--bp-text);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}
.bp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: #fff;
  background: var(--bp-blue);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.bp-btn-primary:hover {
  background: #1565C0;
  box-shadow: 0 4px 16px var(--bp-blue-glow);
}
.bp-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--bp-blue);
  background: var(--bp-blue-dim);
  border: 1px solid rgba(26, 115, 232, 0.25);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  margin-left: 0.75rem;
}
.bp-btn-secondary:hover { background: rgba(26, 115, 232, 0.2); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .bp-calculator { grid-template-columns: 1fr; }
  .bp-metrics-grid { grid-template-columns: 1fr; }
  .bp-hero { padding: 2rem 0.5rem 1.5rem; }
  .bp-roas-value { font-size: 2rem; }
  .bp-btn-primary, .bp-btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .bp-btn-secondary { margin-left: 0; margin-top: 0.5rem; }
}
