/* =========================================================
   GW Glass Calendar — CLEAN FULL STYLESHEET
   (Christmas + Sticky Legend + Logo Header)
   ========================================================= */

/* =========================
   PAGE / BACKDROP
   ========================= */
html, body{
  min-height: 100%;
  background-color:#0b0c10; /* fallback + safe-area paint */
}
:root{ color-scheme: dark; }

body{
  margin:0;
  color:#f3f4f6;
  font:500 16px/1.5 ui-sans-serif,system-ui,-apple-system,Segoe UI,Inter,Roboto,Arial;
  background:
    radial-gradient(1200px 700px at 10% -10%, #2b2f39 0%, transparent 60%),
    radial-gradient(900px 600px at 110% 20%, #1e2531 0%, transparent 60%),
    linear-gradient(180deg, #0b0c10, #0f1116);
  background-attachment: fixed;
}

/* =========================
   THEME TOKENS
   ========================= */
:root{
  --gw-glass: rgba(255,255,255,0.06);
  --gw-glass-strong: rgba(255,255,255,0.10);
  --gw-text:#f3f4f6;
  --gw-muted:#c6cad4;
  --gw-subtle:#9aa0ab;

  --gw-card-shadow: 0 18px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06);
  --gw-pill-shadow: 0 8px 20px rgba(0,0,0,.35);

  /* Vivid base set */
  --gw-red:#ff1744;
  --gw-blue:#2979ff;
  --gw-green:#00e676;
  --gw-purple:#d500f9;
  --gw-orange:#ff9100;
  --gw-gold:#ffd600;
  --gw-yellow:#ffee58;
  --gw-black:#0b0f18;

  /* Extra options */
  --gw-cyan:#00e5ff;
  --gw-pink:#ff4081;
  --gw-lime:#c6ff00;
  --gw-turquoise:#1de9b6;
  --gw-indigo:#651fff;
  --gw-vibe:#9A80DE;

  /* Christmas palette */
  --gw-holly:#00c853;
  --gw-pine:#1b5e20;
  --gw-evergreen:#0f7a2f;
  --gw-cranberry:#e53935;
  --gw-snow:#ffffff;
  --gw-silver:#c0c7d1;
  --gw-candycane:#ff1744;
  --gw-mistletoe:#2ecc71;
  --gw-ornament:#00bcd4;
  --gw-xmasgold:#ffb300;
  --gw-gingerbread:#a0522d;
  --gw-nutcracker:#9c27b0;
  --gw-festivepink:#ec407a;
  --gw-frost:#80deea;
  --gw-cred:#c21111;
  --gw-cgreen:#17823b;
  --gw-cplumb:#313173;

  /* Layout tokens */
  --gw-month-min:360px;
  --gw-month-max:360px;
  --gw-gap:18px;
  --gw-cell-radius:14px;
  --gw-card-pad: clamp(10px, 1.6vw, 14px);
  --gw-day-gap: clamp(4px, 0.9vw, 8px);
}

/* =========================
   WRAP / LAYOUT
   ========================= */
.gwcal-wrap{
  max-width:1200px;
  margin:0 auto 64px;
  padding:0 18px 120px; /* extra space below last calendar */
  color:var(--gw-text);
}

/* Optional spacing before Jan 2026 wrapper */
#hb-cal-2026{ margin-top:32px; }

/* =========================
   STICKY HEADER (MOBILE)
   ========================= */
.gwcal-header{
  position: sticky;
  top: 0;
  z-index: 60;

  /* stretch full-bleed inside padded wrap */
  margin: 0 -18px;
  padding: calc(env(safe-area-inset-top,0px) + 12px) 18px 10px;

  background: rgba(12, 14, 20, .55);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 6px 14px rgba(0,0,0,.16);
}

/* Paint ONLY the notch safe-area with the same header bg (iOS) */
@media (max-width: 767.98px){
  .gwcal-header::before{
    content:"";
    position: fixed;
    top:0; left:0; right:0;
    height: env(safe-area-inset-top,0px);
    background: rgba(12, 14, 20, .55);
    z-index: 59;
    pointer-events:none;
  }
}

/* Desktop: header becomes normal (not sticky / no frosted bar) */
@media (min-width: 768px){
  .gwcal-header{
    position: static;
    margin: 0;
    padding: 0 0 8px;
    background: transparent;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .gwcal-header::before{ display:none; }
}

/* =========================
   LOGO HEADER BLOCK
   ========================= */
.gwcal-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  margin:0 0 10px;
}

.gwcal-logo{
  width: min(420px, 88vw);
  max-height: 18vh;
  height:auto;
  object-fit: contain;
  display:block;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.45));
}

@media (max-width: 540px){
  .gwcal-logo{
    width: min(420px, 92vw);
    max-height: 16vh;
  }
}

