/* ── EvenX design tokens ─────────────────────────── */
:root {
  /* Core palette */
  --bg: #FAFAF7;
  --ink: #16161D;
  --ink-soft: #5A5A66;
  --brand: #4F46E5;
  --brand-dark: #3730A3;
  --line: #E7E5DF;
  --card: #FFFFFF;

  /* Category colors — future use (no UI yet) */
  /* --cat-musica: #E11D48;   */
  /* --cat-cultura: #0EA5E9;  */
  /* --cat-outdoor: #16A34A;  */
  /* --cat-food: #F59E0B;     */
  /* --cat-business: #9333EA; */

  /* Shape & elevation */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22,22,29,.04), 0 8px 24px rgba(22,22,29,.06);
  --shadow-hover: 0 4px 8px rgba(22,22,29,.06), 0 16px 40px rgba(22,22,29,.12);

  /* Legacy aliases — keep for non-home pages */
  --primary: var(--brand);
  --primary-dark: var(--brand-dark);
  --accent: #f59e0b;
  --success: #16a34a;
  --danger: #dc2626;
  --card-shadow: var(--shadow);

  /* Bootstrap overrides */
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--ink);
  --bs-primary: var(--brand);
  --bs-primary-rgb: 79, 70, 229;
  --bs-border-color: var(--line);
  --bs-border-radius: var(--radius);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar-brand {
  font-size: 1.4rem;
  font-weight: 700;
}
.navbar .nav-link {
  font-size: 1.05rem;
  padding: 0.5rem 0.9rem;
}

/* Cards */
.event-card {
  border: none;
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  transition: transform .15s, box-shadow .15s;
  overflow: hidden;
  height: 100%;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
}
.event-card .card-img-top {
  height: 200px;
  object-fit: cover;
}
.event-card .card-img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

/* Seat badges */
.badge-seats-ok   { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.badge-seats-low  { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.badge-seats-none { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.badge-seats-unlimited { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }

/* Buttons */
.btn {
  font-size: 1.05rem;
  border-radius: 0.6rem;
}
.btn-lg {
  font-size: 1.15rem;
  padding: 0.75rem 1.75rem;
  min-height: 52px;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Forms */
.form-control, .form-select {
  font-size: 1.05rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.6rem;
  min-height: 48px;
}
.form-label {
  font-weight: 600;
  font-size: 1.05rem;
}
.form-text {
  font-size: 0.92rem;
}

/* Auth pages */
.auth-card {
  max-width: 480px;
  margin: 2rem auto;
  border: none;
  border-radius: 1.2rem;
  box-shadow: var(--card-shadow);
  padding: 2.5rem;
}
.auth-card h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  margin-bottom: 2.5rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
}
.hero p {
  font-size: 1.2rem;
  opacity: .9;
}

/* Section titles */
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* ── Sticky slots column ──────────────────────────── */
.slots-sticky {
  position: sticky;
  top: 1.5rem;
  align-self: flex-start;
}

/* ── Slots panel ──────────────────────────────────── */
.slots-panel {
  background: #fff;
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  padding: 1.25rem 1.1rem;
}
.slots-panel-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}

/* ── Slot card ────────────────────────────────────── */
.slot-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .8rem .75rem;
  border-radius: .75rem;
  border: 1px solid #e9eef4;
  margin-bottom: .6rem;
  background: #fff;
  transition: box-shadow .15s, border-color .15s;
}
.slot-card:last-child { margin-bottom: 0; }
.slot-card:hover { box-shadow: 0 3px 14px rgba(0,0,0,.08); border-color: #c7d7f0; }

/* calendar chip */
.slot-cal {
  flex-shrink: 0;
  width: 54px;
  border-radius: .5rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  text-align: center;
  line-height: 1;
}
.slot-cal-month {
  background: var(--primary);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .09em;
  padding: .28rem 0;
}
.slot-cal-day {
  font-size: 1.45rem;
  font-weight: 800;
  color: #1e293b;
  padding: .2rem 0 .05rem;
}
.slot-cal-wd {
  font-size: .6rem;
  color: #94a3b8;
  padding: .1rem 0 .28rem;
  text-transform: capitalize;
}

/* info column */
.slot-info { flex: 1; min-width: 0; }
.slot-time {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}
.slot-meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  font-size: .78rem;
  color: #64748b;
  margin-top: .18rem;
}

/* book button */
.slot-action { flex-shrink: 0; }
.btn-book {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: .45rem 1rem;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
  letter-spacing: .01em;
}
.btn-book:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
  color: #fff;
}
.btn-book:active { transform: translateY(0); }
.btn-book:disabled,
.btn-book.btn-book-full {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Event detail */
.event-description img { max-width: 100%; }
.cover-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

/* Profile tabs */
.nav-tabs .nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: #64748b;
  border-radius: 0.5rem 0.5rem 0 0;
}
.nav-tabs .nav-link.active {
  color: var(--primary);
}

/* Footer */
footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 2rem 0;
  margin-top: 4rem;
  font-size: 0.95rem;
}
footer a { color: #93c5fd; }

/* Favourite heart */
.btn-fav {
  background: none;
  border: 2px solid #e2e8f0;
  color: #94a3b8;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  font-size: 1.1rem;
  padding: 0;
}
.btn-fav.active, .btn-fav:hover {
  border-color: #f43f5e;
  color: #f43f5e;
  background: #fff1f2;
}

/* Language switcher */
.lang-switcher .btn {
  font-size: 0.9rem;
  padding: 0.25rem 0.65rem;
  min-height: 32px;
}

/* Alerts */
.alert { font-size: 1.05rem; border-radius: 0.6rem; }

/* Accessibility: focus outlines */
*:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 2px;
}

