/* ================================================
   EVENTS.CSS — Prime Ecommerce Hub Events Page
   ================================================ */

/* ── HERO ── */
.ev-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

@media (max-width: 1024px) { .ev-hero { height: 420px; } }
@media (max-width: 768px)  { .ev-hero { height: 300px; } }
@media (max-width: 480px)  { .ev-hero { height: 240px; } }

/* Static image fallback */
.ev-hero-img {
  position: absolute;
  inset: 0;
}

.ev-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Plain gradient hero (no image) */
.ev-hero--plain {
  background: linear-gradient(135deg, #060d1f 0%, #0f172a 50%, #1a1040 100%);
  height: auto;
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

.ev-hero--plain::before {
  content: '';
  position: absolute;
  width: 500px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225,29,72,0.18), transparent);
  top: -80px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.ev-hero--plain .ev-hero-content {
  padding: 0 32px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

/* Video background hero */
.ev-hero--video .ev-hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0f172a;
}

.ev-hero--video .ev-hero-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 56.25vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

.ev-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,13,31,0.88) 0%, rgba(6,13,31,0.45) 50%, rgba(6,13,31,0.25) 100%);
  z-index: 1;
}

.ev-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 52px;
  width: 100%;
}

.ev-video-hint {
  margin-top: 12px;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.35);
  font-style: italic;
}

.ev-video-hint code {
  background: rgba(255,255,255,0.1);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: #fda4af;
  font-style: normal;
}

.ev-eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fda4af;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.ev-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 12px;
}

.ev-hero-content p {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
}

/* ── SHARED ── */
.ev-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.ev-section         { padding: 72px 0; background: #fff; }
.ev-section--pink   { background: #fff5f7; }

.ev-section-head {
  text-align: center;
  margin-bottom: 44px;
}

.ev-section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.ev-section-head p {
  color: #64748b;
  font-size: 0.96rem;
  max-width: 520px;
  margin: 0 auto;
}

.ev-label {
  display: inline-block;
  color: #e11d48;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ── HIGHLIGHTS ── */
.ev-highlights {
  padding: 44px 0;
  background: #0f172a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ev-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.ev-hl-card {
  text-align: center;
  padding: 24px 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.ev-hl-card:last-child { border-right: none; }

.ev-hl-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.ev-hl-card strong {
  display: block;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.ev-hl-card span {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

/* ── GALLERY GRIDS ── */
.ev-gallery-grid { display: grid; gap: 20px; }

.ev-gallery-4 { grid-template-columns: repeat(4, 1fr); }
.ev-gallery-3 { grid-template-columns: repeat(3, 1fr); }
.ev-gallery-2-wide { grid-template-columns: repeat(2, 1fr); }

/* ── PHOTO CARDS ── */
.ev-photo-card {
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: 0 2px 8px rgba(15,23,42,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}

.ev-photo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.14);
}

.ev-photo-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ev-photo-card:hover img { transform: scale(1.04); }

/* Heights */
.ev-gallery-4 .ev-photo-card img   { height: 220px; }
.ev-photo-card--tall img           { height: 280px; }
.ev-photo-card--xl img             { height: 360px; }

.ev-photo-caption {
  padding: 12px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  background: #fff;
  border-top: 1px solid #f1f5f9;
}

/* ── CTA ── */
.ev-cta {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1a0008 100%);
  padding: 80px 0;
  overflow: hidden;
  text-align: center;
}

.ev-cta-blob-1 {
  position: absolute; width: 400px; height: 400px;
  border-radius: 50%; filter: blur(80px); opacity: 0.15;
  background: radial-gradient(circle, #e11d48, #be123c);
  top: -100px; left: -80px;
}

.ev-cta-blob-2 {
  position: absolute; width: 300px; height: 300px;
  border-radius: 50%; filter: blur(60px); opacity: 0.12;
  background: radial-gradient(circle, #fb7185, #e11d48);
  bottom: -80px; right: 5%;
}

.ev-cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.ev-cta p {
  color: rgba(255,255,255,0.65);
  font-size: 0.98rem;
  margin-bottom: 32px;
}

.ev-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.ev-btn-main {
  padding: 14px 28px; border-radius: 12px;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff; font-weight: 700; font-size: 0.96rem;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(225,29,72,0.35);
  transition: opacity 0.15s, transform 0.15s;
}

.ev-btn-main:hover { opacity: 0.9; transform: translateY(-2px); }

.ev-btn-ghost {
  padding: 14px 26px; border-radius: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.96rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.ev-btn-ghost:hover { background: rgba(255,255,255,0.13); transform: translateY(-2px); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .ev-gallery-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ev-hero { height: 400px; }
  .ev-highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .ev-hl-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .ev-gallery-3, .ev-gallery-2-wide { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .ev-hero { height: 320px; }
  .ev-hero-content { padding: 0 18px 36px; }
  .ev-gallery-3, .ev-gallery-4, .ev-gallery-2-wide { grid-template-columns: 1fr; }
  .ev-container { padding: 0 18px; }
  .ev-section { padding: 52px 0; }
  .ev-highlights-grid { grid-template-columns: 1fr 1fr; }
}

/* ── VIDEO SECTION ── */
.ev-video-section { background: #0f172a; }
.ev-video-section .ev-section-head h2 { color: #fff; }
.ev-video-section .ev-section-head p  { color: rgba(255,255,255,0.55); }
.ev-video-section .ev-label           { color: #fda4af; }

/* ── ROW LABELS ── */
.ev-row-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e11d48;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-left: 4px;
}

/* ── EVENT VIDEOS ── */
.event-videos {
    width: 100%;
    max-width: 1150px;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.event-video {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}

.event-video iframe {
    display: block;
    width: 100%;
    height: 650px;
    border: 0;
}

/* TABLET */
@media (max-width: 900px) {
    .event-videos {
        gap: 18px;
        padding: 0 16px;
    }
    .event-video iframe {
        height: 560px;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    .event-videos {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 12px;
    }
    .event-video iframe {
        height: 600px;
    }
}

/* SMALL MOBILE */
@media (max-width: 400px) {
    .event-videos {
        padding: 0 10px;
    }
    .event-video iframe {
        height: 560px;
    }
}
