/* ============================================================
   bcnevents/frontend/assets/ui-updates.css

   Overrides and additions on top of app.css:
   1. Header brand + byline
   2. Manual / featured event cards
   3. Footer copyright
   4. Search hint
   5. Mobile filter bar fix
   6. Main content padding removed on mobile
   7. Header nav links
   8. Now pulse + badge
   9. Load more button
  10. Phase 6 UI refresh (search overlay, filter toggle, Lucide icons, footer nav)
   ============================================================ */


/* ----------------------------------------------------------
   1. Header brand group
   ---------------------------------------------------------- */

.header-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-byline {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.logo-byline:hover { color: var(--text-muted); }


/* ----------------------------------------------------------
   2. Manual / featured event cards
   ---------------------------------------------------------- */

.event-card--manual {
  border-color: var(--accent);
  border-width: 1.5px;
  position: relative;
}

.event-card--manual:hover {
  border-color: var(--accent-dark);
}

.card-manual-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--accent);
  color: #0f0f0f;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}


/* ----------------------------------------------------------
   3. Footer copyright
   ---------------------------------------------------------- */

.footer-copyright {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  padding-top: var(--space-xs);
}


/* ----------------------------------------------------------
   4. Search hint
   ---------------------------------------------------------- */

.search-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: var(--space-xs) 0 var(--space-sm);
}

.search-hint a {
  color: var(--accent);
  text-decoration: underline;
}


/* ----------------------------------------------------------
   5. Mobile filter bar fix
   ---------------------------------------------------------- */

.filter-bar-inner {
  padding: var(--space-sm) var(--space-sm);
}

.filter-tab {
  padding: 5px 7px;
  font-size: 0.76rem;
}

.filter-tab--sm {
  padding: 5px 6px;
  font-size: 0.74rem;
}

