/* ==========================================================================
   Club card v2 — Classic above the artwork, Next below, each with its own
   happy hour. Loaded AFTER styles.css so the approved design file stays
   byte-identical to the handover package; everything here is an override.

   Layout:  [ Holla Classic + holla.africa happy hour ]
            [ club artwork, name overlaid ]
            [ Holla Next    + hollaafrica.win happy hour ]

   Buttons are deliberately DARK with a club-colour edge and label: bright
   colour on near-black reads far harder than the previous light fills, and
   it lets the club colour identify the card without shouting.
   ========================================================================== */

.club-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #05070a, #090b10 55%, #05070a);
  border-color: color-mix(in srgb, var(--club-color) 30%, #14171d);
}

/* Colour bleed from the club, strongest behind the artwork. */
.club-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 65% at 50% 50%, color-mix(in srgb, var(--club-color) 11%, transparent), transparent 70%);
  opacity: .75;
  transition: opacity .25s ease;
  z-index: 0;
}
.unified-grid .club-card { position: relative; }
.unified-grid .club-card:focus-within::after,
.unified-grid .club-card:hover::after { opacity: 1; }

/* ---------- artwork + name ---------- */
.club-card .club-art {
  position: relative;
  order: 0;
  flex: 1 1 auto;
  z-index: 1;
  padding: 2px 0;
}
.club-card .club-art > img { position: relative; z-index: 1; }

/* Name sits on the artwork so the card stays compact with two buttons. */
.club-card .club-art > h3 {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 26px 12px 9px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .95), 0 0 22px color-mix(in srgb, var(--club-color) 45%, transparent);
  background: linear-gradient(180deg, transparent, rgba(3, 5, 9, .82) 62%, #05070a);
}

/* ---------- the two buttons ---------- */
.club-card .club-option {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
  min-height: 52px;
  padding: 9px 11px;
  margin: 0;
  white-space: normal;
  text-decoration: none;
  transition: transform .16s ease, filter .16s ease;
}
.club-card .old-option { order: -1; }   /* ABOVE the artwork */
.club-card .new-option { order: 1; }    /* BELOW the artwork */

/* The design paints the visible button surface on ::after (a light gradient),
   with ::before as the outer edge behind it. So ::after is the layer that has to
   go dark — overriding only ::before leaves the original bright fill on top. */
