/* ======================================================
   Base / Global
====================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f5f5;
  color: #111827;
}

a {
  color: inherit;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ======================================================
   Signup page
====================================================== */

.signup-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 24px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  text-align: center;
}

label {
  display: block;
  margin-top: 12px;
  font-weight: 500;
  text-align: left;
}

input {
  width: 100%;
  padding: 9px;
  margin-top: 4px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

button {
  margin-top: 18px;
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  background: #2563eb;
  color: white;
}

button:hover {
  filter: brightness(1.05);
}

.primary-btn {
  background: #16a34a;
}

.primary-btn:hover {
  filter: brightness(1.05);
}

.error {
  color: #b91c1c;
  margin-bottom: 8px;
}

.hidden {
  display: none;
}

.otp-panel {
  margin-top: 24px;
  text-align: center;
}

.otp-message {
  color: #4b5563;
  margin-bottom: 14px;
}

.otp-subtext {
  color: #6b7280;
  margin-top: 8px;
}

.otp-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.otp-digit {
  text-align: center;
  font-size: 18px;
  padding: 10px 0;
}

.helper-text {
  margin-top: 12px;
  color: #047857;
}

/* ======================================================
   Landing page (AfroED core)
====================================================== */

.landing-body {
  background: #f7f5f2;
  color: #111827;
}

.landing {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ======================================================
   Pathways layout helpers
====================================================== */

.pathways-header {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.pathways-header .logo {
  width: 96px;
  height: 96px;
}

.pathways-pill {
  width: auto;
  padding-inline: 24px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cta-row select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  min-width: 180px;
  flex: 1 1 180px;
}

.cta-row .cta {
  border: 0;
  width: auto;
  flex: 1 1 200px;
}

@media (max-width: 700px) {
  .pathways-header {
    align-items: flex-start;
  }

  .pathways-header .logo {
    width: 72px;
    height: 72px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row select,
  .cta-row .cta {
    width: 100%;
    max-width: 100%;
  }
}

/* ======================================================
   Landing header
====================================================== */

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.logo {
  width: 136px;
  height: 136px;
}

.nav-toggle {
  width: 40px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #111827;
}

/* ======================================================
   Hero
====================================================== */

.hero {
  display: grid;
  gap: 24px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero h1 {
  font-size: 30px;
  line-height: 1.1;
  margin: 0;
}

.hero p {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  padding: clamp(10px, 2.5vw, 14px) clamp(16px, 4vw, 24px);
  border-radius: 999px;
  border: 1px solid #111827;
  background: #111827;
  color: #ffffff;
  font-weight: 600;
  font-size: clamp(14px, 2.8vw, 16px);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.cta.primary {
  border-color: #111827;
  background: #111827;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.08);
}

.hero-art {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  justify-self: center;
}

/* ======================================================
   Info section
====================================================== */

.info-card {
  background: #fdfbf8;
  border-radius: 20px;
  padding: 22px;
  display: grid;
  gap: 20px;
  align-items: center;
}

.info-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.info-card p {
  margin: 0 0 16px;
  color: #4b5563;
  line-height: 1.5;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 240px;
  padding: clamp(8px, 2.4vw, 12px) clamp(14px, 3.5vw, 20px);
  border-radius: 999px;
  border: 1px solid #111827;
  background: #111827;
  color: #ffffff;
  font-weight: 600;
  font-size: clamp(13px, 2.6vw, 15px);
}

@media (min-width: 640px) {
  .cta,
  .pill-button {
    width: auto;
  }
}

.phone-mock {
  width: 100%;
  max-width: 260px;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.15);
}

/* ======================================================
   Features list
====================================================== */

.features {
  display: grid;
  gap: 18px;
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #111827;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
}

/* ======================================================
   Events calendar
====================================================== */

.events {
  display: grid;
  gap: 18px;
}

.events-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.events-header h2 {
  margin: 0 0 6px;
}

.events-header p {
  margin: 0;
  color: #4b5563;
}

.events-chip {
  background: #111827;
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
}

.events-grid {
  display: grid;
  gap: 18px;
}

.calendar {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-weekdays span {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
}

.calendar-days span {
  background: #f9fafb;
  border-radius: 10px;
  padding: 10px 0;
  font-size: 12px;
  text-align: center;
  font-weight: 600;
  color: #111827;
}

.calendar-days span.muted {
  color: #9ca3af;
}

.calendar-days span.event-day {
  background: #111827;
  color: #ffffff;
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.event-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.event-card p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.4;
}

.event-date {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 4px;
  font-weight: 600;
}

.event-tag {
  justify-self: flex-start;
  background: #f3f4f6;
  color: #111827;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ======================================================
   Mentors + carousel
====================================================== */

.mentors {
  display: grid;
  gap: 16px;
}

.mentors h2 {
  margin: 0;
}

.mentor-logo {
  font-size: 32px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #4b5563;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.carousel-card {
  background: white;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
  scroll-snap-align: start;
}

.carousel-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.carousel-card h3 {
  margin: 10px 0 4px;
  font-size: 16px;
}

.carousel-card span {
  font-size: 12px;
  color: #6b7280;
}

.carousel-card p {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.4;
}

/* ======================================================
   Supporters
====================================================== */

.supporters {
  display: grid;
  gap: 16px;
}

.supporter-grid {
  display: grid;
  gap: 14px;
}

.support-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.support-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.support-card-content {
  padding: 12px;
}

.support-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.support-card span {
  color: #6b7280;
  font-size: 12px;
}

.support-card p {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.4;
}

/* ======================================================
   Footer
====================================================== */

.footer {
  margin-top: 8px;
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
  text-align: center;
  color: #6b7280;
  font-size: 12px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
  font-size: 13px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

/* ======================================================
   Signup modal
====================================================== */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.35);
  z-index: 20;
}

.modal.active {
  display: grid;
}

.modal-panel {
  width: min(420px, 100%);
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.2);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f3f4f6;
  border: none;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.modal-panel h2 {
  margin: 0 0 6px;
}

.modal-panel p {
  margin: 0 0 16px;
  color: #6b7280;
}

.modal-panel label {
  font-size: 13px;
}

.modal-panel input,
.modal-panel select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  margin-top: 4px;
}

.modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .info-card {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .events-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .supporter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ======================================================
   Users dashboard
====================================================== */

.dashboard-body {
  background: radial-gradient(circle at top, #1f2a44 0%, #0c1220 45%, #070b14 100%);
  color: #e2e8f0;
}

.dashboard {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.dashboard-kicker {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(226,232,240,0.7);
  margin: 0 0 6px;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 36px;
}

.dashboard-subtitle {
  margin: 8px 0 0;
  color: rgba(226,232,240,0.78);
  max-width: 540px;
}

.dashboard-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: rgba(226,232,240,0.6);
  align-items: flex-end;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.stat-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(15,23,42,0.35);
}

.stat-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.stat-value {
  font-size: 28px;
  margin: 0 0 6px;
  font-weight: 700;
  color: #f8fafc;
}

.stat-sub {
  margin: 0;
  color: rgba(226,232,240,0.7);
  font-size: 13px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.user-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148,163,184,0.2);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.user-card:hover {
  transform: translateY(-3px);
  border-color: rgba(148,163,184,0.5);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.4);
}

.user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #0f172a;
  font-size: 18px;
}

.user-info h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.user-info p {
  margin: 0 0 6px;
  color: rgba(226,232,240,0.75);
  font-size: 14px;
}

.user-info span {
  font-size: 12px;
  color: rgba(226,232,240,0.6);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  border-radius: 18px;
  border: 1px dashed rgba(148,163,184,0.4);
  background: rgba(15, 23, 42, 0.5);
}

.empty-state h2 {
  margin: 0 0 10px;
}

.empty-state p {
  margin: 0;
  color: rgba(226,232,240,0.7);
}