@media (min-width: 600px) {
  .filter-bar-inner {
    padding: var(--space-sm) var(--space-md);
  }
  .filter-tab {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
  .filter-tab--sm {
    padding: 5px 10px;
    font-size: 0.78rem;
  }
}


/* ----------------------------------------------------------
   6. Main content padding
   ---------------------------------------------------------- */

.main-content {
  padding: 0;
}

.results-header,
.search-hint,
.empty-state {
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

.event-grid {
  padding: 0 var(--space-sm) var(--space-md);
}

@media (min-width: 600px) {
  .main-content {
    padding: 0 var(--space-md);
  }
  .results-header,
  .search-hint,
  .empty-state {
    padding-left: 0;
    padding-right: 0;
  }
  .event-grid {
    padding: 0 0 var(--space-md);
  }
}


/* ----------------------------------------------------------
   7. Header nav links
   ---------------------------------------------------------- */

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-nav-sep {
  color: var(--text-muted);
  opacity: 0.35;
  padding: 0 3px;
  font-size: 0.8rem;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 7px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}

.header-nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.header-nav-label {
  /* hidden on very small screens */
}

@media (max-width: 380px) {
  .header-nav-label { display: none; }
}

.header-nav-link--active {
  color: var(--accent);
  font-weight: 600;
}

.header-nav-link--featured { color: var(--text-muted); }
.header-nav-link--featured:hover,
.header-nav-link--featured.header-nav-link--active { color: #fbbf24; }

.header-nav-link--now { color: var(--text-muted); }
.header-nav-link--now:hover,
.header-nav-link--now.header-nav-link--active { color: var(--success, #44cc66); }

.header-nav-link--admin {
  opacity: 0.65;
  font-size: 0.75rem;
}
.header-nav-link--admin:hover { opacity: 1; }

.header-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  line-height: 1;
}

.header-nav-badge--now {
  background: rgba(68, 204, 102, 0.2);
  color: var(--success, #44cc66);
}

@media (min-width: 600px) {
  .header-nav-link {
    font-size: 0.82rem;
    padding: 4px 9px;
    gap: 5px;
  }
  .header-nav-link--admin { font-size: 0.78rem; }
}


/* ----------------------------------------------------------
   8. Now pulse + badge
   ---------------------------------------------------------- */

.now-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success, #44cc66);
  box-shadow: 0 0 0 0 rgba(68, 204, 102, 0.6);
  animation: pulse-ring 2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0   rgba(68,204,102,0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(68,204,102,0); }
  100% { box-shadow: 0 0 0 0   rgba(68,204,102,0); }
}

.filter-tab--now { color: var(--success, #44cc66); }
.filter-tab--now.active { background: var(--success, #44cc66); color: #000; }

.now-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--success, #44cc66);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.now-badge--placeholder { position: absolute; top: 8px; left: 8px; }

.now-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success, #44cc66);
  flex-shrink: 0;
  animation: pulse-ring 2s ease-out infinite;
}

.event-card--now { border-color: rgba(68, 204, 102, 0.35); }
.event-card--now:hover { border-color: rgba(68, 204, 102, 0.6); }


/* ----------------------------------------------------------
   9. Load more button
   ---------------------------------------------------------- */

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
}

.btn--load-more {
  background: var(--bg-elevated, #242424);
  border: 1px solid var(--border-light, #3a3a3a);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 28px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  width: 100%;
  max-width: 320px;
}

.btn--load-more:hover {
  background: var(--bg-card-hover, #222);
  border-color: var(--accent);
  color: var(--text);
}

.btn--load-more:active { transform: scale(0.98); }

.load-more-count {
  font-size: 0.78rem;
  opacity: 0.6;
}


/* ==========================================================
   10. Phase 6 UI refresh
   - Lucide icon sizing
   - Header search button + overlay
   - Filter bar: primary row + collapsible secondary
   - Footer nav links (Calendar + Digest)
   ========================================================== */


/* Lucide icon defaults */
.nav-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  vertical-align: middle;
  flex-shrink: 0;
}

.filter-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  vertical-align: middle;
  flex-shrink: 0;
}

.footer-nav-icon {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  vertical-align: middle;
}


/* Header search button */
.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  padding: 0;
  flex-shrink: 0;
}

.header-search-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--bg-elevated);
}

.header-search-btn--active {
  color: var(--accent);
  border-color: var(--accent);
}


/* Search overlay */
.search-overlay {
  position: relative;
  top: 0;
  z-index: 89;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, padding 0.2s ease;
}

.search-overlay--open {
  max-height: 60px;
  padding: var(--space-sm) var(--space-md);
}

.search-overlay-form {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: 960px;
  margin: 0 auto;
}

.search-overlay-icon {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  stroke-width: 1.75;
  fill: none;
  flex-shrink: 0;
}

.search-overlay-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  caret-color: var(--accent);
}

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

.search-overlay-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  flex-shrink: 0;
}

.search-overlay-close:hover { color: var(--text); }


/* Filter bar primary row */
.filter-row--primary {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: nowrap;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-row--primary::-webkit-scrollbar { display: none; }

.filter-group--category .filter-select {
  max-width: 130px;
  font-size: 0.78rem;
  padding: 4px 24px 4px 8px;
}


/* Filters toggle button */
.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

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

.filter-toggle-btn--active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(232, 255, 71, 0.06);
}

.filter-toggle-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #000;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  line-height: 1;
}


/* Secondary filter row (collapsible) */
.filter-row--secondary {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.22s ease, padding 0.22s ease;
  padding-top: 0;
}

.filter-row--secondary-open {
  max-height: 80px;
  padding-top: var(--space-xs);
}

.filter-select--sm {
  font-size: 0.78rem;
  padding: 4px 24px 4px 8px;
}


/* Now pulse — smaller variant for filter tab */
.now-pulse-sm {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success, #44cc66);
  box-shadow: 0 0 0 0 rgba(68, 204, 102, 0.6);
  animation: pulse-ring 2s ease-out infinite;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 1px;
}


/* Date tab close button */
.filter-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  font-size: 0.9rem;
  opacity: 0.6;
  cursor: pointer;
  line-height: 1;
}

.filter-tab-close:hover { opacity: 1; }


/* Footer nav (Calendar + Digest) */
.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.footer-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.footer-nav-sep {
  color: var(--text-dim);
  font-size: 0.75rem;
}


