/* ============================================================
   OnlyEvents — event-details.css  |  Gen-Z Dark (Unified Theme)
   Drop-in replacement for your current event-details CSS
   ============================================================ */

/* ---------- Wrapper ---------- */
.oe-ed-wrap{
  padding: 18px 0 70px;
}

/* Breadcrumb */
.oe-ed-bc{
  display:flex;
  align-items:center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,.62);
  margin: 6px 0 14px;
}
.oe-ed-bc a{
  color: var(--oe-cyan, #22D3EE);
  font-weight: 900;
}
.oe-ed-bc a:hover{ text-decoration: underline; }
.oe-ed-bc b{
  color: rgba(255,255,255,.90);
}

/* ---------- Layout grid ---------- */
.oe-ed-grid{
  display:grid;
  grid-template-columns: 1fr 380px;
  gap: 18px;
  align-items:start;
}

/* ---------- Main Card ---------- */
.oe-ed-card{
  position: relative;
  border-radius: calc(var(--oe-radius, 22px) + 8px);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  padding: 16px;
}

/* Subtle glow overlay */
.oe-ed-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(720px 260px at 18% 12%, rgba(34,211,238,.14), transparent 60%),
    radial-gradient(760px 300px at 88% 18%, rgba(124,58,237,.18), transparent 62%),
    radial-gradient(760px 320px at 52% 95%, rgba(251,113,133,.12), transparent 65%);
  opacity: .95;
  mix-blend-mode: screen;
}

/* Keep content above glow */
.oe-ed-card > *{ position:relative; z-index:1; }

/* ---------- Top section ---------- */
.oe-ed-top{
  display:grid;
  grid-template-columns: 440px 1fr;
  gap: 16px;
  align-items:center;
}

/* Cover image */
.oe-ed-cover{
  height: 250px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
  isolation: isolate;
}

/* Cover overlay for readability */
.oe-ed-cover::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.65));
  pointer-events:none;
}

/* Category chip */
.oe-ed-chip{
  position:absolute;
  left: 12px;
  bottom: 12px;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 12px;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2;
}

/* Title */
.oe-ed-title{
  margin: 0 0 8px;
  font-family: var(--font-head, Syne, sans-serif);
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 950;
  color: rgba(255,255,255,.95);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Location line */
.oe-ed-loc{
  color: rgba(255,255,255,.68);
  font-size: 13.5px;
  margin-bottom: 12px;
}

/* Meta list */
.oe-ed-meta{
  display:grid;
  gap: 10px;
}
.oe-ed-meta-row{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.4;
}
.oe-ed-meta-row b{
  color: rgba(255,255,255,.92);
  font-weight: 900;
}

/* ---------- Tabs ---------- */
.oe-ed-tabs{
  margin-top: 16px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

/* Tab buttons */
.oe-ed-tab{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.78);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 950;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.oe-ed-tab:hover{
  transform: translateY(-1px);
  background: rgba(124,58,237,.10);
  border-color: rgba(124,58,237,.28);
  color: rgba(255,255,255,.92);
}
.oe-ed-tab.is-active{
  background: linear-gradient(90deg, rgba(34,211,238,.16), rgba(124,58,237,.14));
  border-color: rgba(34,211,238,.28);
  color: rgba(255,255,255,.94);
  box-shadow: 0 16px 40px rgba(34,211,238,.10);
}

/* Panels */
.oe-ed-panel{
  display:none;
  padding: 14px 6px 6px;
  color: rgba(255,255,255,.74);
  font-size: 13.5px;
  line-height: 1.8;
}
.oe-ed-panel.is-active{ display:block; }

.oe-ed-panel ul{ margin: 10px 0 0 18px; }
.oe-ed-panel li{ margin: 6px 0; }

/* ---------- Right Sidebar Card ---------- */
.oe-ed-sidecard{
  position: sticky;
  top: 88px;
  border-radius: calc(var(--oe-radius, 22px) + 8px);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 16px;
  overflow:hidden;
  position: sticky;
}

.oe-ed-sidecard::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(520px 220px at 20% 18%, rgba(34,211,238,.14), transparent 60%),
    radial-gradient(520px 240px at 85% 30%, rgba(251,113,133,.10), transparent 62%);
  opacity:.9;
  mix-blend-mode: screen;
}
.oe-ed-sidecard > *{ position:relative; z-index:1; }

/* Pay */
.oe-ed-pay{
  display:flex;
  align-items:baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.oe-ed-paybig{
  font-size: 22px;
  font-weight: 950;
  color: rgba(255,255,255,.92);
  letter-spacing: -0.01em;
}
.oe-ed-payunit{
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 900;
}

/* Side info */
.oe-ed-sideinfo{
  display:grid;
  gap: 10px;
  font-size: 12.8px;
  color: rgba(255,255,255,.70);
  margin: 12px 0 14px;
}

/* Apply button (button) */
.oe-ed-apply{
  width: 100%;
  height: 48px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  font-weight: 950;
  color: #08121b;
  background: linear-gradient(90deg, var(--oe-cyan, #22D3EE), var(--oe-violet, #7C3AED));
  box-shadow: 0 18px 44px rgba(34,211,238,.14);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.oe-ed-apply:hover{
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 26px 70px rgba(124,58,237,.22);
}

/* Apply button (anchor variant) */
.oe-ed-applybtn{
  width: 100%;
  height: 48px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  font-weight: 950;
  color: #08121b;
  background: linear-gradient(90deg, var(--oe-pink, #FB7185), var(--oe-cyan, #22D3EE));
  box-shadow: 0 18px 44px rgba(251,113,133,.14);
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.oe-ed-applybtn:hover{
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 26px 70px rgba(34,211,238,.18);
}

/* Applied / completed states */
.oe-ed-applybtn.is-applied{
  background: rgba(34,211,238,.10);
  color: rgba(255,255,255,.90);
  border: 1px solid rgba(34,211,238,.25);
  box-shadow: none;
  cursor: not-allowed;
}
.oe-ed-applybtn.is-completed{
  background: rgba(34,197,94,.14);
  color: rgba(187,247,208,.95);
  border: 1px solid rgba(34,197,94,.26);
  box-shadow: none;
  cursor: not-allowed;
}

/* Side actions */
.oe-ed-sideactions{
  display:flex;
  gap: 10px;
  margin-top: 12px;
}
.oe-ed-mini{
  flex: 1;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight: 950;
  color: rgba(255,255,255,.86);
  font-size: 12px;
  cursor:pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.oe-ed-mini:hover{
  transform: translateY(-1px);
  background: rgba(124,58,237,.10);
  border-color: rgba(124,58,237,.26);
}
.oe-ed-mini.is-muted{ opacity: .55; cursor: default; }
.oe-ed-mini.is-hidden{ display:none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px){
  .oe-ed-grid{ grid-template-columns: 1fr; }
  .oe-ed-top{ grid-template-columns: 1fr; }
  .oe-ed-cover{ height: 220px; }
  .oe-ed-sidecard{ position: relative; top: auto; }
}

@media (max-width: 575px){
  .oe-ed-card,
  .oe-ed-sidecard{
    padding: 14px;
    border-radius: calc(var(--oe-radius, 22px) + 6px);
  }
  .oe-ed-title{ font-size: 22px; }
  .oe-ed-tabs{ gap: 8px; }
  .oe-ed-tab{ padding: 8px 12px; }
}