/**
 * "Map the Mood" - Geomatics Honor Society (GHS)
 * Full Responsive Stylesheet matching React UI
 */

:root {
  --primary: #065f46;
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --primary-border: #a7f3d0;
  
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-200: #a7f3d0;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;

  --neutral-950: #020617;
  --neutral-900: #0f172a;
  --neutral-800: #1e293b;
  --neutral-700: #334155;
  --neutral-600: #475569;
  --neutral-500: #64748b;
  --neutral-400: #94a3b8;
  --neutral-300: #cbd5e1;
  --neutral-200: #e2e8f0;
  --neutral-100: #f1f5f9;
  --neutral-50: #f8fafc;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;

  --mood-relaxed: #10b981;
  --mood-comfortable: #059669;
  --mood-neutral: #64748b;
  --mood-stressful: #f59e0b;
  --mood-very-stressful: #ef4444;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--emerald-700);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--emerald-900);
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ==========================================================================
   Announcement Ribbon
   ========================================================================== */
.announcement-ribbon {
  background: linear-gradient(90deg, #064e3b 0%, #065f46 50%, #047857 100%);
  color: #ecfdf5;
  font-size: 0.775rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.announcement-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.announcement-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse-ring 2s infinite;
  display: inline-block;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.announcement-title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.announcement-sub {
  color: #a7f3d0;
  opacity: 0.9;
}

.announcement-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255,255,255,0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.725rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.announcement-cta:hover {
  background: rgba(255,255,255,0.25);
  color: #ffffff;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--emerald-100);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-xs);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.ghs-crest-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(6, 95, 70, 0.2);
  padding: 2px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.brand-group:hover .ghs-crest-wrap {
  transform: scale(1.04);
}

.ghs-crest-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-top-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-ghs {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--emerald-100);
  color: var(--emerald-900);
  border: 1px solid var(--emerald-200);
}

.brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--neutral-900);
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--neutral-500);
  font-weight: 500;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neutral-600);
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.nav-link:hover {
  color: var(--neutral-900);
  background: var(--neutral-100);
  text-decoration: none;
}
.nav-link.active {
  background: var(--emerald-50);
  color: var(--emerald-900);
  border-color: var(--emerald-200);
}

.nav-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}
.nav-link.active .nav-icon {
  stroke: var(--emerald-700);
}

.btn-qr-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neutral-700);
  background: transparent;
  border: 1px dashed var(--neutral-300);
  transition: all 0.15s ease;
}
.btn-qr-nav:hover {
  background: var(--emerald-50);
  border-color: var(--emerald-500);
  color: var(--emerald-800);
}

.btn-portal-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neutral-700);
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-portal-nav:hover {
  background: var(--neutral-900);
  color: #ffffff;
  border-color: var(--neutral-900);
  text-decoration: none;
}
.btn-portal-nav.active {
  background: var(--neutral-900);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--neutral-800);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: var(--emerald-100);
  color: var(--emerald-900);
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
  border: 1px solid var(--emerald-200);
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--neutral-900);
  letter-spacing: -0.03em;
}

.wavy-highlight {
  color: var(--emerald-700);
  position: relative;
  display: inline-block;
  text-decoration: underline wavy var(--emerald-500) 3px;
  text-underline-offset: 8px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--neutral-600);
  line-height: 1.65;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--emerald-700);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(4, 120, 87, 0.3);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--emerald-800);
}
.btn-primary-cta:hover {
  background: var(--emerald-800);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(4, 120, 87, 0.4);
  text-decoration: none;
}

.btn-gps-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--neutral-800);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
}
.btn-gps-cta:hover {
  background: var(--neutral-50);
  border-color: var(--neutral-300);
}

.badge-gps-tag {
  font-size: 0.65rem;
  font-weight: 800;
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.btn-explore-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--neutral-700);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--neutral-200);
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-explore-cta:hover {
  background: var(--neutral-50);
  color: var(--neutral-900);
  text-decoration: none;
}

.gps-feedback-msg {
  display: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.25rem;
}
.gps-feedback-msg.active {
  display: block;
}
.gps-feedback-msg.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.gps-feedback-msg.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.gps-feedback-msg.loading {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--neutral-200);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neutral-600);
}
.trust-item svg {
  color: var(--emerald-600);
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Mental Health Fact Shuffler (Right Column)
   ========================================================================== */
.fact-shuffler-card {
  background: #ffffff;
  border: 1px solid var(--emerald-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fact-header {
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--neutral-100);
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.fact-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.fact-title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.fact-sparkle-icon {
  color: var(--emerald-600);
}

.fact-main-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--neutral-900);
}

.fact-count-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: var(--emerald-100);
  color: var(--emerald-900);
  border: 1px solid var(--emerald-200);
}

