/* Gather Guide — shared design system
 * Deep navy #0A1F4C primary, bright sky blue #3FA9F5 accent, white surfaces.
 * Used by every page via <link rel="stylesheet" href="/gg.css">.
 */

:root {
  /* Brand palette (extracted from Gatherguide_Logo.png) */
  --gg-navy: #0A1F4C;          /* primary brand color */
  --gg-navy-700: #08183A;      /* hover/active dark */
  --gg-navy-50: #EAF0FB;       /* very light navy tint */
  --gg-blue: #3FA9F5;          /* accent / bright sky blue */
  --gg-blue-600: #2A95E6;      /* hover */
  --gg-blue-50: #E6F4FE;       /* tint backgrounds */
  --gg-blue-100: #C7E5FB;      /* borders/dividers */
  --gg-white: #FFFFFF;
  --gg-surface: #F7FAFC;       /* page background (very light blue/gray) */
  --gg-card: #FFFFFF;
  --gg-card-hover: #F9FBFD;
  --gg-border: #E3EAF2;
  --gg-text: #0A1F4C;          /* primary text = navy */
  --gg-text-muted: #5B6B85;    /* secondary text */
  --gg-text-faint: #8A98AE;
  --gg-shadow: 0 1px 2px rgba(10, 31, 76, 0.04), 0 4px 12px rgba(10, 31, 76, 0.06);
  --gg-shadow-lg: 0 4px 12px rgba(10, 31, 76, 0.08), 0 12px 28px rgba(10, 31, 76, 0.10);
  --gg-radius-sm: 8px;
  --gg-radius: 12px;
  --gg-radius-lg: 16px;
  --gg-radius-xl: 24px;
  --gg-radius-full: 9999px;
  --gg-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gg-font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  font-family: var(--gg-font);
  color: var(--gg-text);
  background: var(--gg-surface);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a { color: var(--gg-blue); text-decoration: none; }
a:hover { color: var(--gg-blue-600); }

/* ---------- Header / Top nav ---------- */
.gg-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--gg-white);
  border-bottom: 1px solid var(--gg-border);
  box-shadow: 0 1px 0 rgba(10, 31, 76, 0.02);
}
.gg-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.gg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gg-text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.gg-brand:hover { color: var(--gg-text); }
.gg-brand-mark { width: 36px; height: 36px; }
.gg-brand-word { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.gg-brand-word .gather {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--gg-navy);
}
.gg-brand-word .guide {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: var(--gg-blue);
  padding-left: 2px;
}
.gg-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.gg-nav a {
  padding: 8px 14px;
  border-radius: var(--gg-radius-full);
  font-weight: 500;
  font-size: 14px;
  color: var(--gg-text-muted);
  transition: all 0.15s ease;
}
.gg-nav a:hover { background: var(--gg-blue-50); color: var(--gg-navy); }
.gg-nav a.active {
  background: var(--gg-navy);
  color: var(--gg-white);
}
.gg-nav a.active:hover { background: var(--gg-navy-700); color: var(--gg-white); }
.gg-nav-cta {
  background: var(--gg-blue) !important;
  color: var(--gg-white) !important;
  padding: 8px 16px !important;
  font-weight: 600 !important;
}
.gg-nav-cta:hover { background: var(--gg-blue-600) !important; color: var(--gg-white) !important; }
@media (max-width: 720px) {
  .gg-header-inner { padding: 12px 16px; }
  .gg-nav a { padding: 8px 10px; font-size: 13px; }
  .gg-nav-cta { padding: 8px 12px !important; }
}
@media (max-width: 520px) {
  .gg-nav { gap: 0; }
  .gg-nav a:not(.active):not(.gg-nav-cta) { display: none; }
}

/* ---------- Layout containers ---------- */
.gg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.gg-section { padding: 48px 0; }
.gg-section-tight { padding: 24px 0; }
@media (max-width: 720px) {
  .gg-container { padding: 0 16px; }
  .gg-section { padding: 32px 0; }
}