/* Desktop tweaks */
@media (min-width: 600px) {
  .filter-group--category .filter-select {
    max-width: 160px;
  }

  .filter-row--secondary-open {
    max-height: 50px;
    flex-wrap: nowrap;
  }
}


/* ----------------------------------------------------------
   Hide Now tab on mobile (available in header nav)
   ---------------------------------------------------------- */

.filter-tab--desktop-only {
  display: none;
}

@media (min-width: 600px) {
  .filter-tab--desktop-only {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
}


/* ----------------------------------------------------------
   Desktop filter bar: single unified row
   On desktop, primary + secondary rows become one flex row.
   Toggle button is hidden. Secondary items flow inline.
   ---------------------------------------------------------- */

@media (min-width: 600px) {

  /* Make the bar inner a flat flex row */
  .filter-bar-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  /* Both rows become normal flex items that sit side by side */
  .filter-row--primary,
  .filter-row--secondary {
    display: contents; /* children participate directly in filter-bar-inner flex */
  }

  /* Override the mobile hidden/collapsed state */
  .filter-row--secondary,
  .filter-row--secondary-open {
    max-height: none !important;
    overflow: visible !important;
    padding-top: 0 !important;
  }

  /* Hide the toggle button — not needed on desktop */
  .filter-toggle-btn {
    display: none !important;
  }

  /* Tighten up paid tabs so they don't take too much space */
  .filter-group--paid .filter-tab--sm {
    padding: 4px 8px;
    font-size: 0.76rem;
  }

  /* Neighbourhood select — compact */
  .filter-select--sm {
    max-width: 140px;
  }

  /* Category select */
  .filter-group--category .filter-select {
    max-width: 150px;
  }
}


/* ----------------------------------------------------------
   11. CA language pill on cards and detail page
   ---------------------------------------------------------- */

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #7c7c7c;
  border: 1px solid #7c7c7c;
  border-radius: 3px;
  padding: 1px 5px;
  line-height: 1;
  opacity: 0.85;
  flex-shrink: 0;
}

/* Tier dot alignment in card-meta-top */
.card-meta-top {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

/* Tier dot in detail page — sits naturally after CA pill, no push */
.detail-meta-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: var(--space-sm);
}


/* ----------------------------------------------------------
   12. Results count — more prominent
   ---------------------------------------------------------- */

.results-count {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
}


/* ----------------------------------------------------------
   13. Results title row — title + date clear pill side by side
   ---------------------------------------------------------- */

.results-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.date-clear-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(232, 255, 71, 0.1);
  border: 1px solid rgba(232, 255, 71, 0.3);
  border-radius: 99px;
  padding: 3px 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition);
}

.date-clear-pill:hover {
  background: rgba(232, 255, 71, 0.2);
}


/* ----------------------------------------------------------
   14. Flat filter bar — secondary items hidden on mobile,
       always visible on desktop inline with primary items.
       No more two-div row structure.
   ---------------------------------------------------------- */

/* filter-bar-inner is always a flex row */
.filter-bar-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-sm);
}

.filter-bar-inner::-webkit-scrollbar { display: none; }

/* Secondary items — hidden on mobile by default */
.filter-secondary-item {
  display: none;
}

/* Shown when toggle is open */
.filter-secondary-item--open {
  display: flex;
}

/* Toggle button — mobile only */
.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

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

.filter-toggle-btn--active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(232, 255, 71, 0.06);
}

.filter-toggle-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #000;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  line-height: 1;
}

/* Desktop: secondary items always visible, toggle hidden */
@media (min-width: 600px) {
  .filter-bar-inner {
    padding: var(--space-sm) var(--space-md);
    flex-wrap: nowrap;
  }

  .filter-secondary-item {
    display: flex; /* always show on desktop */
  }

  .filter-toggle-btn {
    display: none !important;
  }

  .filter-group--paid .filter-tab--sm {
    padding: 4px 8px;
    font-size: 0.76rem;
  }

  .filter-select--sm {
    max-width: 130px;
    font-size: 0.78rem;
  }

  .filter-group--category .filter-select {
    max-width: 140px;
  }
}


/* ----------------------------------------------------------
   15. Hide Now tab on mobile filter bar
   ---------------------------------------------------------- */

