﻿/* ================================================
   TicketsSA — Event Detail Page
   ================================================ */

/* ── Hero Banner ─────────────────────────────────── */
.ev-detail-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.ev-detail-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 20%;
  filter: brightness(.55) saturate(1.15);
  transition: transform 8s ease;
}
.ev-detail-hero:hover .ev-detail-hero__img { transform: scale(1.03); }
.ev-detail-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(3,8,4,.98) 0%,
    rgba(3,8,4,.7)  40%,
    rgba(3,8,4,.15) 75%,
    rgba(3,8,4,0)   100%);
}
.ev-detail-hero__content {
  position: relative; z-index: 2;
  padding-bottom: 40px;
}
.ev-detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8125rem; font-weight: 600; color: rgba(255,255,255,.55);
  text-decoration: none; margin-bottom: 20px;
  transition: color .2s;
}
.ev-detail-back:hover { color: #fff; }
.ev-detail-hero__labels { display: flex; gap: 8px; margin-bottom: 14px; }

.evd-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .625rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.evd-pill--red {
  background: rgba(220,38,38,.15); border: 1px solid rgba(220,38,38,.4);
  color: #f87171;
}
.evd-pill-dot {
  width: 5px; height: 5px; border-radius: 50%; background: currentColor;
  animation: evPulse 2s ease-in-out infinite;
}
@keyframes evPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(1.6); }
}
.evd-pill--outline {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.65);
}

.ev-detail-hero__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; color: #fff;
  letter-spacing: -.05em; line-height: .95;
  text-transform: uppercase;
  text-shadow: 0 4px 40px rgba(0,0,0,.4);
  margin-bottom: 20px;
}
.ev-detail-hero__meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.ev-detail-hero__meta-item {
  display: flex; align-items: center; gap: 7px;
  font-size: .875rem; color: rgba(255,255,255,.75); font-weight: 500;
}
.ev-detail-hero__meta-item svg { color: var(--green); }
.ev-detail-hero__meta-sep { color: rgba(255,255,255,.25); font-size: 1.1rem; }


/* ── Main Layout ─────────────────────────────────── */
.ev-detail-main {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 80px;
  align-items: start;
}


/* ── Body Sections ───────────────────────────────── */
.ev-detail-section {
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--b0);
}
.ev-detail-section:last-child { border-bottom: none; }
.ev-detail-section__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.125rem; font-weight: 700;
  color: var(--text); margin-bottom: 16px;
}
.ev-detail-section p {
  font-size: .9375rem; color: var(--text-2);
  line-height: 1.75; margin-bottom: 12px;
}
.ev-detail-section p:last-child { margin-bottom: 0; }


/* ── Feature Grid ────────────────────────────────── */
.ev-detail-features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ev-detail-feature {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--b1);
  border-radius: var(--r3); padding: 16px;
  transition: border-color .3s, transform .3s;
}
.ev-detail-feature:hover {
  border-color: rgba(22,163,74,.3);
  transform: translateY(-2px);
}
.ev-detail-feature__icon {
  width: 40px; height: 40px; border-radius: var(--r2);
  background: rgba(22,163,74,.1); border: 1px solid rgba(22,163,74,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--green); flex-shrink: 0;
}
.ev-detail-feature strong {
  display: block; font-size: .9rem; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.ev-detail-feature p {
  font-size: .8125rem; color: var(--text-2);
  line-height: 1.5; margin: 0;
}


/* ── Organiser Card ──────────────────────────────── */
.ev-organiser-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--b1);
  border-radius: var(--r3); padding: 20px;
}
.ev-organiser-card__avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(22,163,74,.1); border: 1px solid rgba(22,163,74,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--green); flex-shrink: 0;
}
.ev-organiser-card__info strong {
  display: block; font-size: .9375rem; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.ev-organiser-card__info p {
  font-size: .8125rem; color: var(--text-2); line-height: 1.55; margin-bottom: 12px;
}
.ev-organiser-card__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.ev-organiser-badge {
  display: inline-flex; font-size: .625rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--rx);
  background: rgba(22,163,74,.1); border: 1px solid rgba(22,163,74,.25);
  color: var(--green);
}
.ev-organiser-badge--partner {
  background: rgba(202,138,4,.1); border-color: rgba(202,138,4,.3);
  color: var(--gold-hi);
}