/* ── EvenX Navbar ──────────────────────────────────────────── */
.evx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,247,.88) !important;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 !important;
}
.evx-header .navbar-toggler {
  border-color: var(--line);
  padding: 6px 10px;
}
.evx-header .navbar-toggler:focus { box-shadow: 0 0 0 2px var(--brand); }
.evx-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2316161D' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.evx-nav-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 16px;
}
.evx-logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.02em;
  color: var(--ink) !important;
  text-decoration: none !important;
  flex-shrink: 0;
}
.evx-logo-x { color: var(--brand); }
.evx-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.evx-nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 8px;
  transition: color .15s;
  white-space: nowrap;
}
.evx-nav-link:hover { color: var(--ink); text-decoration: none; }
.evx-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  padding: 9px 18px;
  text-decoration: none !important;
  display: inline-block;
  transition: transform .15s, background .15s;
  line-height: 1.4;
  white-space: nowrap;
}
.evx-btn-primary { background: var(--brand); color: #fff !important; }
.evx-btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); color: #fff !important; }
.evx-btn-ghost { background: transparent; color: var(--ink) !important; border: 1px solid var(--line); }
.evx-btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink) !important; }
.evx-lang {
  display: flex;
  gap: 4px;
  margin-left: 4px;
}
.evx-lang-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all .15s;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
}
.evx-lang-btn:hover, .evx-lang-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ── EvenX Footer ──────────────────────────────────────────── */
footer.evx-footer {
  background: var(--bg);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 0;
  font-size: 14px;
}
.evx-foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.evx-foot-row a { color: var(--ink-soft); text-decoration: none; }
.evx-foot-row a:hover { color: var(--ink); }
.evx-foot-links { display: flex; gap: 20px; }

/* ── EvenX Hero ────────────────────────────────────────────── */
.evx-hero {
  padding: 72px 0 48px;
  background: var(--bg);
  margin-bottom: 0;
}
.evx-hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.02;
  letter-spacing: -.03em;
  max-width: 15ch;
  color: var(--ink);
  margin: 0;
}
.evx-hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
  margin-top: 18px;
  max-width: 48ch;
  line-height: 1.55;
}
.evx-searchbar {
  margin-top: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  max-width: 680px;
}
.evx-searchbar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 10px 8px;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}
.evx-searchbar input::placeholder { color: var(--ink-soft); }
.evx-searchbar-divider { width: 1px; height: 28px; background: var(--line); flex-shrink: 0; }
.evx-searchbar-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  padding: 0 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.evx-ico { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── EvenX Events Section ──────────────────────────────────── */
.evx-section { padding: 48px 0 80px; }
.evx-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
}
.evx-sec-head h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0;
}

/* ── EvenX Grid ────────────────────────────────────────────── */
.evx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── EvenX Event Card ──────────────────────────────────────── */
.evx-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.evx-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.evx-thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
}
.evx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evx-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.evx-date-tab {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--card);
  border-radius: 10px;
  text-align: center;
  padding: 6px 10px;
  line-height: 1.1;
  box-shadow: var(--shadow);
  min-width: 44px;
}
.evx-date-tab-d {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  display: block;
}
.evx-date-tab-m {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: .06em;
  display: block;
}
.evx-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.evx-card-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}
/* stretch link: title <a> covers the whole card */
.evx-card-title-link {
  color: var(--ink);
  text-decoration: none;
}
.evx-card-title-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.evx-card-title-link:hover { color: var(--ink); text-decoration: none; }
.evx-card-date {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}
.evx-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
  position: relative;
  z-index: 2;
}
.evx-card-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
  display: inline-block;
  line-height: 1.4;
}
.evx-card-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  text-decoration: none;
}
.evx-card-btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff !important;
}
.evx-card-btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff !important;
}
.evx-card-btn-disabled {
  background: #f1f0ee;
  border-color: var(--line);
  color: var(--ink-soft) !important;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── EvenX Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .evx-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .evx-grid { grid-template-columns: 1fr; }
  .evx-hero { padding: 48px 0 32px; }
  .evx-searchbar { flex-direction: column; align-items: stretch; gap: 0; }
  .evx-searchbar-divider { display: none; }
  .evx-searchbar-loc { padding: 8px 14px; border-top: 1px solid var(--line); }
  .evx-searchbar .evx-btn { border-radius: 0 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px); width: 100%; text-align: center; }
  .evx-foot-row { flex-direction: column; text-align: center; }
  .evx-foot-links { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .evx-card, .evx-btn, .evx-card-btn, .evx-nav-link, .evx-lang-btn { transition: none !important; }
}

/* Privacy */
.privacy-content h2 { font-size: 1.35rem; font-weight: 700; margin-top: 2rem; }
.privacy-content p, .privacy-content li { font-size: 1.05rem; }

/* Spinner overlay */
.page-spinner {
  position: fixed; inset: 0; background: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}

@media (max-width: 576px) {
  .auth-card { padding: 1.5rem; }
  .hero { padding: 2.5rem 0 2rem; }
}
