/* =========================
   GLOBAL / PAGE BACKDROP
   ========================= */
html, body{
  margin:0;
  min-height:100%;
  background-color:#0b0c10; /* fallback */
}

body{
  color:#f3f4f6;
  font:500 16px/1.5 ui-sans-serif,system-ui,-apple-system,Segoe UI,Inter,Roboto,Arial;

  /* Background */
  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);

  /* iOS safe-area: keep top dark behind status bar */
  padding-top: env(safe-area-inset-top, 0px);
}


/* =========================
   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);

  /* Primary palette */
  --gw-red:    #e52328;
  --gw-blue:   #2979ff;
  --gw-green:  #00e676;
  --gw-purple: #d500f9;
  --gw-orange: #ff9100;
  --gw-gold:   #cda14e;
  --gw-yellow: #ffee58;
  --gw-black:  #0b0f18;

  /* Re-Vibe color */
  --gw-vibe:   #9A80DE;

  /* Extra vivid options */
  --gw-cyan:       #00e5ff;
  --gw-pink:       #ff4081;
  --gw-lime:       #c6ff00;
  --gw-turquoise:  #1de9b6;
  --gw-indigo:     #651fff;
  --gw-silver:     #c0c7d1;

  /* 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);
}


/* =========================
   HEADER (LOGO + SUBTITLE)
   ========================= */
.gwcal-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;

  /* spacing above logo (safe-area is handled by body) */
  padding-top: 12px;

  margin:0 0 12px;
}

.gwcal-logo{
  width:min(280px, 78vw);
  max-width:100%;
  height:auto;
  display:block;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.45));
}


/* =========================
   LAYOUT / TYPOGRAPHY
   ========================= */
.gwcal-wrap{
  max-width:1200px;
  margin:32px auto 64px;
  padding:0 18px 96px; /* extra space at bottom of page */
  color:var(--gw-text);
}


.gwcal-title{
  margin:0 0 6px;
  text-align:center;
  font-weight:800;
  letter-spacing:.2px;
  font-size:clamp(22px,4vw,36px);
}

.gwcal-sub{
  margin:0 0 22px;
  text-align:center;
  color:var(--gw-subtle);
  font-size:18px; /* base; mobile overrides below */
  font-weight:700;
}


/* =========================
   LEGEND
   ========================= */
.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:10px;
  color:var(--gw-muted);
  background:var(--gw-glass);
  border:1px solid rgba(255,255,255,.08);
  padding:6px 12px;
  border-radius:999px;
  backdrop-filter:blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

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

/* 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.vibe{background:var(--gw-vibe)}

.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.silver{background:var(--gw-silver)}


/* =========================
   MONTH GRID + 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; /* clip iOS 1px spill */
}

.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);
  background:transparent;
}

.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:#0b0d12;
  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 fill colors */
.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="vibe"]::before{background:var(--gw-vibe)}

.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="silver"]::before{background:var(--gw-silver)}

.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;
}


/* =========================
   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
   ========================= */
.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(720px,100%);
  max-height:92vh;
  overflow:auto;
  background:rgba(28,30,38,.92);
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  backdrop-filter:blur(12px);
  box-shadow:0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
  color:#e5e7eb;
  position:relative;
}

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

.gwmodal-x{
  position:absolute;
  top:12px;
  right:12px;
  width:32px;
  height:32px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  font-size:18px;
}

@media (min-width: 640px){
  .gwmodal-x{ width:34px; height:34px; }
}

.gwmodal-section{
  margin-top:14px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:14px;
  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 }

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

.gwmodal-muted{ color:#a7aebd; font-size:14px; margin-top:6px }
.gwmodal-venue h4{ margin:16px 0 4px; font-size:20px }
.gwmodal-venue p{ margin:4px 0; color:#cbd5e1 }
.gwmodal-venue a{ color:#ef4444; font-weight:800; text-decoration:none }

/* Group Sales block */
.gwmodal-group a.gwgroup-link{display:block; text-decoration:none; color:inherit}
.gwmodal-group .gs-title{ display:flex; align-items:center; gap:10px; font-size:20px; font-weight:800 }
.gwmodal-group .gs-sub{ color:#a7aebd; margin-top:6px }
.gwmodal-group .gs-icon{
  width:24px; height:24px; border-radius:8px;
  display:grid; place-items:center;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}
.gwmodal-group .gs-icon svg{ width:16px; height:16px; color:#e5e7eb }
.gwmodal-group .gs-arrow{
  width:38px; height:38px; border-radius:10px;
  display:grid; place-items:center;
  font-size:18px; color:#fff;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
}

/* Small screens modal typography */
@media (max-width:540px){
  .gwmodal-title{ font-size:18px }
  .gwmodal-showtitle{ font-size:18px }
}


/* =========================
   MOBILE TUNING
   ========================= */
@media (max-width: 540px){
  .gwcal-wrap{
    margin-top: 0;
    padding-top: 0;
  }

  .gwcal-head{
    gap: 8px;
    margin: 0 0 12px;
    padding-top: 10px;
  }

  .gwcal-logo{
    width: min(92vw, 420px);
    max-height: 20vh;
    object-fit: contain;
  }

  .gwcal-sub{
    margin-top: 0;
    font-size: 24px; /* your bigger mobile subtitle */
  }
}

/* Extra breathing room after the last month */
#hb-cal{
  padding-bottom: 140px;
}
/*Removing middle months*/
/* Hide June, July, August */
#hb-cal .gwcal-month:nth-of-type(3),
#hb-cal .gwcal-month:nth-of-type(4),
#hb-cal .gwcal-month:nth-of-type(5) {
  display: none;
}