/* ---------- Hero ---------- */
.gg-hero {
  position: relative;
  background: linear-gradient(180deg, var(--gg-blue-50) 0%, var(--gg-white) 100%);
  padding: 64px 0 56px;
  overflow: hidden;
  isolation: isolate;
}
.gg-hero::before {
  /* Subtle oversized cross watermark — tied to logo's cross burst */
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--gg-blue) 0%, transparent 70%);
  opacity: 0.06;
  z-index: -1;
}
.gg-hero::after {
  /* Faint calendar grid pattern, very subtle */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--gg-blue-100) 1px, transparent 1px),
    linear-gradient(to bottom, var(--gg-blue-100) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  z-index: -1;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.gg-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .gg-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .gg-hero { padding: 40px 0 32px; }
}
.gg-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--gg-white);
  border: 1px solid var(--gg-border);
  border-radius: var(--gg-radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gg-blue);
  margin-bottom: 16px;
}
.gg-hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gg-blue);
  box-shadow: 0 0 0 4px var(--gg-blue-50);
}
.gg-hero h1 {
  font-family: var(--gg-font-display);
  font-size: 52px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--gg-navy);
  margin: 0 0 16px;
}
.gg-hero h1 .accent { color: var(--gg-blue); }
.gg-hero p.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--gg-text-muted);
  max-width: 540px;
  margin: 0 0 28px;
}
.gg-hero-search {
  display: flex;
  background: var(--gg-white);
  border-radius: var(--gg-radius-lg);
  box-shadow: var(--gg-shadow);
  border: 1px solid var(--gg-border);
  overflow: hidden;
  max-width: 560px;
}
.gg-hero-search .gg-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-right: 1px solid var(--gg-border);
}
.gg-hero-search .gg-field:last-of-type { border-right: none; }
.gg-hero-search .gg-field input {
  flex: 1; border: none; outline: none; padding: 16px 0;
  font-family: inherit; font-size: 15px; color: var(--gg-text);
  background: transparent;
}
.gg-hero-search .gg-field input::placeholder { color: var(--gg-text-faint); }
.gg-hero-search .gg-field .icon {
  font-size: 20px; color: var(--gg-text-faint);
  font-family: 'Material Symbols Outlined';
  font-weight: 400;
}
.gg-hero-search button {
  padding: 0 28px;
  background: var(--gg-blue);
  color: var(--gg-white);
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.gg-hero-search button:hover { background: var(--gg-blue-600); }
@media (max-width: 560px) {
  .gg-hero-search { flex-direction: column; }
  .gg-hero-search .gg-field { border-right: none; border-bottom: 1px solid var(--gg-border); }
  .gg-hero-search .gg-field:last-of-type { border-bottom: none; }
  .gg-hero-search button { padding: 16px; }
}
.gg-hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.gg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--gg-radius-full);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.gg-btn-primary { background: var(--gg-blue); color: var(--gg-white); }
.gg-btn-primary:hover { background: var(--gg-blue-600); color: var(--gg-white); transform: translateY(-1px); }
.gg-btn-secondary {
  background: var(--gg-white);
  color: var(--gg-navy);
  border: 1px solid var(--gg-border);
}
.gg-btn-secondary:hover { background: var(--gg-blue-50); color: var(--gg-navy); border-color: var(--gg-blue-100); }
.gg-hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gg-border);
  flex-wrap: wrap;
}
.gg-hero-stat .num {
  font-size: 24px;
  font-weight: 800;
  color: var(--gg-navy);
  letter-spacing: -0.02em;
}
.gg-hero-stat .lbl {
  font-size: 13px;
  color: var(--gg-text-muted);
  margin-top: 2px;
}

