/* ============================================================
   JERSEY BOYS DASHBOARD — STYLESHEET
   Theatrical dark theme · mobile-first
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --gold:        #c9a84c;
  --gold-light:  #e8c96b;
  --gold-dim:    #7a6230;
  --gold-faint:  rgba(201,168,76,0.10);

  --bg:          #0e0d0b;
  --bg-2:        #181612;
  --bg-3:        #211f1a;
  --surface:     #1c1a15;
  --surface-2:   #252118;
  --border:      rgba(201,168,76,0.16);
  --border-hover:rgba(201,168,76,0.50);
  --text-hi:     #f0e8d5;
  --text-mid:    #b5a98a;
  --text-lo:     #5c5446;
  --shadow:      0 4px 24px rgba(0,0,0,0.55);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.45);

  --radius:      10px;
  --gap:         1rem;
}

.theme-light {
  --bg:          #f5f0e8;
  --bg-2:        #ede7d9;
  --bg-3:        #e3dccf;
  --surface:     #faf7f1;
  --surface-2:   #f0ead9;
  --border:      rgba(120,90,30,0.18);
  --border-hover:rgba(120,90,30,0.55);
  --text-hi:     #1a1712;
  --text-mid:    #5a4e35;
  --text-lo:     #b8a98a;
  --shadow:      0 4px 24px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.10);
  --gold-faint:  rgba(120,90,30,0.08);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-hi);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1.25rem 1.25rem;
}

@media (min-width: 640px) {
  .site-header { padding: 2.5rem 2rem 2rem; }
}

.header-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.site-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

@media (min-width: 640px) {
  .site-logo { height: 72px; }
}

.text-logo-main {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 2rem;
  color: var(--gold-light);
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(201,168,76,0.35);
}

@media (min-width: 640px) {
  .text-logo-main { font-size: 2.6rem; }
}

.header-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.15rem;
}

.header-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--gold);
  font-style: italic;
}

/* Stage lights */
.stage-lights {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.light {
  position: absolute;
  top: -30px;
  width: 180px;
  height: 300px;
  border-radius: 0 0 100% 100%;
  opacity: 0.06;
  transform-origin: top center;
}

.theme-light .light { opacity: 0.03; }

.l1 { left: 5%;  background: radial-gradient(ellipse, #fff8e0 0%, transparent 70%); transform: rotate(-15deg); }
.l2 { left: 25%; background: radial-gradient(ellipse, #ffe8a0 0%, transparent 70%); transform: rotate(-5deg);  opacity: 0.08; }
.l3 { left: 60%; background: radial-gradient(ellipse, #ffe8a0 0%, transparent 70%); transform: rotate(5deg);   opacity: 0.08; }
.l4 { right: 5%; background: radial-gradient(ellipse, #fff8e0 0%, transparent 70%); transform: rotate(15deg); }

/* ── Venue Banner ───────────────────────────────────────── */
.venue-banner {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.venue-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

@media (min-width: 640px) {
  .venue-inner { padding: 1.25rem 2rem; }
}

/* Loading */
.venue-loading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-lo);
  padding: 0.25rem 0;
}

.venue-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Banner grid — side-by-side on wide, stacked on mobile */
.banner-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 780px) {
  .banner-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }
}

/* ── Week Venue Card ─────────────────────────────────────── */
.week-venue-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

@media (min-width: 780px) {
  .week-venue-block {
    width: 220px;
    min-width: 200px;
    margin-right: 1.5rem;
    border-radius: var(--radius);
  }
}

.week-venue-header {
  padding: 0.55rem 0.9rem 0.4rem;
  border-bottom: 1px solid var(--border);
  background: var(--gold-faint);
}

.week-venue-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.week-venue-address-link {
  display: block;
  padding: 0.75rem 0.9rem 0.8rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  /* Generous touch target */
  min-height: 56px;
}

.week-venue-address-link:hover,
.week-venue-address-link:focus-visible {
  background: var(--surface-2);
  outline: none;
}

.week-venue-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-hi);
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.week-venue-addr {
  font-size: 0.72rem;
  color: var(--text-mid);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.week-venue-maps-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.2em 0.55em;
  border-radius: 20px;
  background: var(--gold-faint);
}

/* ── Banner Right (today + upcoming) ────────────────────── */
.banner-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* ── Today Block ─────────────────────────────────────────── */
.venue-today {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.today-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.venue-day-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-faint);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 0.15em 0.55em;
  border-radius: 3px;
  flex-shrink: 0;
}

.today-date {
  font-size: 0.82rem;
  color: var(--text-mid);
  font-weight: 400;
}

.today-venue-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.75rem;
  color: var(--text-mid);
  text-decoration: none;
  padding: 0.25em 0;
  border-bottom: 1px dashed rgba(201,168,76,0.25);
  width: fit-content;
  transition: color 0.15s, border-color 0.15s;
}

.today-venue-link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.today-venue-link svg { flex-shrink: 0; opacity: 0.7; }

/* Show pills */
.venue-shows {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.show-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.78rem;
  font-weight: 500;
  color: #0e0d0b;
  background: var(--pill-color, var(--gold));
  padding: 0.35em 0.8em;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
  /* Comfortable touch target */
  min-height: 32px;
}

.show-time {
  font-size: 0.7em;
  opacity: 0.8;
  background: rgba(0,0,0,0.18);
  padding: 0.1em 0.4em;
  border-radius: 10px;
}

.venue-no-events {
  font-size: 0.8rem;
  color: var(--text-lo);
  font-style: italic;
}

/* ── Upcoming strip ──────────────────────────────────────── */
.venue-upcoming-wrap {
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}

.upcoming-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-lo);
  margin-bottom: 0.6rem;
}

.venue-upcoming {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* Bleed to edge on mobile for scroll affordance */
  margin: 0 -1.25rem;
  padding: 0 1.25rem;
  padding-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .venue-upcoming {
    margin: 0;
    padding: 0;
  }
}

.venue-upcoming::-webkit-scrollbar { display: none; }

.upcoming-day {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-right: 1.1rem;
  margin-right: 1.1rem;
  min-width: 110px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.upcoming-day:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 1.25rem;
}

.upcoming-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  white-space: nowrap;
}

