/* ============================================================
   ROYAL TICKETS · EVENT DETAILS
   File: /assets/css/pages/event-details.css

   Image ratios:
   - Hero banner: 1600×600 => 8:3
   - Posters/photos: 1200×800 => 3:2
============================================================ */

/* ------------------------------------------------------------
   Tokens (uses same palette as main.css, but safe standalone)
------------------------------------------------------------ */
:root {
  --gold-light: #f5dd66;
  --gold-dark: #dab241;
  --gold-glow: rgba(245, 221, 102, 0.45);

  --glass-dark: rgba(0, 0, 0, 0.65);
  --glass-mid: rgba(0, 0, 0, 0.45);

  --text-muted: rgba(240, 240, 240, 0.84);
  --border-gold: rgba(245, 221, 102, 0.28);

  --danger: #ff3b3b;
  --success: #16a34a;

  --max-content-width: 1300px;
  --right-col-width: 420px;
}

* {
  box-sizing: border-box;
}

/* ------------------------------------------------------------
   HERO (8:3 image)
------------------------------------------------------------ */
.evt-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(245, 221, 102, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.evt-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 3; /* 1600x600 */
  min-height: 260px;
  background: rgba(255, 255, 255, 0.04);
}

.evt-hero-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.evt-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.88) 100%
  );
  pointer-events: none;
}

.evt-hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.35rem 1.25rem;
}

.evt-title {
  margin: 0;
  font-size: clamp(1.55rem, 3.2vw, 2.8rem);
  font-weight: 900;
  color: var(--gold-light);
  text-shadow: 0 0 18px var(--gold-glow);
  line-height: 1.03;
}

.evt-tagline {
  margin: 0;
  max-width: 70ch;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  line-height: 1.5;
}

/* Hero badges */
.evt-hero-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 210px;
  align-items: flex-start;
}

.badge-soldout,
.badge-started {
  width: 100%;
  text-align: center;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.badge-soldout {
  background: linear-gradient(135deg, var(--danger), #b30000);
  border-color: rgba(255, 0, 0, 0.2);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.28);
}

.badge-started {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  border-color: rgba(245, 221, 102, 0.25);
  color: #000;
  box-shadow: 0 0 16px rgba(245, 221, 102, 0.32);
}

.badge-started.small,
.badge-soldout.small {
  width: auto;
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.55rem;
}

/* Hero chips */
.evt-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.evt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(245, 221, 102, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 750;
  font-size: 0.92rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.evt-chip i {
  width: 18px;
  height: 18px;
  color: var(--gold-light);
}

/* Countdown */
.evt-countdown {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.cd-block {
  padding: 0.5rem 0.85rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-gold);
  border-radius: 0.7rem;
  min-width: 64px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.cd-num {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--gold-light);
}
.cd-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Mobile CTA */
.evt-mobile-only {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.7rem 0.95rem;
  border-radius: 0.75rem;
  text-decoration: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(245, 221, 102, 0.28);
}

@media (min-width: 780px) {
  .evt-mobile-only {
    display: none !important;
  }
}

.evt-ended-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--danger), #b30000);
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 0.75rem;
  font-weight: 900;
  border: 1px solid rgba(255, 0, 0, 0.12);
}

/* ------------------------------------------------------------
   MAIN GRID
------------------------------------------------------------ */
.evt-main-grid {
  max-width: var(--max-content-width);
  margin: 1.7rem auto 3.5rem;
  padding: 0 0.25rem;
  display: grid;
  grid-template-columns: 1fr minmax(300px, var(--right-col-width));
  gap: 1.6rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .evt-main-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }
}

/* Headings */
.evt-heading {
  font-size: 1.45rem;
  font-weight: 900;
  margin: 1.1rem 0 0.75rem;
  color: var(--gold-light);
  text-shadow: 0 0 10px var(--gold-glow);
}

.evt-description {
  line-height: 1.75;
  color: var(--text-muted);
  font-size: 1.02rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 221, 102, 0.14);
  padding: 1.1rem;
  border-radius: 14px;
}