/* Hero visual: large calendar tile */
.gg-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}
.gg-hero-cal {
  width: 320px;
  height: 320px;
  border-radius: var(--gg-radius-xl);
  background: var(--gg-white);
  box-shadow: var(--gg-shadow-lg);
  padding: 24px;
  position: relative;
  transform: rotate(-3deg);
  border: 1px solid var(--gg-border);
}
.gg-hero-cal-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.gg-hero-cal-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--gg-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gg-white);
  font-weight: 700;
  font-size: 16px;
}
.gg-hero-cal-cell.highlight {
  background: var(--gg-blue);
  box-shadow: 0 4px 14px rgba(63, 169, 245, 0.4);
}
.gg-hero-cal-cell.empty {
  background: var(--gg-blue-50);
  color: var(--gg-blue);
}
.gg-hero-cal-month {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gg-blue);
  text-transform: uppercase;
  padding-top: 8px;
  border-bottom: 1px solid var(--gg-border);
  padding-bottom: 12px;
}
.gg-hero-cal-today {
  position: absolute;
  bottom: 24px;
  right: -16px;
  background: var(--gg-navy);
  color: var(--gg-white);
  padding: 12px 18px;
  border-radius: var(--gg-radius);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--gg-shadow);
  transform: rotate(3deg);
}
.gg-hero-cal-today .num { font-size: 20px; font-weight: 800; display: block; }

/* ---------- Category pills ---------- */
.gg-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gg-pills::-webkit-scrollbar { display: none; }
.gg-pill {
  flex: 0 0 auto;
  padding: 8px 16px;
  background: var(--gg-white);
  color: var(--gg-text-muted);
  border: 1px solid var(--gg-border);
  border-radius: var(--gg-radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.gg-pill:hover { border-color: var(--gg-blue); color: var(--gg-navy); }
.gg-pill.active {
  background: var(--gg-blue);
  color: var(--gg-white);
  border-color: var(--gg-blue);
}

/* ---------- Section header ---------- */
.gg-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.gg-section-head h2 {
  font-family: var(--gg-font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--gg-navy);
  letter-spacing: -0.02em;
  margin: 0;
}
.gg-section-head p { color: var(--gg-text-muted); margin: 4px 0 0; font-size: 14px; }
.gg-section-head .gg-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--gg-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.gg-section-head .gg-link:hover { color: var(--gg-blue-600); }

/* ---------- Event cards ---------- */
.gg-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.gg-event-card {
  background: var(--gg-card);
  border: 1px solid var(--gg-border);
  border-radius: var(--gg-radius-lg);
  padding: 18px;
  display: flex;
  gap: 14px;
  transition: all 0.15s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow: 0 1px 2px rgba(10, 31, 76, 0.03);
}
.gg-event-card:hover {
  border-color: var(--gg-blue);
  box-shadow: var(--gg-shadow);
  transform: translateY(-2px);
  color: inherit;
}
.gg-event-date {
  flex: 0 0 56px;
  height: 64px;
  border-radius: var(--gg-radius);
  background: var(--gg-blue-50);
  border: 1px solid var(--gg-blue-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gg-navy);
  font-weight: 700;
  line-height: 1;
}
.gg-event-date .month {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gg-blue);
  margin-bottom: 4px;
}
.gg-event-date .day {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.gg-event-date.happening-today {
  background: var(--gg-blue);
  border-color: var(--gg-blue);
  color: var(--gg-white);
}
.gg-event-date.happening-today .month { color: var(--gg-white); }
.gg-event-body { flex: 1; min-width: 0; }
.gg-event-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gg-blue);
  margin-bottom: 4px;
}
.gg-event-meta .cat-pill {
  background: var(--gg-blue-50);
  color: var(--gg-blue);
  padding: 2px 8px;
  border-radius: var(--gg-radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gg-event-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gg-navy);
  margin: 0 0 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gg-event-where,
.gg-event-when {
  font-size: 13px;
  color: var(--gg-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0;
}
.gg-event-where .icon,
.gg-event-when .icon {
  font-family: 'Material Symbols Outlined';
  font-size: 14px;
  color: var(--gg-text-faint);
}

/* ---------- Heart (save to My Calendar) ---------- */
.gg-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gg-white);
  border: 1px solid var(--gg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(10, 31, 76, 0.05);
}
.gg-heart:hover { transform: scale(1.08); border-color: var(--gg-blue); }
.gg-heart .icon {
  font-family: 'Material Symbols Outlined';
  font-size: 18px;
  color: var(--gg-text-faint);
}
.gg-heart.saved .icon {
  color: var(--gg-blue);
  font-variation-settings: 'FILL' 1;
}
.gg-heart.saved {
  background: var(--gg-blue-50);
  border-color: var(--gg-blue);
}

/* ---------- Loading / empty ---------- */
.gg-loading, .gg-empty {
  padding: 32px;
  text-align: center;
  color: var(--gg-text-muted);
  font-size: 14px;
  background: var(--gg-white);
  border: 1px dashed var(--gg-border);
  border-radius: var(--gg-radius-lg);
}

/* ---------- Footer ---------- */
.gg-footer {
  background: var(--gg-navy);
  color: var(--gg-blue-100);
  padding: 48px 0;
  margin-top: 64px;
}
.gg-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 720px) {
  .gg-footer-inner { grid-template-columns: 1fr 1fr; }
}
.gg-footer h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gg-blue);
  margin: 0 0 16px;
}
.gg-footer .brand-line {
  font-size: 22px;
  font-weight: 800;
  color: var(--gg-white);
  margin-bottom: 8px;
}
.gg-footer .brand-sub {
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--gg-blue);
  margin-bottom: 16px;
}
.gg-footer .tagline {
  color: var(--gg-blue-100);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.5;
}
.gg-footer ul { list-style: none; padding: 0; margin: 0; }
.gg-footer li { margin-bottom: 8px; }
.gg-footer a {
  color: var(--gg-blue-100);
  font-size: 14px;
  transition: color 0.15s ease;
}
.gg-footer a:hover { color: var(--gg-white); }
.gg-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 32px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--gg-blue-100);
  font-size: 13px;
}

