/* bcnevents/frontend/assets/app.css
 *
 * Dark theme, mobile-first.
 * Single file — no build step, no preprocessor, no frameworks.
 * Organised in sections:
 *   1. CSS variables
 *   2. Reset + base
 *   3. Layout
 *   4. Header
 *   5. Stale warning banner
 *   6. Filter bar
 *   7. Results header
 *   8. Event grid + cards
 *   9. Event detail page
 *  10. Status page
 *  11. Buttons
 *  12. Badges + pills
 *  13. Tier dots
 *  14. Empty state
 *  15. Footer
 *  16. Utilities
 *  17. Desktop breakpoint (600px+)
 *  18. List view (Phase 8 — 3-column mobile layout)
 *  19. Calendar filters (Phase 7B)
 */


/* ============================================================
   1. CSS variables
   ============================================================ */

:root {
  /* Colours */
  --bg:           #0f0f0f;
  --bg-card:      #1a1a1a;
  --bg-card-hover:#222222;
  --bg-elevated:  #242424;
  --border:       #2e2e2e;
  --border-light: #3a3a3a;

  --text:         #f0f0f0;
  --text-muted:   #888888;
  --text-dim:     #555555;

  --accent:       #e8ff47;
  --accent-dark:  #c8df20;

  --whatsapp:     #25d366;
  --whatsapp-dark:#1aab52;

  --calendar:     #4285f4;
  --calendar-dark:#2b6fd4;

  --error:        #ff4444;
  --warning:      #ffaa00;
  --success:      #44cc66;

  /* Category colours */
  --cat-music:     #a78bfa;
  --cat-nightlife: #f472b6;
  --cat-arts:      #fb923c;
  --cat-culture:   #34d399;
  --cat-food:      #fbbf24;
  --cat-sport:     #38bdf8;
  --cat-tech:      #60a5fa;
  --cat-community: #a3e635;
  --cat-family:    #f9a8d4;
  --cat-other:     #94a3b8;

  /* Tier dot colours */
  --tier-green: #44cc66;
  --tier-amber: #ffaa00;
  --tier-red:   #ff4444;
  --tier-grey:  #666666;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;

  /* Typography */
  --font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Transitions */
  --transition: 150ms ease;
}


/* ============================================================
   2. Reset + base
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}


/* ============================================================
   3. Layout
   FIX: removed hardcoded padding-top that caused gap below filter bar.
   Sticky elements overlap content — no extra padding needed.
   ============================================================ */

.main-content {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-md);
}


/* ============================================================
   4. Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: 48px;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-bcn    { color: var(--accent); }
.logo-events { color: var(--text-muted); }

.header-nav {
  display: flex;
  gap: var(--space-md);
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.nav-link:hover { color: var(--text); }


/* ============================================================
   5. Stale warning banner
   ============================================================ */

.stale-warning {
  background: var(--warning);
  color: #000;
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.85rem;
  font-weight: 600;
}

.stale-warning a {
  text-decoration: underline;
  color: #000;
}


/* ============================================================
   6. Filter bar
   Mobile: two rows so nothing overflows or needs horizontal scroll.
     Row 1 — time tabs (Tonight/Week/Month/All) + Any/Free/Paid
     Row 2 — category dropdown + search input
   Desktop (600px+): single row via media query override.
   ============================================================ */

.filter-bar {
  position: sticky;
  top: 48px;
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.filter-bar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
}

.filter-row--top {
  justify-content: space-between;
}

.filter-row--bottom {
  gap: var(--space-sm);
}

.filter-group {
  display: flex;
  align-items: center;
}

.filter-group--tabs {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.filter-group--category {
  flex-shrink: 0;
}

/* Base tab style */
.filter-tab {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.filter-tab:hover {
  color: var(--text);
  background: var(--bg-card-hover);
}

.filter-tab.active {
  background: var(--accent);
  color: #000;
}

/* Smaller variant for Any/Free/Paid — tighter padding so it fits small screens */
.filter-tab--sm {
  padding: 5px 8px;
  font-size: 0.78rem;
}

.filter-select {
  appearance: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.82rem;
  padding: 5px 28px 5px 10px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent);
}

.filter-group--search {
  flex: 1;
  min-width: 0;
}

.search-form {
  width: 100%;
}

.search-input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.82rem;
  padding: 5px 10px;
}