/* ── Event Specs ─────────────────────────────────── */
.ev-detail-specs { display: flex; flex-direction: column; gap: 0; }
.ev-detail-spec {
  display: flex; align-items: baseline; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--b0);
}
.ev-detail-spec:last-child { border-bottom: none; }
.ev-detail-spec__label {
  font-size: .7rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
  white-space: nowrap; min-width: 110px; flex-shrink: 0;
}
.ev-detail-spec__val { font-size: .9rem; font-weight: 500; color: var(--text); }
.ev-detail-spec__val--tbc { color: var(--gold-hi); font-style: italic; }


/* ── Ticket Sidebar Card ─────────────────────────── */
.ev-detail-sidebar { position: sticky; top: 90px; }

.ev-ticket-card {
  background: var(--bg-2); border: 1px solid rgba(22,163,74,.22);
  border-radius: var(--r4); overflow: hidden;
  box-shadow: 0 4px 40px rgba(0,0,0,.3), 0 0 60px rgba(22,163,74,.05);
  margin-bottom: 16px;
}
.ev-ticket-card__header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--b0);
  background: linear-gradient(135deg, rgba(22,163,74,.05) 0%, transparent 60%);
}
.ev-ticket-card__label {
  font-size: .65rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green); margin-bottom: 6px;
}
.ev-ticket-card__val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem; font-weight: 800; color: var(--gold-hi);
  margin-bottom: 4px;
}
.ev-ticket-card__sub { font-size: .8rem; color: var(--text-3); }

.ev-ticket-card__cta {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: calc(100% - 48px); margin: 20px 24px;
  font-size: .9375rem;
}

.ev-ticket-card__notify {
  padding: 0 24px 20px;
  border-bottom: 1px solid var(--b0);
}
.ev-ticket-card__notify p {
  font-size: .8rem; color: var(--text-3); margin-bottom: 10px;
}
.ev-ticket-notify-form {
  display: flex; gap: 8px;
}
.ev-notify-input {
  flex: 1; padding: 9px 12px; border-radius: var(--r2);
  background: var(--bg); border: 1px solid var(--b1);
  color: var(--text); font-size: .8125rem; outline: none;
  transition: border-color .2s;
}
.ev-notify-input:focus { border-color: var(--green); }

.ev-ticket-card__trust {
  padding: 16px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.ev-trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--text-3);
}
.ev-trust-item svg { color: var(--green); flex-shrink: 0; }


/* ── Share Block ─────────────────────────────────── */
.ev-share-block {
  background: var(--bg-2); border: 1px solid var(--b1);
  border-radius: var(--r3); padding: 16px;
}
.ev-share-block p {
  font-size: .75rem; font-weight: 700; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px;
}
.ev-share-btns { display: flex; gap: 8px; }
.ev-share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  flex: 1; justify-content: center;
  padding: 9px 14px; border-radius: var(--r2);
  font-size: .8125rem; font-weight: 600; cursor: pointer;
  background: var(--bg); border: 1px solid var(--b1);
  color: var(--text-2); text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.ev-share-btn:hover { border-color: var(--b2); color: var(--text); background: var(--bg-3, var(--bg)); }


/* ── Responsive ──────────────────────────────────── */
@media(max-width:1024px) {
  .ev-detail-main { grid-template-columns: 1fr; }
  .ev-detail-sidebar { position: static; }
  .ev-ticket-card { max-width: 480px; }
}
@media(max-width:768px) {
  .ev-detail-hero { height: 420px; }
  .ev-detail-hero__title { font-size: clamp(2rem, 8vw, 3rem); }
  .ev-detail-features { grid-template-columns: 1fr; }
  .ev-detail-hero__meta { gap: 6px; }
  .ev-detail-hero__meta-sep { display: none; }
}
@media(max-width:480px) {
  .ev-ticket-notify-form { flex-direction: column; }
  .ev-ticket-notify-form .btn { width: 100%; }
}