.filter-tab--desktop-only {
  display: none;
}

@media (min-width: 600px) {
  .filter-tab--desktop-only {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
}


/* ----------------------------------------------------------
   card-meta-top: category pill left, tier dot + CA pill right
   ---------------------------------------------------------- */

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

/* Group tier dot + CA pill together on the right */
.card-meta-top .tier-dot,
.card-meta-top .lang-pill {
  margin-left: 0;
}

/* Push tier dot to the right — it's always the first right-side element */
.card-meta-top .tier-dot {
  margin-left: auto;
}


/* detail-meta-top: same right-align for dot + CA */
.detail-meta-top .tier-dot {
  margin-left: auto;
}


/* ================================================================
   Phase 7C — Hamburger button
   ================================================================ */

.hamburger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
  margin-right: 6px;
}

.hamburger-btn:hover {
  color: var(--text);
  background: var(--bg-elevated);
}


/* ================================================================
   Phase 7C — Drawer overlay
   ================================================================ */

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 199;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.drawer-overlay--visible {
  display: block;
}


/* ================================================================
   Phase 7C — Drawer panel
   ================================================================ */

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer--open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  height: 48px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.drawer-close:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-sm) 0 var(--space-xl);
}

.drawer-section {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.drawer-section:last-child {
  border-bottom: none;
}

.drawer-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: var(--space-xs) var(--space-md) var(--space-xs);
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  font-size: 0.92rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font);
}

.drawer-link:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.drawer-link--active {
  color: var(--accent);
  font-weight: 600;
}

.drawer-link-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  flex-shrink: 0;
}

.drawer-theme-toggle {
  font-size: 0.92rem;
}


/* ================================================================
   Phase 7H — Light theme variables
   ================================================================ */

[data-theme="light"] {
  --bg:           #f8f7f4;
  --bg-card:      #ffffff;
  --bg-card-hover:#f0efe9;
  --bg-elevated:  #efefeb;
  --border:       #e0ddd5;
  --border-light: #d0cdc5;

  --text:         #1a1a1a;
  --text-muted:   #666666;
  --text-dim:     #aaaaaa;

  --accent:       #c8a000;
  --accent-dark:  #a88000;
}

/* Light theme: card borders more visible */
[data-theme="light"] .event-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

[data-theme="light"] .site-header,
[data-theme="light"] .filter-bar {
  background: var(--bg);
  border-bottom-color: var(--border);
}

[data-theme="light"] .drawer {
  background: var(--bg-card);
  border-right-color: var(--border);
}

/* Light theme: category pills adjust */
[data-theme="light"] .list-cat-pill--nightlife,
[data-theme="light"] .category-nightlife {
  background: rgba(180,50,100,0.12);
}


/* ================================================================
   Phase 7C — Curated page wrapper
   ================================================================ */

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

.curated-back {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  margin-top: var(--space-lg);
}


/* ================================================================
   Static pages (about.php, community.php)
   ================================================================ */

.static-page {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.static-page-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: var(--space-lg);
}

.static-page-h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: var(--space-lg) 0 var(--space-sm);
}

.static-page-body p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}

.static-page-body strong {
  color: var(--text);
  font-weight: 600;
}

.static-page-cta {
  display: inline-flex;
  width: auto;
  padding: 12px var(--space-lg);
  margin: var(--space-md) 0;
}

.static-page-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: var(--space-sm);
}


/* ================================================================
   Phase 7B — Calendar filter bar
   Mobile:  Row 1: category + paid tabs + clear
            Row 2: neighbourhood select
   Desktop: Single row, all inline
   ================================================================ */

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

.cal-filter-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-sm) var(--space-sm);
}

/* Row 1: category + paid tabs + clear — all on one line, never wraps */
.cal-filter-row-1 {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}

/* Category select — compact width on mobile */
.cal-filter-row-1 .filter-select {
  max-width: 120px;
  font-size: 0.78rem;
  padding: 5px 22px 5px 8px;
  flex-shrink: 0;
}

