:root {
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --brand: #c2410c;
  --brand-2: #f59e0b;
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --border: #e2e6ef;
  --shadow: 0 10px 28px rgba(17, 24, 39, 0.08);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --pad-card: 16px;
  --pad-hero: 14px 16px;
}

[data-bs-theme="dark"] {
  --bg: #0b1222;
  --card: #111827;
  --text: #e8ecf8;
  --muted: #9da8c1;
  --border: #1f2a3f;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] .btn-outline-secondary {
  color: #9fb0d8;
  border-color: #5d6f95;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover,
[data-bs-theme="dark"] .btn-outline-secondary:focus {
  color: #e8ecf8;
  border-color: #9fb0d8;
  background: rgba(159, 176, 216, 0.12);
}

[data-bs-theme="dark"] .link-secondary {
  color: #9fb0d8 !important;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}

h1, h2, h3 {
  font-family: var(--font-display);
}

.navbar-branding {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text) !important;
}

.navbar-branding .navbar-nav .nav-link,
.navbar-branding .navbar-toggler {
  color: var(--text);
}

.navbar-branding .navbar-nav .nav-link:hover,
.navbar-branding .navbar-nav .nav-link:focus {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-sm);
}

.logo-mark {
  border-radius: var(--radius-sm);
}

.theme-toggle {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
}

.theme-toggle:hover {
  filter: brightness(0.95);
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.btn-primary:hover,
.btn-primary:focus {
  filter: brightness(0.95);
  border-color: var(--brand);
}

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.card-title {
  font-weight: 700;
  color: var(--text);
}

.card-subtitle,
.text-muted {
  color: var(--muted) !important;
}

.page-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--pad-hero);
  box-shadow: var(--shadow);
}

.hero-visual {
  border-radius: var(--radius-lg);
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.hero-visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.55));
  border-radius: var(--radius-lg);
  z-index: 1;
  pointer-events: none;
}

.hero-visual-content {
  position: relative;
  z-index: 2;
  padding: 96px 34px;
  color: #fff;
}

.hero-visual h1 {
  color: #fff;
  margin-bottom: 8px;
}

.hero-visual .text-muted {
  color: rgba(255, 255, 255, 0.78) !important;
}

.filter-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  margin: 0;
}

.filter-bar label {
  font-weight: 600;
  color: var(--text);
}

.filter-bar .form-select,
.filter-bar .form-control {
  border-radius: var(--radius-sm);
}

.thumb-poster {
  max-height: 180px;
  height: 180px;
  object-fit: cover;
  object-position: top;
  width: 100%;
  border-radius: var(--radius-sm);
}

.poster-large {
  max-height: 520px;
  object-fit: contain;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--text);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.badge-golden-ticket {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #0b1222;
  border: 1px solid rgba(15, 23, 42, 0.18);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.golden-ticket-callout {
  border: 0;
  background: transparent;
  padding: 0;
}

[data-bs-theme="dark"] .golden-ticket-callout {
  background: transparent;
  border-color: transparent;
}

footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  color: var(--text);
}

/* FullCalendar theme tweaks */
.fc .fc-toolbar.fc-header-toolbar {
  margin-bottom: 1.5rem;
}

.fc .fc-toolbar-title {
  text-transform: capitalize;
  color: var(--text);
  font-family: var(--font-display);
}

.fc .fc-button-primary {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.fc .fc-button-primary:not(:disabled):hover,
.fc .fc-button-primary:not(:disabled):focus {
  filter: brightness(0.95);
  border-color: var(--brand);
}

.map-container {
  height: 420px;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.map-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.map-meta .map-title {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
}

.map-hint {
  color: var(--muted);
  font-size: 0.95rem;
}

.fc-theme-standard .fc-scrollgrid {
  border-color: var(--border);
}

.fc .fc-col-header-cell-cushion {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.fc .fc-daygrid-day-number {
  color: var(--muted);
  text-decoration: none;
}

.fc .fc-daygrid-day.fc-day-today {
  background: rgba(249, 115, 22, 0.08);
}

.fc .fc-daygrid-event {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid var(--brand);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
}