/* Info grid */
.evt-info-grid {
  background: var(--glass-dark);
  border: 1px solid var(--border-gold);
  padding: 1.15rem;
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
}

.evt-info-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
}

.evt-info-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 900;
  color: rgba(245, 221, 102, 0.95);
  margin-bottom: 0.35rem;
}

.evt-info-label i {
  width: 18px;
  height: 18px;
  color: rgba(245, 221, 102, 0.95);
}

.evt-info-value {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.evt-info-social {
  grid-column: 1 / -1;
}

.evt-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.evt-social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(245, 221, 102, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: var(--gold-light);
  text-decoration: none;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}
.evt-social-row a:hover {
  transform: translateY(-2px);
  background: rgba(245, 221, 102, 0.12);
}
.evt-social-row a i {
  width: 20px;
  height: 20px;
}

/* Promo button */
.evt-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(245, 221, 102, 0.22);
  background: rgba(245, 221, 102, 0.1);
  color: rgba(245, 221, 102, 0.98);
  text-decoration: none;
  font-weight: 900;
}
.evt-video-btn:hover {
  background: rgba(245, 221, 102, 0.16);
}

/* ------------------------------------------------------------
   GALLERY (Poster ratio 3:2)
------------------------------------------------------------ */
.evt-gallery-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.evt-gallery-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(245, 221, 102, 0.18);
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}

.evt-gallery-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 221, 102, 0.35);
}

.evt-gallery-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2; /* 1200x800 */
  object-fit: cover;
  display: block;
}

/* ------------------------------------------------------------
   SPONSORS
------------------------------------------------------------ */
.evt-sponsor-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

.evt-sponsor-card {
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 221, 102, 0.14);
}

.evt-sponsor-logo {
  height: 60px;
  max-width: 170px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
}

/* ------------------------------------------------------------
   RIGHT COLUMN: TICKETS
------------------------------------------------------------ */
.evt-right {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-gold);
  padding: 1.25rem;
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 110px;
  height: max-content;
  z-index: 40;
}

@media (max-width: 900px) {
  .evt-right {
    position: static;
    top: auto;
    margin-top: 1.1rem;
  }
  body.with-floating-bar .evt-right {
    margin-bottom: 86px;
  }
}

.evt-muted {
  color: rgba(255, 255, 255, 0.75);
}
.evt-soldout-msg {
  color: var(--danger);
  font-weight: 900;
}

/* Ticket cards */
.evt-ticket-list {
  display: grid;
  gap: 1rem;
}

.evt-ticket-card {
  padding: 1.05rem;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid var(--border-gold);
  border-radius: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}
.evt-ticket-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 221, 102, 0.35);
}

.evt-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.evt-ticket-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 950;
  color: rgba(245, 221, 102, 0.95);
}

.evt-ticket-price {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 950;
  color: rgba(245, 221, 102, 0.95);
}

.sold-out-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 0.65rem;
  font-weight: 950;
  font-size: 0.78rem;
  background: linear-gradient(135deg, var(--danger), #b30000);
  color: #fff;
  border: 1px solid rgba(255, 0, 0, 0.18);
}

.remaining-badge {
  display: inline-block;
  font-size: 0.84rem;
  color: rgba(245, 221, 102, 0.9);
}

/* Qty */
.evt-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.evt-qty-label {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.85);
}

.qty-input {
  width: 92px;
  text-align: center;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid var(--border-gold);
  color: #fff;
  padding: 0.55rem;
  border-radius: 0.7rem;
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease;
  -webkit-appearance: none;
}
.qty-input:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 12px var(--gold-glow);
}
.qty-input[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.qty-disabled {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(55%);
}

/* Divider */
.evt-divider {
  border: none;
  height: 1px;
  background: rgba(245, 221, 102, 0.18);
  margin: 1rem 0;
}

/* Buyer form */
.evt-subheading {
  font-size: 1.1rem;
  font-weight: 950;
  color: rgba(245, 221, 102, 0.95);
  margin: 0 0 0.75rem;
}

.evt-buyer-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.evt-field label {
  color: rgba(245, 221, 102, 0.92);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  display: block;
  font-weight: 900;
}

.evt-input {
  width: 100%;
  padding: 0.85rem;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid var(--border-gold);
  border-radius: 0.75rem;
  color: #fff;
}
.evt-input:focus {
  outline: none;
  border-color: rgba(245, 221, 102, 0.45);
  box-shadow: 0 0 12px rgba(245, 221, 102, 0.22);
}

/* Buttons */
.evt-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.evt-ticket-btn {
  flex: 1;
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  cursor: pointer;
  border: none;
  font-weight: 950;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #000;
  box-shadow: 0 0 16px rgba(245, 221, 102, 0.28);
}
.evt-ticket-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(245, 221, 102, 0.45);
}

