/* SBC Club pages: one shared look for every page (forum, reviews, events...).
   The website's header, menu, fonts and blue gradient, with the app's grey
   cards, gold capitals and Cormorant title. Change it here, once. */

:root {
  --page-top: #242a2e;           /* website: background gradient */
  --page-bottom: #193b71;
  --title: #CBC6C6;              /* app: club title */
  --gold: #E9A83E;               /* app: gold capitals */
  --accent: #2B9EF0;             /* app: page names */
  --card: rgba(189, 183, 183, 0.88); /* app: grey cards */
  --card-text: #000;
  --card-link: #154C82;
  --muted: #9aa3ad;
  --field: rgba(255, 255, 255, 0.06);
  --field-border: rgba(203, 198, 198, 0.35);
  --error: #F0A0A0;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #333 linear-gradient(135deg, var(--page-top) 0%, var(--page-bottom) 100%) fixed;
  color: #e8e8e8;
  font-family: Merriweather, Georgia, serif;
  font-weight: 300;
  line-height: 1.75;
}
a { color: inherit; }

/* ---------- header: same picture, logo and menu as the website ---------- */
.site-header {
  position: relative;
  text-align: center;
  padding: 56px 16px 30px;
  background: url(../images/header.jpg) 46% 45% / cover no-repeat;
}
.site-header::after { /* darkens the bottom so the menu reads */
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55));
}
.site-header > * { position: relative; z-index: 1; }
.site-header .logo { width: 92px; height: auto; display: block; margin: 0 auto 6px; }
.club-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--title);
  font-size: clamp(30px, 6vw, 56px);
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin: 0 0 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.club-title a { text-decoration: none; }
.menu {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 4px 26px;
  margin: 0; padding: 0; list-style: none;
  font-size: 15px;
}
.menu a { text-decoration: none; color: #fff; }
.menu a:hover, .menu a[aria-current] { color: var(--gold); }

/* drop-downs, like the website's: open on hover, or by tapping the arrow */
.site-header { z-index: 5; }
.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle {
  background: none; border: 0; padding: 0 0 0 3px; margin: 0;
  color: #fff; cursor: pointer; line-height: 0;
}
.sub-toggle svg { width: 11px; height: 11px; transition: transform 0.15s; }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.submenu {
  display: none;
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 190px; margin: 0; padding: 8px 0; list-style: none;
  background: rgba(20, 30, 44, 0.97);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  text-align: left; z-index: 10;
}
.submenu::before { /* invisible bridge so the menu stays open on the way down */
  content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px;
}
.submenu a { display: block; padding: 6px 18px; font-size: 14px; white-space: nowrap; }
.submenu a:hover { background: rgba(255,255,255,0.06); }
.has-sub.open > .submenu { display: block; }
@media (hover: hover) {
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: block; }
}
.account-bar {
  position: absolute; top: 12px; right: 16px; z-index: 2;
  font-family: Montserrat, sans-serif; font-size: 13px; color: #fff;
}
.account-bar button { margin-left: 8px; }

