/* ============================================================
   MUNICH RUN CLUBS — runclubs-style.css
   Aesthetic: Race bib meets streetwear zine.
   High contrast, condensed type, electric lime accent.
   Bold grid, tight spacing, fast feel.
   ============================================================ */

/* ---- VARIABLES ---- */
:root {
  --ink:         #0a0a0a;
  --ink-soft:    #1c1c1c;
  --paper:       #f8f6f2;
  --paper-warm:  #f0ece4;
  --border:      #d8d3ca;
  --border-dark: #2a2a2a;
  --lime:        #c8f135;   /* electric lime — the hero accent */
  --lime-dark:   #a8d020;
  --muted:       #7a7570;
  --white:       #ffffff;

  /* Vibe tag colors */
  --vibe-social:      #3b82f6;
  --vibe-performance: #ef4444;
  --vibe-beginner:    #22c55e;
  --vibe-aesthetic:   #a855f7;
  --vibe-creative:    #f59e0b;
  --vibe-hype:        #ec4899;
  --vibe-local:       #14b8a6;
  --vibe-earlybird:   #f97316;
  --vibe-mindset:     #6366f1;

  --font-display: 'Barlow Condensed', 'Impact', sans-serif;
  --font-body:    'Barlow', 'Helvetica Neue', sans-serif;

  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  14px;
  --max-w:      1200px;
  --col-gap:    20px;
  --transition: 0.18s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

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

/* ---- LAYOUT ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

/* Diagonal stripe pattern — race bib energy */
.hero-bg-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 60px,
    rgba(200, 241, 53, 0.04) 60px,
    rgba(200, 241, 53, 0.04) 61px
  );
  pointer-events: none;
}

/* Big ghost text behind */
.hero::after {
  content: 'RUN';
  position: absolute;
  right: -30px;
  bottom: -60px;
  font-family: var(--font-display);
  font-size: clamp(240px, 35vw, 480px);
  font-weight: 900;
  line-height: 0.85;
  color: rgba(255,255,255,0.03);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 100px 24px 80px;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 20px;
  animation: fadeUp 0.5s ease both;
}

h1 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
}

.h1-top {
  font-size: clamp(72px, 14vw, 160px);
  color: var(--white);
  animation: fadeUp 0.5s 0.08s ease both;
}

.h1-bottom {
  font-size: clamp(72px, 14vw, 160px);
  color: var(--lime);
  animation: fadeUp 0.5s 0.16s ease both;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 300;
  color: rgba(255,255,255,0.62);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 36px;
  animation: fadeUp 0.5s 0.24s ease both;
}

/* Quick filter tags */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 60px;
  animation: fadeUp 0.5s 0.32s ease both;
}

.hero-tags span {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.75);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.hero-tags span:hover {
  background: rgba(200, 241, 53, 0.12);
  border-color: var(--lime);
  color: var(--lime);
}

.hero-scroll-cue {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  animation: fadeUp 0.5s 0.4s ease both, nudge 2s 1.2s ease-in-out infinite;
}

/* ============================================================
   INTRO STRIP
   ============================================================ */
.intro-strip {
  background: var(--lime);
  padding: 28px 0;
  overflow: hidden;
}

.intro-inner p {
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  max-width: 760px;
}

.intro-inner p strong {
  font-weight: 700;
}

/* ============================================================
   CLUBS SECTION
   ============================================================ */
.clubs-section {
  padding: 72px 24px 80px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.92;
  color: var(--ink);
  margin-bottom: 10px;
}

.section-sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 48px;
  font-weight: 400;
}

/* ---- GRID ---- */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--col-gap);
}

@media (max-width: 1024px) {
  .clubs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .clubs-grid { grid-template-columns: 1fr; }
}

/* ---- CLUB CARD ---- */
.club-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

/* Left accent bar on hover */
.club-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--lime);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.22s ease;
  border-radius: 3px 0 0 3px;
}

.club-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
}

.club-card:hover::before {
  transform: scaleY(1);
}