.upcoming-venue-link {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-hi);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  border-bottom: 1px dashed rgba(201,168,76,0.2);
  padding-bottom: 0.1em;
  transition: color 0.15s;
  max-width: 130px;
}

.upcoming-venue-link:hover { color: var(--gold); }

.upcoming-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.1rem;
}

.upcoming-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.65rem;
  font-weight: 500;
  color: #0e0d0b;
  background: var(--pill-color, var(--gold));
  padding: 0.25em 0.55em;
  border-radius: 12px;
  white-space: nowrap;
  opacity: 0.85;
}

.upcoming-time {
  font-size: 0.65em;
  opacity: 0.75;
  background: rgba(0,0,0,0.18);
  padding: 0.05em 0.35em;
  border-radius: 8px;
}

/* States */
.venue-error {
  font-size: 0.8rem;
  color: #c97a7a;
  padding: 0.5rem 0;
}

.venue-empty {
  font-size: 0.8rem;
  color: var(--text-lo);
  font-style: italic;
  padding: 0.5rem 0;
}

/* ── Main ───────────────────────────────────────────────── */
.main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 640px) {
  .main { padding: 2.5rem 2rem 3rem; gap: 3rem; }
}

/* ── Section ────────────────────────────────────────────── */
.section {
  animation: fadeUp 0.45s ease both;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

@media (min-width: 640px) {
  .section-heading { font-size: 1.1rem; }
}

.section-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 2.5rem;
  height: 2px;
  background: var(--gold);
}

/* ── Card Grid ──────────────────────────────────────────── */
.card-grid {
  display: grid;
  /* 2 columns on small mobile, grows from there */
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
}

/* ── Card ───────────────────────────────────────────────── */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-hi);
  box-shadow: var(--shadow-card);
  /* iOS tap highlight */
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  animation: fadeUp 0.45s ease both;
}

/* Active state for touch */
.card:active {
  transform: scale(0.97);
  opacity: 0.9;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 0 1px var(--gold-dim);
  }
  .card:hover .card-arrow {
    transform: translateX(4px);
    color: var(--gold-light);
  }
}

/* Card media */
.card-media {
  width: 100%;
  height: 90px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .card-media { height: 120px; }
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-icon {
  font-size: 2.2rem;
  line-height: 1;
  opacity: 0.85;
  user-select: none;
}

@media (min-width: 640px) {
  .card-icon { font-size: 2.8rem; }
}

/* Card content */
.card-content {
  padding: 0.75rem 0.9rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

@media (min-width: 640px) {
  .card-content { padding: 1rem 1.1rem; }
}

.card-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-hi);
  line-height: 1.3;
}

@media (min-width: 640px) {
  .card-title { font-size: 0.95rem; }
}

.card-desc {
  font-size: 0.72rem;
  color: var(--text-mid);
  line-height: 1.4;
  flex: 1;
  /* Hide desc on very small screens to save space */
  display: none;
}

@media (min-width: 400px) {
  .card-desc { display: block; }
}

.card-arrow {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--gold-dim);
  margin-top: auto;
  transition: transform 0.18s ease, color 0.18s ease;
  align-self: flex-end;
}

/* Badge */
.card-badge {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  background: var(--gold);
  color: #0e0d0b;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2em 0.5em;
  border-radius: 3px;
  line-height: 1.6;
  z-index: 2;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  text-align: center;
}

.footer-text {
  font-size: 0.72rem;
  color: var(--text-lo);
  letter-spacing: 0.05em;
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Focus styles (accessibility) ───────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}