/* ---------- page body ---------- */
main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 34px 16px 56px; }
.page-name {
  font-family: Cinzel, serif;
  color: var(--accent);
  font-size: 30px;
  letter-spacing: 1px;
  text-align: center;
  margin: 0 0 6px;
}
.page-intro { text-align: center; color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.gold-caps {
  font-family: Cinzel, serif; color: var(--gold);
  letter-spacing: 1.5px; font-size: 14px; text-transform: uppercase;
}

/* ---------- the app's grey cards ---------- */
.card {
  background: var(--card);
  color: var(--card-text);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 16px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.55;
}
.card a { color: var(--card-link); }
.badge-card { display: flex; gap: 18px; align-items: flex-start; }
.badge {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #2a5f98, #0f2a4d);
  box-shadow: 0 0 14px rgba(159, 208, 255, 0.55);
  display: grid; place-items: center;
}
.badge svg { width: 30px; height: 30px; stroke: #9FD0FF; }
.card h2 {
  font-family: Cinzel, serif; font-weight: 700;
  font-size: 19px; margin: 2px 0 2px; color: #000; line-height: 1.3;
}
.when { color: var(--card-link); font-weight: 600; margin: 0 0 6px; }
.card p { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tag {
  border: 1px solid rgba(0,0,0,0.45); border-radius: 999px;
  padding: 0 10px; font-size: 12px; line-height: 20px;
}
.card-actions { border-top: 1px solid rgba(0,0,0,0.25); margin-top: 12px; padding-top: 10px; }

/* ---------- buttons and forms (the app's sign-in look) ---------- */
.button, button {
  font-family: Montserrat, sans-serif; font-weight: 600;
  font-size: 14px; letter-spacing: 0.5px;
  background: var(--gold); color: #1b1b1b;
  border: 0; border-radius: 999px; padding: 10px 22px; cursor: pointer;
}
.button.quiet, button.quiet {
  background: transparent; color: inherit;
  border: 1px solid currentColor; padding: 5px 14px; font-size: 12.5px;
}
.card .button.quiet { color: var(--card-link); }
.signin { max-width: 380px; margin: 0 auto; text-align: center; }
.signin label { display: block; text-align: left; font-size: 13px; color: var(--muted); margin: 14px 0 4px; }
.signin input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--field); border: 1px solid var(--field-border);
  color: #fff; font: 16px 'Open Sans', sans-serif;
}
.signin button { margin-top: 22px; width: 100%; padding: 13px; }
.form-error { color: var(--error); margin: 12px 0 0; min-height: 1.5em; font-size: 14px; }
.small { font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  text-align: center; padding: 26px 16px;
  background: rgba(0,0,0,0.25);
  font-size: 13px; color: var(--muted);
}
.site-footer a { margin: 0 8px; }

/* ---------- phones: hamburger menu ---------- */
.menu-button, .menu-close { display: none; }

@media (max-width: 760px) {
  .menu-button {
    display: grid; place-items: center;
    margin: -4px auto 0; /* centred under the club title */
    width: 44px; height: 44px; padding: 0;
    background: rgba(0,0,0,0.35); color: #fff;
    border: 1px solid rgba(255,255,255,0.25); border-radius: 10px;
  }
  .menu-button svg, .menu-close svg { width: 24px; height: 24px; }

  /* the menu becomes a full-screen panel, hidden until the button is tapped */
  #main-menu {
    display: none;
    position: fixed; inset: 0; z-index: 50;
    overflow-y: auto;
    padding: 76px 28px 40px;
    background: linear-gradient(135deg, var(--page-top) 0%, var(--page-bottom) 100%);
    text-align: left;
  }
  body.menu-open { overflow: hidden; }
  body.menu-open #main-menu { display: block; }
  .menu-close {
    display: grid; place-items: center;
    position: absolute; top: 14px; right: 14px;
    width: 44px; height: 44px; padding: 0;
    background: none; color: #fff; border: 0;
  }
  .menu { flex-direction: column; flex-wrap: nowrap; gap: 0; font-size: 19px; }
  .menu > li { border-bottom: 1px solid rgba(255,255,255,0.12); }
  .menu a { display: block; padding: 12px 0; }
  .has-sub { flex-wrap: wrap; justify-content: space-between; }
  .has-sub > a { flex: 1; }
  .sub-toggle { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; }
  .sub-toggle svg { width: 16px; height: 16px; }
  .submenu {
    position: static; transform: none; width: 100%;
    background: none; border: 0; box-shadow: none; border-radius: 0;
    padding: 0 0 10px 16px;
  }
  .submenu::before { display: none; }
  .submenu a { font-size: 16px; padding: 8px 0; color: rgba(255,255,255,0.85); }
  .submenu a:hover { background: none; }
}

@media (max-width: 560px) {
  .badge { width: 48px; height: 48px; }
  .badge svg { width: 24px; height: 24px; }
  .account-bar { top: 20px; }
}

/* "Coming soon" label on a card */
.card .coming-soon {
  display: inline-block; margin: 0 0 6px;
  background: var(--gold); color: #1b1b1b; /* the app's bright gold, with dark text so it reads on the grey card */
  font-weight: 700; font-size: 12px; line-height: 1;
  padding: 6px 10px 5px; border-radius: 999px;
}