.evt-free-btn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

@media (max-width: 420px) {
  .evt-actions {
    flex-direction: column;
  }
}

/* ------------------------------------------------------------
   RELATED CAROUSEL (Poster ratio 3:2)
------------------------------------------------------------ */
.evt-carousel-section {
  margin-top: 2.2rem;
}

.evt-carousel-wrapper {
  position: relative;
}

.evt-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0.5rem 0 0.9rem;
}

.evt-carousel-card {
  min-width: 240px;
  max-width: 270px;
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(245, 221, 102, 0.18);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
  overflow: hidden;
}
.evt-carousel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 221, 102, 0.35);
}

.evt-carousel-poster {
  position: relative;
  aspect-ratio: 3 / 2; /* 1200x800 */
  background: rgba(255, 255, 255, 0.04);
}

.evt-carousel-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.evt-carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.65));
  pointer-events: none;
}

.evt-carousel-title {
  margin: 0;
  padding: 0.85rem;
  font-size: 0.98rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.25;
}

.evt-carousel-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

/* Arrows */
.evt-carousel-arrow {
  position: absolute;
  top: 38%;
  padding: 0.6rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(245, 221, 102, 0.25);
  cursor: pointer;
  z-index: 60;
}
.evt-carousel-arrow.left {
  left: -14px;
}
.evt-carousel-arrow.right {
  right: -14px;
}
.evt-carousel-arrow:hover {
  transform: translateY(-2px);
  background: rgba(245, 221, 102, 0.12);
}

/* ------------------------------------------------------------
   FLOATING SUMMARY BAR
------------------------------------------------------------ */
.evt-summary-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(110%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.1rem;
  height: 72px;
  background: rgba(0, 0, 0, 0.78);
  border-top: 1px solid rgba(245, 221, 102, 0.2);
  backdrop-filter: blur(14px);
  opacity: 0;
  z-index: 99999;
  pointer-events: none;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.9, 0.22, 1),
    opacity 0.25s ease;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
}

.evt-summary-bar.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.evt-summary-bar .summary-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: rgba(245, 221, 102, 0.95);
  font-weight: 900;
}

.summary-checkout-btn {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  padding: 0.72rem 1rem;
  color: #000;
  font-weight: 950;
  font-size: 1rem;
  border-radius: 0.8rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(245, 221, 102, 0.3);
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease;
}
.summary-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(245, 221, 102, 0.42);
}

body.with-floating-bar {
  padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
}

/* ------------------------------------------------------------
   Toast + input error
------------------------------------------------------------ */
.input-error {
  border-color: #ff3b3b !important;
  box-shadow: 0 0 12px rgba(255, 59, 59, 0.55) !important;
}

.evt-toast {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  max-width: 92%;
  min-width: 220px;
  background: rgba(255, 60, 60, 0.92);
  padding: 0.95rem 1.2rem;
  border-radius: 0.9rem;
  color: #fff;
  font-weight: 900;
  text-align: center;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}
.evt-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Small screens */
@media (max-width: 700px) {
  .evt-hero-inner {
    padding: 1.1rem 1rem;
  }
  .evt-title {
    font-size: clamp(1.45rem, 6vw, 2.25rem);
  }
  .evt-main-grid {
    margin-top: 1.25rem;
  }
  .evt-right {
    padding: 1rem;
  }
}
