@import url("/assets/store.css");

:root {
  --site-bg: var(--bg);
  --site-surface: rgba(255, 255, 255, 0.04);
  --site-border: rgba(255, 255, 255, 0.16);
  --site-accent: #e62c7b;
}

body.site-body {
  background: var(--site-bg);
  color: #f7f4ff;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 28px;
  background: rgba(5, 10, 20, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 10;
}

.site-nav__logo {
  display: flex;
  align-items: center;
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-link {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-link.active,
.nav-link:hover {
  color: #f8fafc;
  border-bottom-color: var(--site-accent);
}

.site-nav__auth {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
}

.site-nav__wrapper {
  display: flex;
  align-items: center;
  gap: 18px;
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid var(--site-border);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.logo-link {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
}

.logo-img {
  height: 32px;
  display: block;
}

.tabs {
  display: inline-flex;
  gap: 8px;
  margin: 8px 0 16px;
}

.tab {
  padding: 10px 16px;
  border: 1px solid var(--site-border);
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
}

.tab.active {
  border-color: #6de2ff;
  color: #0b1021;
  background: linear-gradient(135deg, #6de2ff, #7c5cff);
}

.account-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.account-bar .divider {
  color: #475569;
}

.pill.warning {
  background: rgba(251, 191, 36, 0.15);
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.4);
}

.cards-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cards-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cards-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.content-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--site-border);
  background: rgba(255, 255, 255, 0.04);
}

.content-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.content-card__actions {
  margin-top: auto;
}

.home-hero h1 {
  font-size: 38px;
  letter-spacing: -0.02em;
}

.home-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.widget {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--site-border);
  background: rgba(7, 12, 24, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.widget-hero {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(109, 226, 255, 0.18), rgba(124, 92, 255, 0.14));
  border-color: rgba(109, 226, 255, 0.45);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}

.widget-link {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
}

.widget .inline-item {
  background: rgba(0, 0, 0, 0.2);
}

.list-day {
  margin-bottom: 24px;
}

.list-day__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.list-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--site-border);
  background: rgba(255, 255, 255, 0.03);
}

.list-row__main h3 {
  margin: 0 0 4px;
}

.list-row__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.stats-card {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--site-border);
  background: rgba(7, 12, 24, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.stats-chart {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 16px;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--site-border);
  background: rgba(255, 255, 255, 0.03);
}

.stats-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.stats-value {
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}

.stats-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stats-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.stats-bar__track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.stats-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6de2ff, #7c5cff);
}

.stats-actions {
  margin-top: 12px;
}

.cinema {
  background: #05070b;
  padding-bottom: 32px;
}

.cinema-shell {
  padding-top: 28px;
}

.cinema-hero h1 {
  color: #f8fafc;
}

.cinema-section {
  margin-top: 24px;
}

.cinema-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.cinema-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 6px;
}

.cinema-carousel::-webkit-scrollbar {
  display: none;
}

.cinema-card {
  flex: 0 0 auto;
  width: 280px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b111c;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cinema-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.cinema-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111827;
}

.cinema-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cinema-info {
  padding: 12px 14px 16px;
}

.cinema-title {
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 6px;
}

.cinema-actions {
  display: flex;
  gap: 8px;
}

.cinema-arrow {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
}

.cinema-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.cinema-modal.open {
  display: flex;
}

.cinema-modal__player {
  width: min(960px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.cinema-modal__player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.cinema-modal__close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 32px;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.card.highlight {
  background: linear-gradient(135deg, rgba(109, 226, 255, 0.15), rgba(124, 92, 255, 0.12));
  border-color: #233152;
}

.card.onboarding {
  margin-top: 24px;
}

.calendar-card {
  background: rgba(255, 255, 255, 0.02);
}

.calendar-controls,
.filter-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.calendar-controls label,
.filter-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #e2e8f0;
}

.calendar-controls select,
.filter-controls select {
  background: var(--site-bg);
  color: #e2e8f0;
  border: 1px solid var(--site-border);
  padding: 8px 12px;
  border-radius: 10px;
  min-width: 160px;
}

.legend {
  display: flex;
  gap: 8px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--site-border);
  color: #cbd5e1;
}

.badge-holiday {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.4);
}

.badge-game {
  background: rgba(244, 114, 182, 0.15);
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.4);
}

.badge-default {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

.badge-dot {
  width: 14px;
  height: 14px;
  display: inline-block;
  padding: 0;
}

.legend-label {
  margin-right: 8px;
  font-size: 12px;
  color: #cbd5e1;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-cell {
  min-height: 120px;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.calendar-cell.header {
  text-align: center;
  font-weight: 700;
  background: transparent;
  border: none;
  color: #94a3b8;
  min-height: auto;
}

.calendar-cell.day {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.day-number {
  font-weight: 800;
  color: #e2e8f0;
}

.event-chip {
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--site-border);
}

.event-link {
  color: #e0f2fe;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.event-link:hover {
  text-decoration: underline;
}

.event-location {
  display: block;
  font-size: 11px;
  color: #b4c3dd;
}

.calendar-list-mobile {
  display: none;
}
.calendar-list-mobile.list-stack {
  display: none;
}
.list-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-card {
  display: grid;
  grid-template-columns: 1.2fr 2fr 0.6fr;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
}

.event-card.compact {
  grid-template-columns: 1fr 1.6fr 0.4fr;
  gap: 12px;
}

.event-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.event-dates {
  display: flex;
  gap: 10px;
}

.date-pill {
  border: 1px solid var(--site-border);
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  min-width: 110px;
}

.event-actions {
  text-align: right;
}

.calendar-list-mobile .event-card {
  grid-template-columns: 1fr;
  align-items: flex-start;
  padding: 14px;
}

.calendar-list-mobile .event-dates {
  flex-wrap: wrap;
}

.calendar-list-mobile .date-pill {
  min-width: 0;
  flex: 1 1 140px;
}

.calendar-list-mobile .event-actions {
  text-align: left;
  width: 100%;
}

.calendar-list-mobile .event-actions .btn {
  width: 100%;
  justify-content: center;
}

.calendar-list-mobile .event-body h3 {
  font-size: 15px;
}

.site-footer {
  margin-top: 48px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--site-border);
  background: rgba(0, 0, 0, 0.25);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
}

.footer-info {
  align-self: flex-end;
  text-align: right;
}

.inline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inline-item {
  display: grid;
  grid-template-columns: 0.8fr 2fr;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.mini-date {
  border-right: 1px solid var(--site-border);
  padding-right: 8px;
  font-size: 13px;
}

.mini-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.pill-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.table-row {
  display: grid;
  grid-template-columns: 1.8fr 1fr 0.7fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 900px) {
  .site-nav {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .site-nav__links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
  }
  .site-nav__auth {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .site-nav__wrapper {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    order: 3;
  }
  .site-nav__wrapper.open {
    display: flex;
  }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    order: 2;
  }
  .site-nav__links {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
  .nav-link {
    padding: 6px 0;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-widgets {
    grid-template-columns: 1fr;
  }
  .widget-hero {
    grid-column: auto;
  }
  .list-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .stats-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .cinema-card {
    width: 220px;
  }
  .event-card {
    grid-template-columns: 1fr;
  }
  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calendar-controls {
    align-items: flex-start;
  }
  .calendar-desktop {
    display: none;
  }
  .calendar-list-mobile {
    display: block;
  }
  .calendar-list-mobile.list-stack {
    display: flex;
  }
  .table-row {
    grid-template-columns: 1fr;
  }
}
