/* ==========================================================================
   Chill Chess — Winter Chess Club Stylesheet
   ========================================================================== */

:root {
  /* Core Palette — Matched to hero.jpg deep winter navy */
  --bg-slate: #081c38;
  --bg-slate-deep: #041226;
  --bg-glass: rgba(11, 31, 61, 0.62);
  --bg-glass-hover: rgba(15, 39, 75, 0.76);
  --bg-glass-accent: rgba(142, 200, 246, 0.1);

  /* Ice Blues & Accents */
  --ice-100: #eaf6ff;
  --ice-200: #c5e4fb;
  --ice-300: #8ec8f6;
  --ice-400: #5eb0ef;
  --ice-glow: rgba(142, 200, 246, 0.22);

  /* Text Colors */
  --text-white: #f8fbff;
  --text-light: #dce7f2;
  --text-muted: #a4b7c9;

  /* Borders & Shadows */
  --border-frost: rgba(210, 234, 255, 0.16);
  --border-frost-strong: rgba(142, 200, 246, 0.36);
  --shadow-card: 0 16px 40px -12px rgba(10, 16, 22, 0.45);
  --shadow-subtle: 0 6px 20px -4px rgba(10, 16, 22, 0.3);

  /* Typography */
  --font-display: "Roboto Slab", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --max-width: 860px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-slate);
  background-image:
    radial-gradient(circle at 50% 10%, #0c2447 0%, #071a35 55%, #041328 100%);
  color: var(--text-light);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Subtle Winter Ambient Backdrop */
.winter-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}

.glow-top {
  width: 520px;
  height: 320px;
  background: radial-gradient(circle, rgba(142, 200, 246, 0.35), transparent 70%);
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
}

.glow-bottom {
  width: 460px;
  height: 300px;
  background: radial-gradient(circle, rgba(94, 176, 239, 0.2), transparent 70%);
  bottom: -100px;
  right: -80px;
}

/* Page Container */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.25rem 1.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ==========================================================================
   1. Header / Hero
   ========================================================================== */

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

.logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.25rem;
}

.hero-logo {
  width: 100%;
  max-width: 820px;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: 0 14px 36px rgba(2, 9, 20, 0.55);
  transition: transform 0.25s ease;
}

.hero-logo:hover {
  transform: translateY(-2px);
}

/* Fallback badge when logo.png hasn't been placed in root yet */
.logo-fallback {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: rgba(24, 34, 45, 0.72);
  border: 1px solid var(--border-frost-strong);
  box-shadow: var(--shadow-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  color: var(--ice-300);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-white);
  text-shadow: 0 3px 16px rgba(10, 16, 22, 0.35);
}

.hero-tagline {
  max-width: 580px;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--text-light);
  font-weight: 400;
}

.logistics-pill {
  margin-top: 0.5rem;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.75rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-pill);
  background: rgba(7, 22, 45, 0.72);
  border: 1px solid var(--border-frost);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-subtle);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ice-100);
}

.pill-dot {
  color: var(--ice-300);
  opacity: 0.85;
}

.pill-badge {
  background: rgba(142, 200, 246, 0.16);
  color: var(--ice-200);
  border: 1px solid rgba(142, 200, 246, 0.32);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Frosted Glass Containers & Shared Typography
   ========================================================================== */

.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-frost);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.section-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 1.85rem);
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-top: 0.25rem;
}

/* ==========================================================================
   2. Dynamic Next Meetup Card
   ========================================================================== */

.meetup-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.meetup-card {
  padding: 2rem 2.25rem;
  border-color: var(--border-frost-strong);
  background:
    linear-gradient(135deg, rgba(142, 200, 246, 0.12) 0%, rgba(10, 28, 56, 0.72) 100%);
  position: relative;
  overflow: hidden;
}

.meetup-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ice-300), transparent);
  opacity: 0.8;
}

.meetup-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ice-200);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #6ee7b7;
  box-shadow: 0 0 10px rgba(110, 231, 183, 0.8);
}