/* Title/subtitle */
.gwcal-title{
  margin:0 0 6px;
  text-align:center;
  font-weight:800;
  letter-spacing:.2px;
  font-size:clamp(22px,3.6vw,34px);
}
.gwcal-sub{
  margin:0 0 6px;
  text-align:center;
  color:var(--gw-subtle);
  font-weight:700;

  font-size: 18px;   /* ⬅️ add/change this */
  line-height: 1.15; /* optional */
}


/* =========================
   LEGEND + HINT
   ========================= */
.gwcal-legend-hint-text{
  display:none;
  font-size:12px;
  line-height:1.2;
  font-weight:600;
  color:rgba(255,255,255,.7);
  margin:0 0 8px;
  text-align:center;
}
@media (max-width:560px){
  .gwcal-legend-hint-text{ display:block; }
}

.gwcal-legend{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px 16px;
  margin:0 0 22px;
}

.gwcal-chip{
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--gw-muted);
  background:var(--gw-glass);
  border:1px solid rgba(255,255,255,.08);
  padding:4px 8px;
  border-radius:8px;
  backdrop-filter:blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  font-size:16px;
  font-weight:600;
}

.gwcal-swatch{
  flex:0 0 14px;
  width:14px;
  height:14px;
  border-radius:4px;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.25);
}

/* Phones: single-row horizontal legend */
@media (max-width:560px){
  .gwcal-legend{
    flex-wrap:nowrap;
    justify-content:flex-start;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding:0 12px 6px;
    gap:10px;
    scroll-snap-type:x proximity;
  }
  .gwcal-legend::-webkit-scrollbar{ display:none; }
  .gwcal-chip{
    flex:0 0 auto;
    min-height:32px;
    padding:6px 10px;
    scroll-snap-align:start;
  }
}

/* Slightly tighten inside sticky header */
.gwcal-header .gwcal-legend{ margin-bottom: 2px; }

/* =========================
   LEGEND SWATCH COLORS
   ========================= */
.gwcal-swatch.red{background:var(--gw-red)}
.gwcal-swatch.blue{background:var(--gw-blue)}
.gwcal-swatch.green{background:var(--gw-green)}
.gwcal-swatch.purple{background:var(--gw-purple)}
.gwcal-swatch.orange{background:var(--gw-orange)}
.gwcal-swatch.gold{background:var(--gw-gold)}
.gwcal-swatch.yellow{background:var(--gw-yellow)}
.gwcal-swatch.black{background:var(--gw-black)}

.gwcal-swatch.cyan{background:var(--gw-cyan)}
.gwcal-swatch.pink{background:var(--gw-pink)}
.gwcal-swatch.lime{background:var(--gw-lime)}
.gwcal-swatch.turquoise{background:var(--gw-turquoise)}
.gwcal-swatch.indigo{background:var(--gw-indigo)}
.gwcal-swatch.vibe{background:var(--gw-vibe)}

.gwcal-swatch.holly{background:var(--gw-holly)}
.gwcal-swatch.pine{background:var(--gw-pine)}
.gwcal-swatch.evergreen{background:var(--gw-evergreen)}
.gwcal-swatch.cranberry{background:var(--gw-cranberry)}
.gwcal-swatch.snow{background:var(--gw-snow)}
.gwcal-swatch.silver{background:var(--gw-silver)}
.gwcal-swatch.candycane{background:var(--gw-candycane)}
.gwcal-swatch.mistletoe{background:var(--gw-mistletoe)}
.gwcal-swatch.ornament{background:var(--gw-ornament)}
.gwcal-swatch.xmasgold{background:var(--gw-xmasgold)}
.gwcal-swatch.gingerbread{background:var(--gw-gingerbread)}
.gwcal-swatch.nutcracker{background:var(--gw-nutcracker)}
.gwcal-swatch.festivepink{background:var(--gw-festivepink)}
.gwcal-swatch.frost{background:var(--gw-frost)}
.gwcal-swatch.cred{background:var(--gw-cred)}
.gwcal-swatch.cgreen{background:var(--gw-cgreen)}
.gwcal-swatch.cplumb{background:var(--gw-cplumb)}

/* =========================
   MONTH GRID + MONTH CARD
   ========================= */
.gwcal{
  display:grid;
  gap:var(--gw-gap);
  grid-template-columns:repeat(auto-fit, minmax(var(--gw-month-min),1fr));
}

.gwcal-month{
  background: var(--gw-glass);
  border:1px solid var(--gw-glass-strong);
  border-radius:18px;
  padding: var(--gw-card-pad);
  backdrop-filter: blur(12px);
  width: clamp(var(--gw-month-min), 30vw, var(--gw-month-max));
  margin-inline:auto;
  box-shadow: var(--gw-card-shadow);
  overflow:hidden;

  /* anchor offset under sticky header */
  scroll-margin-top: 84px;
}