.search-input::placeholder { color: var(--text-dim); }

.search-input:focus {
  outline: none;
  border-color: var(--accent);
}


/* ============================================================
   7. Results header
   ============================================================ */

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding-top: var(--space-md);
  flex-wrap: nowrap;
}

.results-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
  overflow: hidden;
}

.results-title {
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right-side cluster: count + display toggle — always on same line, never wraps */
.results-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  white-space: nowrap;
}

.results-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.results-count em {
  font-style: normal;
  color: var(--accent);
}

/* Display toggle: card / list icons */
.display-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.display-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  color: var(--text-dim);
  transition: background var(--transition), color var(--transition);
}

.display-toggle-btn:hover {
  color: var(--text);
  background: var(--bg-card-hover);
}

.display-toggle-btn--active {
  background: var(--accent);
  color: #000;
}

.display-toggle-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}


/* ============================================================
   8. Event grid + cards
   ============================================================ */

.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}

.event-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.event-card--sold-out { opacity: 0.55; }

.card-link {
  display: block;
  color: inherit;
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--bg-elevated);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.event-card:hover .card-image img { transform: scale(1.03); }

.card-body { padding: var(--space-md); }

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-venue {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-datetime {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.card-date {
  font-weight: 600;
  color: var(--text);
}

.card-footer {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}


/* ============================================================
   9. Event detail page
   ============================================================ */

.event-detail {
  max-width: 680px;
  margin: 0 auto;
}

.detail-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  background: var(--bg-elevated);
}

.detail-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.detail-header { margin-bottom: var(--space-lg); }

.detail-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.detail-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.detail-venue {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
  transition: color var(--transition);
}

.detail-venue:hover { color: var(--text); }

.detail-venue-address {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.detail-datetime {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.detail-price { margin-bottom: var(--space-md); }

.detail-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--border-light);
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.ticket-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.detail-back {
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.back-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.back-link:hover { color: var(--text); }


/* ============================================================
   10. Status page
   ============================================================ */

.status-page {
  max-width: 760px;
  margin: 0 auto;
}

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-top: var(--space-md);
}

.status-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.status-pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
}

.status-pill--ok    { background: var(--success); color: #000; }
.status-pill--error { background: var(--error);   color: #fff; }

.status-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.summary-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.summary-value {
  font-size: 1.4rem;
  font-weight: 700;
}

.summary-value--warn { color: var(--warning); }

.summary-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.summary-warning {
  font-size: 0.75rem;
  color: var(--warning);
  margin-top: var(--space-xs);
}

.status-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.section-title-sub {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}

.source-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.source-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.source-row:last-child { border-bottom: none; }

.source-row--header {
  background: var(--bg-elevated);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.source-row--error { background: rgba(255,68,68,0.05); }
.source-row--empty { background: rgba(255,170,0,0.05); }

.source-name {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 500;
}

.source-tier  { color: var(--text-muted); }
.source-count { font-weight: 600; text-align: right; }

.source-error-detail {
  padding: var(--space-xs) var(--space-md) var(--space-sm);
  font-size: 0.78rem;
  color: var(--error);
  font-family: var(--font-mono);
  background: rgba(255,68,68,0.05);
  border-bottom: 1px solid var(--border);
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.status-badge--ok    { background: rgba(68,204,102,0.15); color: var(--success); }
.status-badge--warn  { background: rgba(255,170,0,0.15);  color: var(--warning); }
.status-badge--error { background: rgba(255,68,68,0.15);  color: var(--error);   }

.flagged-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.flagged-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  align-items: start;
}

.flagged-row:last-child { border-bottom: none; }

.flagged-row--header {
  background: var(--bg-elevated);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.flagged-row strong { display: block; }
.flagged-row em     { font-style: normal; color: var(--text-muted); font-size: 0.75rem; }


/* ============================================================
   11. Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  transition: background var(--transition), opacity var(--transition);
  cursor: pointer;
  border: none;
  width: 100%;
}

.btn--primary  { background: var(--accent); color: #000; }
.btn--primary:hover { background: var(--accent-dark); }

.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: var(--whatsapp-dark); }

.btn--calendar { background: var(--calendar); color: #fff; }
.btn--calendar:hover { background: var(--calendar-dark); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn--disabled {
  opacity: 0.5;
  pointer-events: none;
}


/* ============================================================
   12. Badges + pills
   ============================================================ */

.category-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
}

.category-music     { background: rgba(167,139,250,0.15); color: var(--cat-music);     }
.category-nightlife { background: rgba(244,114,182,0.15); color: var(--cat-nightlife); }
.category-arts      { background: rgba(251,146,60,0.15);  color: var(--cat-arts);      }
.category-culture   { background: rgba(52,211,153,0.15);  color: var(--cat-culture);   }
.category-food      { background: rgba(251,191,36,0.15);  color: var(--cat-food);      }
.category-sport     { background: rgba(56,189,248,0.15);  color: var(--cat-sport);     }
.category-tech      { background: rgba(96,165,250,0.15);  color: var(--cat-tech);      }
.category-community { background: rgba(163,230,53,0.15);  color: var(--cat-community); }
.category-family    { background: rgba(249,168,212,0.15); color: var(--cat-family);    }
.category-other     { background: rgba(148,163,184,0.15); color: var(--cat-other);     }

.price-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.price-badge--free    { background: rgba(68,204,102,0.15); color: var(--success); }
.price-badge--unknown { color: var(--text-dim); }

.price-badge--large {
  font-size: 0.88rem;
  padding: 4px 12px;
}

.price-badge--xs {
  font-size: 0.72rem;
  padding: 1px 6px;
}

.sold-out-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--error);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
}

.sold-out-badge--large {
  font-size: 0.85rem;
  padding: 5px 12px;
}


/* ============================================================
   13. Tier dots
   ============================================================ */

.tier-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tier-green { background: var(--tier-green); }
.tier-amber { background: var(--tier-amber); }
.tier-red   { background: var(--tier-red);   }
.tier-grey  { background: var(--tier-grey);  }


/* ============================================================
   14. Empty state
   ============================================================ */

.empty-state {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.empty-state-message {
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.empty-state .btn {
  width: auto;
  display: inline-flex;
  padding: 10px var(--space-lg);
}


/* ============================================================
   15. Footer
   ============================================================ */

.site-footer {
  margin-top: var(--space-xl);
  border-top: 1px solid var(--border);
  padding: var(--space-lg) var(--space-md);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
}

.footer-links a:hover { color: var(--text); }

.footer-tier-legend {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}


/* ============================================================
   16. Utilities
   ============================================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}


/* ============================================================
   17. Desktop breakpoint (600px+)
   Filter bar: collapse two rows into one single row.
   ============================================================ */

@media (min-width: 600px) {

  /* Single-row filter bar on desktop */
  .filter-bar-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }

  .filter-row {
    width: auto;
    flex-shrink: 0;
  }

  .filter-row--bottom {
    flex: 1;
  }

  .filter-group--search {
    flex: 1;
  }

  /* Slightly larger tabs on desktop — more room */
  .filter-tab {
    padding: 5px 12px;
  }

  .filter-tab--sm {
    padding: 5px 10px;
    font-size: 0.82rem;
  }

  /* Event grid */
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .status-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .detail-actions .btn {
    width: auto;
    flex: 1;
    min-width: 160px;
  }

  .ticket-links {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .ticket-links .btn {
    flex: 1;
    min-width: 160px;
  }

}

@media (min-width: 900px) {

  .event-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .status-summary {
    grid-template-columns: repeat(5, 1fr);
  }

}


/* ============================================================
   18. List view (Phase 8)
   Mobile: 3-column layout
     [LEFT 88px]  [MID flex]  [BADGES auto]
     cat pill     title        CA pill
     date·time    wraps        Free/price
                               Now badge

   Desktop (600px+): badges col hidden, venue + price cols shown
   ============================================================ */

.event-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.list-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: background var(--transition);
  min-height: 44px;
}

.list-row:last-child  { border-bottom: none; }
.list-row:hover       { background: var(--bg-card-hover); }
.list-row--manual     { background: rgba(232,255,71,0.03); }
.list-row--now        { background: rgba(68,204,102,0.04); }
.list-row--sold-out   { opacity: 0.5; }

/* LEFT column — fixed width, category pill + date stacked */
.list-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  flex-shrink: 0;
  width: 88px;
}

/* Coloured category pill */
.list-cat-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

.list-cat-pill--music     { background: rgba(167,139,250,0.15); color: var(--cat-music);     }
.list-cat-pill--nightlife { background: rgba(244,114,182,0.15); color: var(--cat-nightlife); }
.list-cat-pill--arts      { background: rgba(251,146,60,0.15);  color: var(--cat-arts);      }
.list-cat-pill--culture   { background: rgba(52,211,153,0.15);  color: var(--cat-culture);   }
.list-cat-pill--food      { background: rgba(251,191,36,0.15);  color: var(--cat-food);      }
.list-cat-pill--sport     { background: rgba(56,189,248,0.15);  color: var(--cat-sport);     }
.list-cat-pill--tech      { background: rgba(96,165,250,0.15);  color: var(--cat-tech);      }
.list-cat-pill--community { background: rgba(163,230,53,0.15);  color: var(--cat-community); }
.list-cat-pill--family    { background: rgba(249,168,212,0.15); color: var(--cat-family);    }
.list-cat-pill--other     { background: rgba(148,163,184,0.15); color: var(--cat-other);     }

/* Date + time */
.list-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1.3;
}

.list-time {
  color: var(--text-dim);
}

/* MID column — title, takes remaining space */
.list-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

/* Title — left-aligned, wraps naturally */
.list-row-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: normal;
  line-height: 1.35;
  word-break: break-word;
}