.season-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}

.meetup-header {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--text-white);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.highlight-ice {
  color: var(--ice-200);
}

.meetup-venue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.meetup-venue strong {
  color: var(--text-white);
  font-weight: 600;
}

.icon-inline {
  width: 18px;
  height: 18px;
  color: var(--ice-300);
  flex-shrink: 0;
}

.meetup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Dynamic Skipped-Sunday Footnote */
.meetup-footnote {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(7, 21, 44, 0.72);
  border: 1px solid rgba(197, 228, 251, 0.22);
  border-left: 3px solid var(--ice-300);
  color: var(--ice-100);
  font-size: 0.94rem;
}

.footnote-text {
  margin: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  transition:
    transform 0.15s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 2px solid var(--ice-200);
  outline-offset: 2px;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--ice-300);
  color: var(--bg-slate-deep);
  border: 1px solid transparent;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(142, 200, 246, 0.25);
}

.btn-primary:hover {
  background: var(--ice-200);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(142, 200, 246, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-white);
  border: 1px solid var(--border-frost-strong);
}

.btn-secondary:hover {
  background: rgba(142, 200, 246, 0.14);
  border-color: var(--ice-200);
  transform: translateY(-1px);
}

.btn-ice {
  background: linear-gradient(135deg, var(--ice-200) 0%, var(--ice-300) 100%);
  color: var(--bg-slate-deep);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 22px rgba(142, 200, 246, 0.28);
}

.btn-ice:hover {
  background: linear-gradient(135deg, var(--ice-100) 0%, var(--ice-200) 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(142, 200, 246, 0.4);
}

.btn-large {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  white-space: nowrap;
}

/* ==========================================================================
   3. Mailing List Section
   ========================================================================== */

.mailing-card {
  padding: 1.85rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background:
    linear-gradient(135deg, rgba(10, 28, 56, 0.72) 0%, rgba(142, 200, 246, 0.11) 100%);
}

.mailing-content {
  max-width: 500px;
}

.mailing-description {
  margin-top: 0.35rem;
  color: var(--text-light);
  font-size: 0.98rem;
}

/* ==========================================================================
   4. "What to Expect" / Club Vibe Section
   ========================================================================== */

.vibe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.vibe-card {
  padding: 1.5rem 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.vibe-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-frost-strong);
  background: var(--bg-glass-hover);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-glass-accent);
  border: 1px solid rgba(142, 200, 246, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ice-300);
  margin-bottom: 0.2rem;
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-white);
}

.card-text {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ==========================================================================
   5. Logistics & FAQ Section
   ========================================================================== */

.logistics-card {
  padding: 1.75rem 2.25rem;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.faq-term {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-bullet {
  color: var(--ice-300);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-detail {
  color: var(--text-light);
  font-size: 0.94rem;
  line-height: 1.55;
}

.faq-detail strong {
  color: var(--ice-100);
  font-weight: 600;
}

/* ==========================================================================
   6. Footer
   ========================================================================== */

.site-footer {
  margin-top: 0.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(210, 234, 255, 0.12);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.footer-link {
  color: var(--ice-200);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--text-white);
  text-decoration: underline;
}

.footer-divider {
  opacity: 0.5;
}

.footer-season {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 768px) {
  .page-wrapper {
    padding: 2.25rem 1.15rem 2.75rem;
    gap: 2rem;
  }

  .main-content {
    gap: 2rem;
  }

  .meetup-card,
  .mailing-card,
  .logistics-card {
    padding: 1.5rem 1.35rem;
  }

  .mailing-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .mailing-content {
    max-width: 100%;
  }

  .vibe-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .logistics-pill {
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .meetup-actions {
    flex-direction: column;
  }

  .meetup-actions .btn,
  .mailing-action .btn {
    width: 100%;
  }

  .pill-dot {
    display: none;
  }

  .logistics-pill {
    flex-direction: column;
    gap: 0.35rem;
  }
}
