/* ============ THEME & BASE ============ */
:root {
  --bg: #1a1a1a;
  --bg-alt: #2c2c2c;
  --text: #f0f0f0;
  --text-muted: #a0a0a0;
  --accent: #ffc107;
  --border: #444;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER ============ */
.main-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.main-header .wrap {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }

.main-nav { display: flex; gap: 32px; }
.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  padding: 26px 0;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.user-actions { display: flex; align-items: center; gap: 16px; }

/* ============ HERO SECTION ============ */
.hero {
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 48px;
  color: #fff;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-content h1 {
  font-size: 4rem;
  margin: 0 0 10px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.hero-content p {
  font-size: 1.5rem;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ============ EVENT LIST / CAROUSEL ============ */
.events-section {
  padding: 48px 0;
}
.events-section h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  padding-left: 24px;
}

.event-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
  color: #fff;
  display: flex;
  align-items: flex-end;
  transition: transform .2s;
}
.event-card:hover {
  transform: scale(1.05);
}
.event-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.event-card .info {
  position: relative;
  z-index: 2;
  padding: 16px;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.event-card h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}
.event-card .meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============ BUTTONS ============ */
.btn {
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s;
  font-weight: 600;
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

/* ============ MODAL ============ */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; z-index: 100;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.modal.open { opacity: 1; visibility: visible; }
.panel {
  background: var(--bg-alt);
  max-width: 500px; width: 100%;
  border-radius: 12px; border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(0,0,0,.3);
  transform: scale(.95); transition: transform .2s;
}
.modal.open .panel { transform: scale(1); }
.panel header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.panel header h3 { margin: 0; font-size: 1.2rem; }
.panel .panel-body { padding: 20px; }
.close {
  background: none; border: 0; font-size: 24px;
  cursor: pointer; color: var(--text-muted);
}
.close:hover { color: var(--text); }

/* ============ DETAILS MODAL ============ */
#details-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
#details-content img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
}
#details-info h4 {
  margin: 0 0 10px;
  font-size: 1.8rem;
}
#details-info .meta-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--text-muted);
}
#details-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}
#details-price {
  font-size: 1.5rem;
  font-weight: bold;
}


/* ============ CART ============ */
.cart {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 380px;
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
  z-index: 60;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease-in-out;
}
.cart.open {
  transform: translateX(0);
  box-shadow: -10px 0 30px rgba(0,0,0,0.2);
}
.cart header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart header h3 { margin: 0; font-size: 1.3rem; }
.cart .cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  background: var(--bg);
  padding: 12px;
  border-radius: 8px;
}
.cart-item .name { font-weight: 600; }
.cart-item .price { color: var(--text-muted); }
.cart-item .remove-btn {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
}
.cart-item .remove-btn:hover { background: #c82828; color: #fff; border-color: #c82828; }
.cart footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.cart .total { font-size: 1.5rem; font-weight: bold; margin-bottom: 16px; }

/* ============ PAYMENT OPTIONS ============ */
.payment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg);
  padding: 12px;
  border-radius: 8px;
}
.payment-options input[type="radio"] { display: none; }
.payment-options label {
  flex-grow: 1;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.payment-options input[type="radio"]:checked + label {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: bold;
}
.badge {
  background: var(--accent);
  color: #000;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: .75rem;
  vertical-align: super;
  margin-left: 4px;
}
