/* roi-calculator.css — Advertiser ROI Calculator page styles. Dark theme, NovaReelOS Blue accent.
   Owns: /tools/roi-calculator layout, cards, metric output styling.
   Does NOT own: sidebar (sidebar.css), shared design tokens. */

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

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

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

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

/* ── Input fields ─────────────────────────────────────────────── */
.roi-field {
  margin-bottom: 1.25rem;
}
.roi-field:last-child {
  margin-bottom: 0;
}
.roi-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--roi-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.roi-field input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--roi-white);
  background: var(--roi-surface-2);
  border: 1px solid var(--roi-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.roi-field input:focus {
  border-color: var(--roi-blue);
  box-shadow: 0 0 0 3px var(--roi-blue-dim);
}
.roi-field input::placeholder {
  color: var(--roi-text-muted);
}

/* ── Output cards ─────────────────────────────────────────────── */
.roi-results-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.roi-metric-card {
  background: var(--roi-surface-2);
  border: 1px solid var(--roi-border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  transition: border-color 0.25s;
}
.roi-metric-card:hover {
  border-color: rgba(26, 115, 232, 0.3);
}
.roi-metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--roi-text-muted);
  margin-bottom: 0.25rem;
}
.roi-metric-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--roi-white);
  margin-bottom: 0.2rem;
  transition: color 0.25s;
}
.roi-metric-desc {
  font-size: 0.78rem;
  color: var(--roi-text-muted);
  line-height: 1.4;
}

/* Color-coded values */
.roi-positive { color: var(--roi-green) !important; }
.roi-negative { color: var(--roi-red) !important; }
.roi-neutral  { color: var(--roi-text-muted) !important; }

/* ── Bottom CTA ───────────────────────────────────────────────── */
.roi-bottom-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 1rem;
  border-top: 1px solid var(--roi-border);
}
.roi-bottom-cta p {
  color: var(--roi-text);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}
.roi-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(--roi-blue);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.roi-btn-primary:hover {
  background: #1565C0;
  box-shadow: 0 4px 16px var(--roi-blue-glow);
}
.roi-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(--roi-blue);
  background: var(--roi-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;
}
.roi-btn-secondary:hover {
  background: rgba(26, 115, 232, 0.2);
}

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