.list-featured-star {
  color: var(--accent);
  font-size: 0.72rem;
  margin-left: 4px;
}

/* BADGES column — CA pill, price, Now — stacked, mobile only */
.list-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex-shrink: 0;
  padding-left: 2px;
}

.list-now-dot {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  color: var(--success);
  font-weight: 600;
  white-space: nowrap;
}

/* Lang pill small variant */
.lang-pill--sm {
  font-size: 0.62rem;
  padding: 1px 4px;
}

/* Venue — hidden on mobile, shown at 600px+ */
.list-venue {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  flex-shrink: 0;
  display: none;
}

/* Price — hidden on mobile (shown in badges col instead), visible at 600px+ */
.list-price {
  flex-shrink: 0;
  display: none;
}

/* Desktop: swap to traditional layout — hide badges col, show venue + price */
@media (min-width: 600px) {
  .list-left {
    width: 108px;
  }

  .list-date {
    font-size: 0.78rem;
  }

  .list-row-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .list-badges {
    display: none;
  }

  .list-venue {
    display: block;
  }

  .list-price {
    display: block;
  }
}


/* ============================================================
   19. Calendar filters (Phase 7B)
   Styled like the index.php filter bar — sticky at top,
   positioned above the month navigation.
   ============================================================ */

.cal-filter-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-md);
}

.cal-filter-bar-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
}

.cal-clear-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition);
  margin-left: auto;
}

.cal-clear-link:hover {
  color: var(--text);
  border-color: var(--border-light);
}

.cal-meta-filter-note {
  color: var(--accent);
  font-size: 0.78rem;
}

/* Filter select small variant */
.filter-select--sm {
  font-size: 0.78rem;
  padding: 4px 24px 4px 8px;
}