/* ---------- Forms ---------- */
.gg-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gg-border);
  border-radius: var(--gg-radius);
  font-family: inherit;
  font-size: 15px;
  color: var(--gg-text);
  background: var(--gg-white);
  transition: border-color 0.15s ease;
}
.gg-input:focus { outline: none; border-color: var(--gg-blue); box-shadow: 0 0 0 3px var(--gg-blue-50); }

/* ---------- Bottom mobile nav (kept for parity, refined) ---------- */
.gg-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--gg-white);
  border-top: 1px solid var(--gg-border);
  display: none;
  padding: 8px 12px env(safe-area-inset-bottom, 8px);
  box-shadow: 0 -2px 12px rgba(10, 31, 76, 0.06);
}
@media (max-width: 720px) {
  .gg-bottom-nav { display: flex; justify-content: space-around; }
  body { padding-bottom: 72px; }
}
.gg-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  color: var(--gg-text-muted);
  border-radius: var(--gg-radius);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}
.gg-bottom-nav a .icon {
  font-family: 'Material Symbols Outlined';
  font-size: 22px;
  font-variation-settings: 'FILL' 0, 'wght' 400;
}
.gg-bottom-nav a.active {
  color: var(--gg-blue);
}
.gg-bottom-nav a.active .icon { font-variation-settings: 'FILL' 1; }
.gg-bottom-nav a.active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 3px;
  background: var(--gg-blue);
  border-radius: 0 0 3px 3px;
}
.gg-bottom-nav a { position: relative; }
.gg-bottom-nav .badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 16px);
  background: var(--gg-blue);
  color: var(--gg-white);
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--gg-radius-full);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gg-bottom-nav .badge.hidden { display: none; }

/* ---------- Utility ---------- */
.gg-row { display: flex; gap: 16px; align-items: center; }
.gg-stack { display: flex; flex-direction: column; gap: 16px; }
.gg-hidden { display: none !important; }
.gg-mb-md { margin-bottom: 24px; }
.gg-mb-lg { margin-bottom: 48px; }
.gg-text-center { text-align: center; }
.gg-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