/* Highlighted card variant */
.club-card.card-highlight {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.club-card.card-highlight::before {
  background: var(--lime);
}

.club-card.card-highlight .card-desc,
.club-card.card-highlight .card-meta li {
  color: rgba(255,255,255,0.7);
}

.club-card.card-highlight .card-meta a {
  color: var(--lime);
}

.club-card.card-highlight h3 {
  color: var(--white);
}

/* Card top row */
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.card-highlight .card-num {
  color: rgba(255,255,255,0.4);
}

/* Vibe badges */
.card-vibe {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 20px;
}

.vibe-social      { background: rgba(59,130,246,0.1);  color: var(--vibe-social); }
.vibe-performance { background: rgba(239,68,68,0.1);   color: var(--vibe-performance); }
.vibe-beginner    { background: rgba(34,197,94,0.12);  color: var(--vibe-beginner); }
.vibe-aesthetic   { background: rgba(168,85,247,0.1);  color: var(--vibe-aesthetic); }
.vibe-creative    { background: rgba(245,158,11,0.12); color: var(--vibe-creative); }
.vibe-hype        { background: rgba(236,72,153,0.1);  color: var(--vibe-hype); }
.vibe-local       { background: rgba(20,184,166,0.1);  color: var(--vibe-local); }
.vibe-earlybird   { background: rgba(249,115,22,0.1);  color: var(--vibe-earlybird); }
.vibe-mindset     { background: rgba(99,102,241,0.1);  color: var(--vibe-mindset); }

/* Club name */
.club-card h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 10px;
}

.card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.62;
  margin-bottom: 18px;
  flex: 1;
}

.card-desc em {
  font-style: italic;
  color: var(--ink-soft);
}

/* Meta list */
.card-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.club-card.card-highlight .card-meta {
  border-top-color: rgba(255,255,255,0.1);
}

.card-meta li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.meta-icon {
  font-size: 14px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  margin-top: 1px;
}

/* ---- LINK MENTION COMPONENT ---- */
/* Notion-style compact link card */
.link-mention {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--paper-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 8px 3px 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.link-mention:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--lime);
}

.card-highlight .link-mention {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--lime);
}

.card-highlight .link-mention:hover {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.link-mention-favicon {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  object-fit: contain;
}

.link-mention-favicon-fallback {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.link-mention-title {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-mention-sep {
  opacity: 0.35;
  font-weight: 400;
  flex-shrink: 0;
}

.link-mention-site {
  opacity: 0.55;
  font-weight: 400;
  flex-shrink: 0;
  font-size: 11.5px;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  background: var(--paper-warm);
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  padding: 72px 0;
}

.faq-section h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 40px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 680px) {
  .faq-grid { grid-template-columns: 1fr; }
}

.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: var(--ink);
}

.faq-item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 10px;
}

.faq-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   SCHEDULE CTA
   ============================================================ */
.schedule-cta {
  background: var(--ink);
  padding: 72px 0;
  text-align: center;
}

.schedule-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.schedule-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.schedule-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 0.95;
  margin-bottom: 6px;
}

.schedule-cta p {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.btn-schedule {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 36px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

.btn-schedule:hover {
  background: var(--lime-dark);
  transform: scale(1.03);
}

/* ============================================================
   LOOPS CTA
   ============================================================ */
.loops-cta {
  background: var(--paper);
  border-top: 1.5px solid var(--border);
  padding: 88px 0;
}

.loops-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 820px) {
  .loops-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.loops-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lime-dark);
  border: 1.5px solid var(--lime-dark);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.loops-text h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 18px;
}

.loops-text p {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 440px;
}

.loops-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 32px;
}

.loops-features li {
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-loops {
  display: inline-block;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-loops:hover {
  background: var(--lime);
  color: var(--ink);
  transform: scale(1.03);
}

/* Decorative visual block */
.loops-visual {
  background: var(--ink);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.loops-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(200, 241, 53, 0.04) 20px,
    rgba(200, 241, 53, 0.04) 21px
  );
}

.loops-badge-big {
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--lime);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.loops-tagline {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  position: relative;
  z-index: 1;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink-soft);
  border-top: 1.5px solid rgba(255,255,255,0.06);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.site-footer p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.32);
  line-height: 1.5;
}

.footer-links {
  font-size: 12.5px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--lime);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* Card scroll-reveal */
.club-card {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    border-color var(--transition),
    box-shadow var(--transition);
}

.club-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger via nth-child within each row of 3 */
.club-card:nth-child(3n+2) { transition-delay: 0.07s; }
.club-card:nth-child(3n+3) { transition-delay: 0.14s; }

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 480px) {
  .hero-inner { padding: 80px 20px 60px; }
  .clubs-section { padding: 48px 20px 60px; }
  .loops-cta { padding: 60px 0; }
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