.fact-subtitle {
  font-size: 0.75rem;
  color: var(--neutral-500);
  margin-bottom: 0.75rem;
}

.fact-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.fact-btn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--neutral-200);
  background: #ffffff;
  color: var(--neutral-700);
  transition: all 0.15s ease;
}
.fact-btn-toggle.active {
  background: var(--emerald-50);
  color: var(--emerald-800);
  border-color: var(--emerald-300);
}

.fact-btn-shuffle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--emerald-300);
  background: var(--emerald-50);
  color: var(--emerald-800);
  transition: all 0.15s ease;
}
.fact-btn-shuffle:hover {
  background: var(--emerald-100);
}

/* Progress bar */
.fact-timer-bar-wrap {
  height: 3px;
  background: var(--neutral-100);
  width: 100%;
  overflow: hidden;
}
.fact-timer-bar {
  height: 100%;
  background: var(--emerald-500);
  width: 0%;
  transition: width 0.1s linear;
}

/* Category Filter Tabs */
.fact-category-tabs {
  display: flex;
  overflow-x: auto;
  gap: 0.35rem;
  padding: 0.75rem 1.25rem 0.5rem;
  border-bottom: 1px solid var(--neutral-100);
  scrollbar-width: none;
}
.fact-category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab-btn {
  white-space: nowrap;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.725rem;
  font-weight: 600;
  background: var(--neutral-100);
  color: var(--neutral-600);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.cat-tab-btn:hover {
  background: var(--neutral-200);
  color: var(--neutral-900);
}
.cat-tab-btn.active {
  background: var(--neutral-900);
  color: #ffffff;
}

/* Fact Card Body */
.fact-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 230px;
}

.fact-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fact-cat-pill {
  font-size: 0.675rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.fact-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.675rem;
  color: var(--neutral-500);
  font-weight: 600;
}

.fact-item-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.35;
}

.fact-item-summary {
  font-size: 0.875rem;
  color: var(--neutral-600);
  line-height: 1.55;
}

/* Accordion expandable */
.fact-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  color: var(--emerald-700);
  font-size: 0.775rem;
  font-weight: 700;
  padding: 0.25rem 0;
  margin-top: 0.25rem;
  width: fit-content;
}
.fact-expand-btn:hover {
  color: var(--emerald-900);
}

.fact-expand-content {
  display: none;
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-size: 0.8rem;
  color: var(--neutral-700);
  margin-top: 0.5rem;
}
.fact-expand-content.open {
  display: block;
}

.fact-expand-details {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.fact-expand-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fact-ref-link {
  font-size: 0.725rem;
  color: var(--emerald-700);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

/* Fact Footer */
.fact-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--neutral-100);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fact-counter-text {
  font-size: 0.75rem;
  color: var(--neutral-500);
}

.fact-nav-arrows {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--neutral-200);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neutral-700);
  transition: all 0.15s ease;
}
.btn-arrow:hover {
  background: var(--neutral-100);
  color: var(--neutral-900);
}

/* ==========================================================================
   3 Steps Section
   ========================================================================== */
.steps-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--neutral-200);
}

.steps-heading-group {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.steps-subtitle {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--emerald-700);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.steps-main-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--neutral-900);
  letter-spacing: -0.02em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition: all 0.2s ease;
}
.step-card:hover {
  border-color: var(--emerald-300);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.step-num-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--emerald-100);
  color: var(--emerald-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--neutral-900);
}

.step-desc {
  font-size: 0.875rem;
  color: var(--neutral-600);
  line-height: 1.55;
}

/* ==========================================================================
   Campus Pulse & RSS Section
   ========================================================================== */
.pulse-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

.pulse-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1px solid var(--emerald-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.pulse-info-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid var(--emerald-300);
  color: var(--emerald-800);
  font-size: 0.725rem;
  font-weight: 800;
  width: fit-content;
}

.pulse-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--neutral-900);
}

.pulse-desc {
  font-size: 0.9rem;
  color: var(--neutral-600);
  line-height: 1.6;
}

.rss-meter-box {
  background: #ffffff;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-xs);
}

.rss-score-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.rss-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--neutral-500);
}

.rss-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--emerald-700);
}

.rss-progress-track {
  height: 8px;
  background: var(--neutral-100);
  border-radius: 9999px;
  overflow: hidden;
}
.rss-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: 9999px;
}