/* Paid tabs group */
.cal-filter-row-1 .filter-group--tabs {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

/* Clear link — pushed to far right of row 1 */
.cal-filter-row-1 .cal-clear-link {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.cal-filter-row-1 .cal-clear-link:hover {
  color: var(--text);
}

/* Row 2: neighbourhood select — full width on mobile, auto on desktop */
.cal-filter-row-2 {
  display: flex;
}

.cal-neighbourhood-select {
  width: 100%;
  font-size: 0.78rem;
  padding: 5px 22px 5px 8px;
}

/* Desktop: single row, everything inline */
@media (min-width: 600px) {
  .cal-filter-bar-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
  }

  .cal-filter-row-1 {
    flex-shrink: 0;
  }

  .cal-filter-row-1 .filter-select {
    max-width: 150px;
  }

  .cal-filter-row-2 {
    flex-shrink: 0;
  }

  .cal-neighbourhood-select {
    width: auto;
    max-width: 160px;
  }
}


/* ================================================================
   Admin pages tab — collapsible page rows
   ================================================================ */

.page-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.page-row-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
}

.page-row-title {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-row-fields {
  padding: var(--space-md);
  border-top: 1px solid var(--border);
}


/* ================================================================
   Phase 7F — Social proof bar
   Slides up from bottom on mobile, appears below header on desktop
   ================================================================ */

.social-proof-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--accent);
  padding: 9px var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  z-index: 300;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.social-proof-bar--visible {
  transform: translateY(0);
}

.social-proof-text {
  flex: 1;
  color: #000;
  min-width: 0;
  text-align: center;
}

.social-proof-link {
  color: #000;
  text-decoration: none;
  font-weight: 600;
}

.social-proof-link:hover {
  text-decoration: underline;
}

.social-proof-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.15);
  border: none;
  border-radius: var(--radius-sm);
  color: #000;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
  padding: 0;
}

.social-proof-close:hover {
  background: rgba(0,0,0,0.25);
}

@media (min-width: 600px) {
  .social-proof-bar {
    font-size: 0.9rem;
  }
}


/* ================================================================
   Phase 7C — Quick-tag overlay (admin only)
   ================================================================ */

.quick-tag-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
}

/* Make card position relative so overlay is anchored */
.event-card {
  position: relative;
}

.quick-tag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  padding: 0;
  backdrop-filter: blur(4px);
}

.quick-tag-btn:hover {
  background: rgba(0,0,0,0.8);
  color: var(--accent);
}

.quick-tag-panel {
  position: absolute;
  top: 32px;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  min-width: 180px;
  max-width: 220px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  z-index: 20;
}

.quick-tag-existing {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: var(--space-xs);
}

.quick-tag-form {
  display: flex;
  gap: 4px;
}

.quick-tag-input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.78rem;
  padding: 4px 6px;
  min-width: 0;
}

.quick-tag-input:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}

.quick-tag-save {
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  cursor: pointer;
  flex-shrink: 0;
}


/* ================================================================
   Admin resources section
   ================================================================ */

.admin-resources {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.admin-resources-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: var(--space-sm);
}

.admin-resource-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  padding: 4px 0;
}

.admin-resource-link:hover {
  text-decoration: underline;
}


/* ================================================================
   Phase 8 — list view title desktop truncation
   app.css section 18 owns all mobile list layout.
   This only adds the desktop truncation override.
   ================================================================ */

@media (min-width: 600px) {
  .list-row-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ================================================================
   Phase 10 — "shows" category
   Trade fairs, expos, conventions, comic/manga cons, motor shows.
   Colour: warm amber (#f59e0b) — distinct from food (gold) and arts (orange).
   ================================================================ */

/* CSS variable — add alongside existing --cat-* vars in app.css :root.
   Because we can't edit app.css, we declare it here on :root instead.
   This works identically — later declarations on same selector win. */
:root {
  --cat-shows: #f59e0b;
}

/* Category pill */
.category-shows {
  background: rgba(245, 158, 11, 0.15);
  color: var(--cat-shows);
}

/* Card placeholder (no image fallback) */
.card-placeholder--cat-shows {
  background: color-mix(in srgb, var(--cat-shows) 20%, var(--bg-elevated));
  color: var(--cat-shows);
}