.club-card .club-option::before {
  background: color-mix(in srgb, var(--club-color) 46%, #05070a);
  transition: background .2s ease;
}
.club-card .club-option::after {
  background: linear-gradient(150deg, color-mix(in srgb, var(--club-color) 17%, #06080d), #05070b 68%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: background .2s ease, box-shadow .2s ease;
}
/* Next is the newer experience — give it slightly more colour than Classic. */
.club-card .new-option::after {
  background: linear-gradient(150deg, color-mix(in srgb, var(--club-color) 26%, #06080d), #05070b 70%);
}
.club-card .club-option:hover::before,
.club-card .club-option:focus-visible::before {
  background: var(--club-color);
}
.club-card .club-option:hover::after,
.club-card .club-option:focus-visible::after {
  background: linear-gradient(150deg, color-mix(in srgb, var(--club-color) 34%, #06080d), #070a11 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.club-card .club-option:hover { transform: translateY(-1px); filter: none; }

.club-card .club-option .opt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* CONTRAST RULE: every piece of text on these buttons is white or near-white.
   The club colour varies wildly in luminance (Leopard #ffffff vs Buffalo #a56a2a
   vs Loki #aa00ff), so colouring TEXT with it makes some cards unreadable.
   The club colour is used only for accents — the dot, the rail, the pill border
   and the live glow — where contrast doesn't matter. */
.club-card .club-option .opt-site {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .85);
}
.club-card .club-option .action-prefix {
  display: inline;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
}
.club-card .club-option .action-arrow {
  flex: 0 0 21px; width: 21px; height: 21px;
  font-size: 14px;
  color: #fff;
  background: color-mix(in srgb, var(--club-color) 26%, rgba(255, 255, 255, .06));
  border: 1px solid color-mix(in srgb, var(--club-color) 55%, transparent);
}

/* A club-coloured rail identifies the card without tinting any text. */
.club-card .club-option .opt-head::before {
  content: '';
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--club-color);
  opacity: .9;
}
.club-card .club-option { padding-left: 14px; }

/* ---------- happy hour strip ---------- */
/* Two rows: [ • Happy hour ][ 50% ] / [ 17:00–18:00 ] — the label is what makes
   the time mean anything. */
.club-card .opt-hh {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  row-gap: 3px;
  column-gap: 6px;
  margin-top: 1px;
}
.club-card .opt-hh .hh-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: rgba(255, 255, 255, .62);
}
.club-card .opt-hh .hh-dot {
  flex: 0 0 6px; width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--club-color);
  opacity: .85;
}
.club-card .opt-hh .hh-time {
  grid-column: 1 / -1;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}
.club-card .opt-hh .hh-pct {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: color-mix(in srgb, var(--club-color) 22%, rgba(255, 255, 255, .05));
  border: 1px solid color-mix(in srgb, var(--club-color) 60%, transparent);
}
.club-card .opt-hh .hh-live {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 2px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  color: #05070a;
  background: var(--club-color);
}

/* ---------- live right now (set by script.js) ---------- */
.club-card .club-option.is-live::before { background: var(--club-color); }
.club-card .club-option.is-live::after {
  background: linear-gradient(150deg, color-mix(in srgb, var(--club-color) 40%, #06080d), #070a12 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
.club-option.is-live .hh-time { color: #fff; }
.club-option.is-live .opt-hh { color: #fff; }
.club-option.is-live .hh-dot {
  opacity: 1;
  background: var(--club-color);
  animation: hhPulse 1.8s ease-in-out infinite;
}
@keyframes hhPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--club-color) 65%, transparent); }
  50%      { box-shadow: 0 0 0 5px color-mix(in srgb, var(--club-color) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .club-option.is-live .hh-dot { animation: none; }
}

/* A card with a live happy hour lifts out of the grid. */
.club-card.has-live {
  border-color: color-mix(in srgb, var(--club-color) 62%, #14171d);
  box-shadow: 0 0 34px -12px color-mix(in srgb, var(--club-color) 60%, transparent);
}

/* ---------- key/legend addition ---------- */
.club-key .hh-note {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .45);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .club-card .club-art > h3 { font-size: 17px; padding-top: 22px; }
  .club-card .club-option { min-height: 50px; padding: 8px 10px; }
  .club-card .opt-hh { font-size: 11px; }
}
@media (max-width: 700px) {
  /* The design switches to a 33%/1fr horizontal card here
     (.unified-grid .club-card{display:grid}). That puts both buttons in a narrow
     left column beside the artwork, which destroys the whole point of this
     layout — Classic ABOVE the club, Next BELOW it. Override at matching
     specificity to keep the vertical stack on phones, where most traffic is. */
  .unified-grid .club-card {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    min-height: 0;
  }
  .club-card .club-art { min-height: 0; }
  .club-card .club-art > img { max-height: 210px; object-fit: contain; }
  .club-card .club-art > h3 { font-size: 17px; }
  .club-card .club-option { min-height: 54px; }
  .club-card .opt-hh .hh-time { font-size: 15px; }
}
@media (max-width: 360px) {
  .unified-grid .club-card { grid-template-columns: none; min-height: 0; }
  .club-card .opt-hh .hh-label { font-size: 9px; letter-spacing: .07em; }
  .club-card .opt-hh .hh-time { font-size: 14px; }
}

/* ==========================================================================
   "Happy hour on now / up next" banner, between the hero and the club grid.
   Resolved in the browser (the page is cached for an hour), so everything here
   starts hidden and is revealed by happy-hours.js. The static .hh-fallback line
   is true at any hour and carries the section without JavaScript.
   ========================================================================== */

.hh-banner {
  --club-color: #ff8a00;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #14171d;
  border-bottom: 1px solid #14171d;
  background: linear-gradient(180deg, #06080c, #080a10);
}
.hh-banner.is-live {
  border-color: color-mix(in srgb, var(--club-color) 38%, #14171d);
  background:
    radial-gradient(90% 150% at 12% 50%, color-mix(in srgb, var(--club-color) 15%, transparent), transparent 62%),
    linear-gradient(180deg, #06080c, #080a10);
}
.hh-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
  padding: 18px 0;
}

/* ---------- on now ---------- */
.hh-live-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.hh-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #05070a;
  background: var(--club-color);
  box-shadow: 0 0 22px -4px color-mix(in srgb, var(--club-color) 75%, transparent);
}
.hh-flag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #05070a;
  animation: hhFlagPulse 1.6s ease-in-out infinite;
}
@keyframes hhFlagPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }

.hh-live-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin: 0;
}
.hh-live-club { text-decoration: none; }
.hh-live-name {
  font-size: clamp(26px, 4.4vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 0 34px color-mix(in srgb, var(--club-color) 55%, transparent);
}
.hh-live-club:hover .hh-live-name { color: color-mix(in srgb, var(--club-color) 30%, #fff); }
.hh-live-time {
  font-size: clamp(17px, 2.3vw, 23px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.hh-live-pct {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: color-mix(in srgb, var(--club-color) 24%, rgba(255, 255, 255, .05));
  border: 1px solid color-mix(in srgb, var(--club-color) 62%, transparent);
}
.hh-live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .62);
}
.hh-live-ends { color: color-mix(in srgb, var(--club-color) 32%, #ffffff); font-weight: 600; }

/* ---------- up next ---------- */
.hh-up-next {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-left: auto;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #191d25;
  background: rgba(255, 255, 255, .02);
}
.hh-next-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}
.hh-next-club { text-decoration: none; }
.hh-next-name { font-size: 17px; font-weight: 700; color: #fff; }
.hh-next-club:hover .hh-next-name { color: color-mix(in srgb, var(--club-color) 45%, #fff); }
.hh-next-time { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .82); }
.hh-next-in { font-size: 12.5px; color: rgba(255, 255, 255, .5); }

.hh-fallback {
  margin: 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .62);
}
.hh-fallback strong { color: #fff; }

@media (max-width: 700px) {
  .hh-banner-inner { padding: 15px 0; gap: 12px; }
  .hh-up-next { margin-left: 0; width: 100%; padding: 9px 13px; }
  .hh-live-main { gap: 8px 11px; }
}
@media (prefers-reduced-motion: reduce) { .hh-flag-dot { animation: none; } }