.gwcal-month h3{
  margin:0 0 10px;
  text-align:center;
  font-weight:800;
  font-size:20px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:#fff;
}

/* =========================
   DAY GRID / CELLS
   ========================= */
.gwcal-grid{
  display:grid;
  gap:var(--gw-day-gap);
  grid-template-columns:repeat(7, minmax(0,1fr));
  box-sizing:border-box;
}

.gwcal-dow{
  color:var(--gw-subtle);
  font-weight:800;
  font-size:14px;
  letter-spacing:.3px;
  text-align:center;
  padding:6px 0 8px;
}

.gwcal-cell{
  position:relative;
  aspect-ratio:1/1;
  border-radius:var(--gw-cell-radius);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--gw-muted);
}

.gwcal-cell:hover{
  background:rgba(255,255,255,.045);
  transition:.15s ease;
}

.gwcal-num{
  font-weight:800;
  font-size:20px;
  position:relative;
  z-index:1;
}

.gwcal-cell[data-color]{
  color:#fff;
  background:linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.08));
  box-shadow:var(--gw-pill-shadow);
}

.gwcal-cell[data-color]::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:var(--gw-cell-radius);
  opacity:.95;
}

/* Cell fills */
.gwcal-cell[data-color="red"]::before{background:var(--gw-red)}
.gwcal-cell[data-color="blue"]::before{background:var(--gw-blue)}
.gwcal-cell[data-color="green"]::before{background:var(--gw-green)}
.gwcal-cell[data-color="purple"]::before{background:var(--gw-purple)}
.gwcal-cell[data-color="orange"]::before{background:var(--gw-orange)}
.gwcal-cell[data-color="gold"]::before{background:var(--gw-gold)}
.gwcal-cell[data-color="yellow"]::before{background:var(--gw-yellow)}
.gwcal-cell[data-color="black"]::before{background:var(--gw-black)}
.gwcal-cell[data-color="cyan"]::before{background:var(--gw-cyan)}
.gwcal-cell[data-color="pink"]::before{background:var(--gw-pink)}
.gwcal-cell[data-color="lime"]::before{background:var(--gw-lime)}
.gwcal-cell[data-color="turquoise"]::before{background:var(--gw-turquoise)}
.gwcal-cell[data-color="indigo"]::before{background:var(--gw-indigo)}
.gwcal-cell[data-color="vibe"]::before{background:var(--gw-vibe)}

/* Christmas */
.gwcal-cell[data-color="holly"]::before{background:var(--gw-holly)}
.gwcal-cell[data-color="pine"]::before{background:var(--gw-pine)}
.gwcal-cell[data-color="evergreen"]::before{background:var(--gw-evergreen)}
.gwcal-cell[data-color="cranberry"]::before{background:var(--gw-cranberry)}
.gwcal-cell[data-color="snow"]::before{background:var(--gw-snow)}
.gwcal-cell[data-color="silver"]::before{background:var(--gw-silver)}
.gwcal-cell[data-color="candycane"]::before{background:var(--gw-candycane)}
.gwcal-cell[data-color="mistletoe"]::before{background:var(--gw-mistletoe)}
.gwcal-cell[data-color="ornament"]::before{background:var(--gw-ornament)}
.gwcal-cell[data-color="xmasgold"]::before{background:var(--gw-xmasgold)}
.gwcal-cell[data-color="gingerbread"]::before{background:var(--gw-gingerbread)}
.gwcal-cell[data-color="nutcracker"]::before{background:var(--gw-nutcracker)}
.gwcal-cell[data-color="festivepink"]::before{background:var(--gw-festivepink)}
.gwcal-cell[data-color="frost"]::before{background:var(--gw-frost)}
.gwcal-cell[data-color="cred"]::before{background:var(--gw-cred)}
.gwcal-cell[data-color="cgreen"]::before{background:var(--gw-cgreen)}
.gwcal-cell[data-color="cplumb"]::before{background:var(--gw-cplumb)}

/* Clickable + time pill */
.gwcal-cell[data-url]{ cursor:pointer; }
.gwcal-cell[data-url]:hover{ transform:translateY(-1px); filter:brightness(1.05); }

.gwcal-time{
  position:absolute;
  bottom:4px;
  right:6px;
  font-size:10px;
  font-weight:800;
  color:#0b0d12;
  padding:2px 6px;
  border-radius:999px;
  background:rgba(255,255,255,.9);
  pointer-events:none;
}

/* Past dates */
.gwcal-cell.is-past{
  opacity:.55;
  filter:saturate(.2) brightness(.85);
  cursor:default;
}
.gwcal-cell.is-past::before{ opacity:.6 !important; }
.gwcal-cell.is-past .gwcal-time{ display:none; }
.gwcal-cell.is-past:hover{ background:transparent; transform:none; }

