/* MuseNest Club — shared styles
   Loaded on every club page via views/club/_partials/head.ejs
   ------------------------------------------------------------------ */

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

:root {
  --bg:          #0e0d0b;
  --bg-card:     #171613;
  --bg-card-2:   #1e1c19;
  --bg-panel:    #242220;
  --border:      rgba(255,255,255,.07);
  --border-2:    rgba(255,255,255,.11);
  --text:        #f4efe8;
  --text-muted:  #968f84;
  --text-dim:    #635d55;
  --gold:        #c8924a;
  --gold-light:  #e0a85e;
  --gold-btn:    linear-gradient(135deg, #d4975a 0%, #b87a38 100%);
  --gold-btn-h:  linear-gradient(135deg, #e0a86a 0%, #c4884a 100%);
  --pink:        #e36f86;
  --pink-light:  #ff8aa2;
  --pink-dark:   #c65b73;

  /* Text on gold/accent surfaces */
  --on-accent:   #fff;
  /* Muted nav link color */
  --text-nav:    #c2b9ae;
  /* Translucent nav background (= --bg at 90%) */
  --bg-nav:      rgba(14, 13, 11, .9);
  /* White base for translucent "glass" tints (used via color-mix) */
  --glass:       #fff;
  /* Glass surfaces / borders */
  --surface-glass:       rgba(255, 255, 255, .05);
  --border-glass:        rgba(255, 255, 255, .10);
  --border-glass-strong: rgba(255, 255, 255, .20);
  /* Brand wordmark gradients */
  --brand-main-grad:   linear-gradient(135deg, #fff7ec 0%, #d9c2a2 100%);
  --brand-accent-grad: linear-gradient(135deg, var(--pink-light) 0%, var(--pink-dark) 100%);

  /* Semantic status (published/locked badges etc.) */
  --success:   #6ee7b7;
  --danger:    #f87171;
  --danger-bg: #ef4444;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── Brand logo ────────────────────────────────────────────────────── */
.brand-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1;
}
.brand-main {
  background: var(--brand-main-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-accent {
  background: var(--brand-accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Nav ───────────────────────────────────────────────────────────── */
.club-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.club-nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: .85rem 1.5rem;
  display: flex; align-items: center; gap: 2rem;
}
.club-nav-links {
  display: flex; align-items: center; gap: 1.75rem;
  flex: 1;
}
.club-nav-links a {
  color: var(--text-nav); font-size: .9rem; font-weight: 500;
  transition: color .15s;
}
.club-nav-links a:hover { color: var(--text); }
.club-nav-links a.active {
  color: var(--text);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 1px;
}
.btn-apply {
  background: var(--gold-btn);
  color: var(--on-accent) !important; font-size: .88rem; font-weight: 600;
  padding: .55rem 1.15rem; border-radius: .45rem;
  white-space: nowrap;
  transition: background .15s;
  display: inline-block;
}
.btn-apply:hover { background: var(--gold-btn-h); }
.club-nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px; margin-left: auto;
}
.club-nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
}
.club-nav-mobile {
  display: none; flex-direction: column; gap: .35rem;
  padding: 0 1.5rem 1rem;
}
.club-nav-mobile a { color: var(--text-nav); font-size: .95rem; padding: .4rem 0; }
.nav-open .club-nav-mobile { display: flex; }

@media (max-width: 780px) {
  .club-nav-links { display: none; }
  .club-nav-hamburger { display: flex; }
  .btn-apply.nav-apply { display: none; }
}

/* ── Page container ────────────────────────────────────────────────── */
.club-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.club-page-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* ── Headings ──────────────────────────────────────────────────────── */
.club-page h1, .club-page-narrow h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
  margin-bottom: 1rem;
}
.club-page h2, .club-page-narrow h2 {
  font-size: 1.15rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: .6rem;
}
.club-page p, .club-page-narrow p,
.club-page li, .club-page-narrow li {
  color: var(--text-muted); line-height: 1.7; font-size: .93rem;
}
.club-page ul, .club-page-narrow ul,
.club-page ol, .club-page-narrow ol { padding-left: 1.4rem; }

/* ── Shared callout ─────────────────────────────────────────────────── */
.club-callout {
  background: var(--bg-card); border: 1px solid var(--border-2);
  border-radius: .75rem; padding: 1.25rem 1.5rem; margin: 1.5rem 0;
  font-size: .88rem; line-height: 1.65; color: var(--text-muted);
}
.club-callout strong { color: var(--text); }

/* ── Shared buttons ─────────────────────────────────────────────────── */
.btn-club-primary {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--gold-btn);
  color: var(--on-accent); font-weight: 600; font-size: .9rem;
  padding: .72rem 1.4rem; border-radius: .5rem;
  margin-top: 1.25rem;
  transition: background .15s;
}
.btn-club-primary:hover { background: var(--gold-btn-h); color: var(--on-accent); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.club-footer-full {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 3.5rem 1.5rem 0;
  margin-top: 4rem;
}
.club-footer-columns {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand-col .brand-logo { margin-bottom: .75rem; }
.footer-brand-desc {
  font-size: .8rem; color: var(--text-muted); line-height: 1.6;
  max-width: 240px; margin-bottom: 1.25rem;
}
.footer-social { display: flex; gap: .5rem; }
.social-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-glass); border: 1px solid var(--border-glass);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: color .15s, border-color .15s;
}
.social-icon:hover { color: var(--text); border-color: var(--border-glass-strong); }
.footer-link-col { display: flex; flex-direction: column; gap: .55rem; }
.footer-col-heading {
  font-size: .78rem; font-weight: 700; color: var(--text);
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: .35rem;
}
.footer-link-col a {
  font-size: .83rem; color: var(--text-muted); transition: color .15s;
}
.footer-link-col a:hover { color: var(--text); }
.club-footer-bottom {
  max-width: 1100px; margin: 0 auto;
  padding: 1.25rem 0 2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: .5rem; font-size: .72rem; color: var(--text-dim);
}

@media (max-width: 900px) {
  .club-footer-columns { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .club-footer-columns { grid-template-columns: 1fr; }
  .footer-brand-col { grid-column: auto; }
}
