/* Base */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --success: #16a34a;
  --danger: #dc2626;
  --bg: #f8fafc;
  --card-shadow: 0 4px 20px rgba(0,0,0,.08);
}

body {
  font-size: 1.1rem;
  background: var(--bg);
  color: #1e293b;
  line-height: 1.65;
}

/* 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: 3px solid var(--primary);
  outline-offset: 2px;
}

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