/* =========================
   TOOLTIP (DESKTOP ONLY)
   ========================= */
@media (hover:hover) and (pointer:fine){
  .gwcal-tip{
    position: fixed;
    z-index: 9999;
    background: rgba(28,30,38,.92);
    color: #e5e7eb;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    padding: 6px 9px;
    box-shadow: 0 10px 24px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
    pointer-events: none;
    transform: translate(-50%, -8px);
    white-space: nowrap;
  }
  .gwcal-tip::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:-6px;
    transform:translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(28,30,38,.92);
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.35));
  }
}

/* =========================
   MODAL (COMPACT + SLEEK)
   ========================= */
.gwmodal{
  position:fixed;
  inset:0;
  z-index:9998;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
}
.gwmodal.is-open{ display:flex; }

.gwmodal-card{
  width: min(640px, 92vw);
  max-height: 90vh;
  overflow:auto;
  background:rgba(28,30,38,.92);
  border:1px solid rgba(255,255,255,.14);
  border-radius:16px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow:0 24px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
  color:#e5e7eb;
  position:relative;
}

.gwmodal-head{ display:flex; align-items:center; gap:10px; padding:12px 16px 0; }
.gwmodal-logo{ height:80px; width:auto; object-fit:contain; }
.gwmodal-title{ margin:6px 0 0; font-size:20px; font-weight:800; }

.gwmodal-body{ padding:14px 16px 16px; }

.gwmodal-x{
  position:absolute;
  top:10px;
  right:10px;
  width:26px;
  height:26px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  line-height:1;
  padding:0;
}
.gwmodal-x:hover{ background:rgba(255,255,255,.15); }

.gwmodal-section{
  margin-top:12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  padding:12px;
  background:rgba(255,255,255,.03);
}

.gwmodal-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  justify-content:space-between;
}

.gwmodal-showtitle{ font-size:20px; font-weight:800; }
.gwmodal-time{ color:#cbd5e1; font-weight:700; }
.gwmodal-muted{ color:#a7aebd; font-size:14px; margin-top:6px; }

.gwbtn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  background:#ef4444;
  color:#fff;
  font-weight:800;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  box-sizing:border-box;
  white-space:nowrap;
}
.gwbtn svg{ width:16px; height:16px; }

/* Multi-show slots */
.gwslots{ display:grid; gap:10px; }

.gwslot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:10px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}

.gwslot__main{ min-width:0; }
.gwslot__title{ font-weight:600; line-height:1.25; font-size:15px; }
.gwslot__time{ opacity:.9; margin-top:2px; font-size:13px; }

.gwslot__cta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  text-decoration:none;
  color:#fff;
  background:var(--gw-red);
  font-weight:700;
  font-size:15px;
  max-width:100%;
  box-sizing:border-box;
  white-space:nowrap;
}
.gwslot__cta svg{ width:16px; height:16px; }

@media (max-width:520px){
  .gwslot{ flex-direction:column; align-items:stretch; }
  .gwslot__cta{ width:100%; justify-content:center; }
  .gwmodal-title{ font-size:18px; }
  .gwmodal-body{ padding:12px; }
}

/* Group Sales block */
.gwmodal-group{
  padding:0;
  background:transparent;
  border:none;
  margin-top:12px;
}

.gwmodal-group .gwgroup-link{
  display:block;
  text-decoration:none;
  color:inherit;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  padding:10px 12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

.gwmodal-group .gwmodal-row{ gap:10px; }

.gs-title{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:17px; }
.gs-icon{
  width:32px;
  height:32px;
  border-radius:8px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}
.gs-icon svg{ width:18px; height:18px; color:#e5e7eb; }

.gs-sub{ color:#cfd5df; font-size:13px; margin-top:4px; }

.gs-arrow{
  width:34px;
  height:34px;
  border-radius:8px;
  display:grid;
  place-items:center;
  font-size:18px;
  color:#fff;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}
.gwmodal-group .gwgroup-link:hover .gs-arrow{
  transform:translateX(2px);
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.18);
}

/* Venue block */
.gwmodal-venue h4{ margin:12px 0 4px; font-size:18px; }
.gwmodal-venue p{ margin:4px 0; color:#cbd5e1; }
.gwmodal-venue a{ color:#ef4444; font-weight:800; text-decoration:none; }

/* =========================
   BACK TO HOME BUTTON
   ========================= */
.gwcal-home-btn{
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #e62228;
  color: #fff;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background 0.2s ease;
  z-index: 9999;
}
.gwcal-home-btn:hover{ background:#c31b1f; }

#hb-cal .gwcal-month:first-child{
  margin-top: 10px;
}
