/* Beacon — Custom styles on top of Pico CSS */

:root {
  /* Primary brand — midnight navy from the logo */
  --beacon-purple: #1a1035;
  --beacon-purple-dark: #0d0820;
  --beacon-purple-light: #e8e6f2;

  /* Accent — amber from the logo signal */
  --beacon-amber: #f5a623;
  --beacon-amber-dark: #d97706;
  --beacon-amber-light: #fef3c7;

  /* Neutrals */
  --beacon-gray: #6b7280;
  --beacon-bg: #fafaf7;

  /* Status colors — warmer, calmer */
  --beacon-success: #4a7c59;
  --beacon-warning: #d97706;
  --beacon-danger: #dc2626;
}

/* ── Global ── */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: var(--beacon-bg);
}

a {
  color: var(--beacon-purple);
}

/* ── Navbar ── */
.beacon-nav {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.beacon-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--beacon-purple);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.beacon-logo span {
  color: #1f2937;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--beacon-gray);
  font-size: 0.9rem;
}

/* ── Buttons ── */
.btn-primary {
  background: var(--beacon-purple);
  color: white !important;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-size: 1rem;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--beacon-purple-dark);
}

.btn-secondary {
  background: white;
  color: var(--beacon-purple) !important;
  border: 2px solid var(--beacon-purple);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* ── Cards ── */
.card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
}

/* ── Hero section ── */
.hero {
  text-align: center;
  padding: 5rem 1rem 3rem;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--beacon-purple);
}

.hero p {
  font-size: 1.2rem;
  color: var(--beacon-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Pillars grid ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pillar {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.pillar h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.pillar p {
  font-size: 0.9rem;
  color: var(--beacon-gray);
  line-height: 1.5;
}

/* ── Auth forms ── */
.auth-container {
  max-width: 420px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.auth-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
}

.auth-card h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.auth-card .subtitle {
  color: var(--beacon-gray);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--beacon-purple);
}

.req {
  font-size: 0.8rem;
  color: #ef4444;
  margin-bottom: 0.2rem;
  transition: color 0.2s;
}
.req.met {
  color: #10b981;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--beacon-gray);
}

/* ── Onboarding ── */
.onboard-container {
  max-width: 560px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.progress-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.progress-step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e5e7eb;
}

.progress-step.active {
  background: var(--beacon-purple);
}

.progress-step.done {
  background: var(--beacon-success);
}

.onboard-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid #e5e7eb;
}

.onboard-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.onboard-card .step-hint {
  color: var(--beacon-gray);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.support-options {
  display: grid;
  gap: 0.75rem;
}

.support-option {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.support-option:hover,
.support-option.selected {
  border-color: var(--beacon-purple);
  background: var(--beacon-purple-light);
}

.support-option h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.2rem;
}

.support-option p {
  font-size: 0.85rem;
  color: var(--beacon-gray);
  margin: 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-label h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
}

.toggle-label p {
  font-size: 0.8rem;
  color: var(--beacon-gray);
  margin: 0;
}

/* ── Dashboard ── */
.dashboard-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.dashboard-header {
  margin-bottom: 1.5rem;
}

.dashboard-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1f2937;
}

.dashboard-header p {
  color: var(--beacon-gray);
  font-size: 0.95rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nudge-card {
  background: white;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 0.75rem;
  border-left: 4px solid #e5e7eb;
}

.nudge-card.critical {
  border-left-color: var(--beacon-danger);
}

.nudge-card.high {
  border-left-color: var(--beacon-warning);
}

.nudge-card.medium {
  border-left-color: var(--beacon-purple);
}

.nudge-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-critical { background: #fee2e2; color: #dc2626; }
.badge-high     { background: #fef3c7; color: #d97706; }
.badge-medium   { background: var(--beacon-purple-light); color: var(--beacon-purple-dark); }
.badge-course   { background: #f3f4f6; color: #374151; }

.nudge-message {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.5;
}

.nudge-time {
  font-size: 0.8rem;
  color: var(--beacon-gray);
  margin-top: 0.4rem;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--beacon-gray);
}

.empty-state .emoji {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

/* ── Stats row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--beacon-purple);
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--beacon-gray);
  margin-top: 0.2rem;
}

/* ── Alert ── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-error {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

/* ── Mobile responsive ── */
@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .hero p  { font-size: 1rem; }
  .beacon-nav { padding: 1rem; }
  .nav-links a:not(.btn-primary) { display: none; }
  .auth-card, .onboard-card { padding: 1.5rem; }
}