.mood-dist-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  text-align: center;
  font-size: 0.725rem;
}
.mood-dist-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.mood-dist-emoji {
  font-size: 1.15rem;
}
.mood-dist-count {
  font-weight: 700;
  color: var(--neutral-800);
}
.mood-dist-lbl {
  color: var(--neutral-500);
  font-size: 0.65rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  border-top: 1px solid #1e293b;
  margin-top: auto;
  font-size: 0.85rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.footer-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 380px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.f-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: #1e293b;
  color: #a7f3d0;
  border: 1px solid #334155;
}

.footer-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a, .footer-link-btn {
  color: #94a3b8;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  text-align: left;
  transition: color 0.15s ease;
}
.footer-links a:hover, .footer-link-btn:hover {
  color: #34d399;
}

.footer-disclaimer {
  font-size: 0.775rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.footer-crisis-box {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.crisis-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #f87171;
  letter-spacing: 0.05em;
}

.crisis-number {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
}

.crisis-sub {
  font-size: 0.7rem;
  color: #cbd5e1;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.775rem;
  color: #64748b;
}

.footer-tagline {
  color: #94a3b8;
}

/* ==========================================================================
   Event QR Modal
   ========================================================================== */
.qr-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.qr-modal-backdrop.open {
  display: flex;
}

.qr-modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modal-enter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.qr-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--neutral-100);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.qr-modal-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--emerald-800);
  background: var(--emerald-100);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.qr-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-top: 0.25rem;
}

.qr-modal-subtitle {
  font-size: 0.75rem;
  color: var(--neutral-500);
}

.qr-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--neutral-400);
  line-height: 1;
}
.qr-modal-close:hover {
  color: var(--neutral-800);
}

.qr-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.qr-box {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-md);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-xs);
  padding: 8px;
  background: #ffffff;
}

.qr-visual {
  width: 100%;
  height: 100%;
}

.qr-instructions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.qr-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--neutral-600);
}

.qr-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--emerald-100);
  color: var(--emerald-800);
  font-weight: 800;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qr-link-copy {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.qr-link-copy input {
  flex: 1;
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  background: var(--neutral-50);
  color: var(--neutral-600);
}

/* ==========================================================================
   Map Interface (map.php)
   ========================================================================== */
.map-layout {
  position: relative;
  width: 100%;
  height: calc(100vh - 110px);
  min-height: 500px;
}

#participant-map, #results-map {
  width: 100%;
  height: 100%;
  z-index: 10;
}

.map-floating-panel {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 500;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  max-width: 320px;
}

.map-floating-panel h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 0.35rem;
}

.map-floating-panel p {
  font-size: 0.775rem;
  color: var(--neutral-600);
  line-height: 1.45;
}

/* Bottom Sheet */
.sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 1050;
}
.sheet-overlay.active {
  display: block;
}

.bottom-sheet {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  padding: 1.5rem;
  max-height: 85vh;
  overflow-y: auto;
  transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 600px;
  margin: 0 auto;
}
.bottom-sheet.open {
  bottom: 0;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 9999px;
  background: var(--neutral-300);
  margin: 0 auto 1rem;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.sheet-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neutral-900);
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--neutral-400);
}

.factors-section {
  margin-bottom: 1.25rem;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--neutral-600);
  margin-bottom: 0.5rem;
  display: block;
  letter-spacing: 0.03em;
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.mood-btn {
  background: var(--neutral-50);
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}
.mood-btn:hover {
  border-color: var(--emerald-400);
  background: #ffffff;
}
.mood-btn.selected {
  border-color: var(--emerald-600);
  background: var(--emerald-50);
}

.mood-emoji {
  font-size: 1.5rem;
}
.mood-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--neutral-700);
  text-align: center;
}

.factors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.factor-chip {
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--neutral-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}
.factor-chip:hover {
  border-color: var(--emerald-300);
  background: #ffffff;
}
.factor-chip.selected {
  background: var(--emerald-700);
  color: #ffffff;
  border-color: var(--emerald-800);
}

/* ==========================================================================
   Content & Utility Classes
   ========================================================================== */
.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.form-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--neutral-900);
  background: #ffffff;
}
.form-input:focus {
  outline: none;
  border-color: var(--emerald-600);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.775rem;
}
.btn-secondary {
  background: var(--neutral-100);
  color: var(--neutral-800);
  border-color: var(--neutral-300);
}
.btn-secondary:hover {
  background: var(--neutral-200);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--neutral-200);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    display: flex;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .pulse-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .announcement-sub {
    display: none;
  }
}
