/* ============================================
   BULAND — EVENTS PAGE STYLES
============================================ */

/* PAGE HERO — video showreel background */
.events-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
  background: #000;
}
/* YouTube iframe scaled up to cover full hero */
.events-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.events-hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh; /* 16:9 */
  height: 56.25vw; /* 16:9 */
  min-width: 100%;
  min-height: 100%;
}
/* Dark overlay so text stays readable */
.events-hero-video-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,0,10,0.95) 0%, rgba(6,0,10,0.65) 40%, rgba(6,0,10,0.45) 100%);
  z-index: 1;
}
.events-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 44px 56px;
  opacity: 0; transform: translateY(24px);
  animation: heroReveal 0.8s 0.2s ease forwards;
}
.events-hero-content .eyebrow { margin-bottom: 12px; }
.events-hero-h {
  font-family: var(--font-display);
  font-size: clamp(36px,5vw,60px);
  font-weight: 500; color: var(--white);
  line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.events-hero-h em { color: var(--purple-light); font-style: normal; }
.events-hero-sub {
  font-size: 15px; color: var(--white-60);
  max-width: 480px; line-height: 1.7;
}

/* UPCOMING */
.upcoming-sec { padding: 80px 44px; background: var(--black-deep); }
.upcoming-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 40px;
}
.ev-list { display: flex; flex-direction: column; }
.ev-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: stretch;
  border-bottom: 0.5px solid var(--white-05);
  cursor: pointer;
  transition: background 0.2s ease;
}
.ev-item:first-child { border-top: 0.5px solid var(--white-05); }
.ev-item:hover { background: rgba(92,15,107,0.08); }
.ev-item.active { background: rgba(92,15,107,0.12); border-left: 3px solid var(--purple-mid); }
.ev-date-col { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px 0; border-right: 0.5px solid var(--white-05); }
.ev-day { font-family: var(--font-display); font-size: 32px; font-weight: 500; color: var(--white); line-height: 1; }
.ev-mon { font-size: 11px; color: var(--purple-mid); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.ev-info-col { padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.ev-tag { display: inline-block; font-size: 10px; background: rgba(92,15,107,0.3); color: var(--purple-pale); padding: 2px 8px; border-radius: 6px; margin-bottom: 4px; letter-spacing: 0.06em; text-transform: uppercase; align-self: flex-start; }
.ev-name { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--white); }
.ev-loc { font-size: 12px; color: var(--white-40); }
.ev-action-col { display: flex; align-items: center; padding: 22px 24px; }
.ev-arrow { width: 40px; height: 40px; border-radius: 50%; border: 0.5px solid rgba(155,48,180,0.2); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--white-40); transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease; text-decoration: none; }
.ev-item:hover .ev-arrow { background: var(--purple-deep); border-color: var(--purple-deep); color: var(--white); transform: translateX(3px); }

/* Event detail panel */
.ev-detail { background: var(--black-card); border-radius: 16px; border: 0.5px solid rgba(155,48,180,0.15); overflow: hidden; position: sticky; top: 90px; }
.ev-detail-hero { height: 160px; background: linear-gradient(145deg,#3D0A50,#180524); display: flex; align-items: flex-end; padding: 20px; position: relative; overflow: hidden; }
.ev-detail-bg-urdu { position: absolute; right: 10px; top: 10px; font-size: 100px; color: rgba(255,255,255,0.04); line-height: 1; }
.ev-detail-tag { display: inline-block; font-size: 10px; background: rgba(92,15,107,0.6); border: 0.5px solid rgba(155,48,180,0.4); color: var(--purple-pale); padding: 3px 10px; border-radius: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.ev-detail-body { padding: 22px; }
.ev-detail-title { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--white); margin-bottom: 8px; }
.ev-detail-meta { font-size: 13px; color: var(--white-40); margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.ev-detail-meta span { color: var(--purple-light); }
.ev-detail-desc { font-size: 13px; color: var(--white-40); line-height: 1.7; margin: 14px 0 20px; }
.ev-detail-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--purple-deep); color: var(--white); font-family: var(--font-body); font-size: 13px; font-weight: 500; padding: 11px 22px; border-radius: 22px; text-decoration: none; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease; border: none; }
.ev-detail-btn:hover { background: var(--purple-mid); transform: translateY(-2px); }

/* FILTERS */
.archive-sec { padding: 80px 44px; background: var(--black-base); }
.filters-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  align-items: center;
}
.filter-group { display: flex; gap: 6px; align-items: center; }
.filter-label { font-size: 11px; color: var(--white-40); letter-spacing: 0.08em; text-transform: uppercase; margin-right: 4px; }
.filter-btn {
  font-size: 12px;
  color: var(--white-40);
  background: var(--black-card);
  border: 0.5px solid rgba(155,48,180,0.12);
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}
.filter-btn:hover { border-color: rgba(155,48,180,0.3); color: var(--white); }
.filter-btn.active { background: var(--purple-deep); border-color: var(--purple-deep); color: var(--white); }
.filter-sep { width: 1px; height: 20px; background: var(--white-08); margin: 0 4px; }

/* EVENTS GRID */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.event-card {
  background: var(--black-card);
  border: 0.5px solid rgba(155,48,180,0.1);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.3s ease;
}
.event-card:hover { border-color: rgba(155,48,180,0.35); transform: translateY(-4px); }
.event-card.hidden { display: none; }

/* Card thumbnail */
.ec-thumb {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ec-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%) brightness(0.6);
  transition: transform 0.4s ease, filter 0.3s ease;
}
.event-card:hover .ec-thumb img { transform: scale(1.05); filter: grayscale(0%) brightness(0.7); }
.ec-thumb-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: rgba(155,48,180,0.25);
}
.ec-thumb-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,1,24,0.95) 0%, rgba(13,1,24,0.1) 60%);
}
.ec-format-tag {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 10px;
  background: var(--purple-deep);
  color: var(--white);
  padding: 3px 9px;
  border-radius: 7px;
  letter-spacing: 0.04em;
  z-index: 1;
}
.ec-city-tag {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 10px;
  background: rgba(0,0,0,0.5);
  color: var(--white-60);
  padding: 3px 9px;
  border-radius: 7px;
  z-index: 1;
}
/* YouTube play button */
.ec-yt-btn {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,0,0,0.8);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--white);
  z-index: 1;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.ec-yt-btn:hover { background: #ff0000; transform: scale(1.1); }
/* Instagram link */
.ec-ig-btn {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--white);
  z-index: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}
.ec-ig-btn:hover { transform: scale(1.1); opacity: 0.9; }

/* Card body */
.ec-body { padding: 14px 16px 18px; }
.ec-season {
  font-size: 10px;
  color: var(--purple-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
  display: block;
}
.ec-title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 500;
  color: var(--white);
  margin-bottom: 5px;
  line-height: 1.3;
}
.ec-subtitle { font-size: 12px; color: var(--white-40); margin-bottom: 10px; }
.ec-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ec-venue {
  font-size: 11px; color: var(--white-40);
  display: flex; align-items: center; gap: 4px;
}
.ec-collab {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.ec-collab-tag {
  font-size: 10px;
  background: rgba(92,15,107,0.2);
  color: rgba(192,132,216,0.7);
  padding: 2px 7px;
  border-radius: 5px;
}

/* YouTube playlist modal / drawer */
.yt-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--black-card);
  border-top: 1px solid rgba(155,48,180,0.3);
  border-radius: 20px 20px 0 0;
  padding: 24px 32px 32px;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  max-height: 80vh;
  overflow-y: auto;
}
.yt-drawer.open { transform: translateY(0); }
.yt-drawer-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.yt-drawer-title { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--white); }
.yt-drawer-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0.5px solid var(--white-20);
  background: transparent;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.yt-drawer-close:hover { background: var(--purple-deep); border-color: var(--purple-deep); }
.yt-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.yt-drawer-overlay.open { opacity: 1; pointer-events: all; }
.yt-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.yt-video-card {
  background: var(--black-base);
  border-radius: 10px;
  overflow: hidden;
  border: 0.5px solid rgba(155,48,180,0.1);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: block;
}
.yt-video-card:hover { border-color: rgba(155,48,180,0.35); transform: translateY(-3px); }
.yt-thumb {
  position: relative;
  height: 135px;
  overflow: hidden;
}
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-play-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3);
  font-size: 28px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.yt-video-card:hover .yt-play-icon { opacity: 1; }
.yt-video-info { padding: 10px 12px; }
.yt-video-title { font-size: 13px; font-weight: 500; color: var(--white); line-height: 1.4; margin-bottom: 4px; }
.yt-video-meta { font-size: 11px; color: var(--white-40); }
.yt-loading {
  text-align: center;
  padding: 40px;
  color: var(--white-40);
  font-size: 14px;
}
.yt-playlist-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff0000;
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 22px;
  text-decoration: none;
  margin-bottom: 20px;
  transition: opacity 0.2s ease;
}
.yt-playlist-link:hover { opacity: 0.9; }

/* SEASONS TIMELINE */
.seasons-sec { padding: 80px 44px; background: var(--black-deep); }
.seasons-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-top: 40px;
  cursor: grab;
}
.seasons-track:active { cursor: grabbing; }
.seasons-track::-webkit-scrollbar { height: 3px; }
.seasons-track::-webkit-scrollbar-thumb { background: var(--purple-deep); border-radius: 2px; }
.season-card {
  min-width: 200px;
  background: var(--black-card);
  border: 0.5px solid rgba(155,48,180,0.1);
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.3s ease;
}
.season-card:hover { border-color: rgba(155,48,180,0.4); transform: translateY(-4px); }
.sc-thumb {
  height: 120px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.sc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%) brightness(0.55); transition: filter 0.3s ease; }
.season-card:hover .sc-thumb img { filter: grayscale(0%) brightness(0.65); }
.sc-thumb-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; color: rgba(155,48,180,0.3); }
.sc-thumb-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,1,24,0.9) 0%, rgba(13,1,24,0.1) 60%); }
.sc-season-num {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  color: var(--purple-pale);
  background: rgba(92,15,107,0.6);
  padding: 3px 9px; border-radius: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 1;
}
.sc-yt {
  position: absolute; bottom: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,0,0,0.8);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--white);
  z-index: 1;
  text-decoration: none;
}
.sc-body { padding: 12px 14px; }
.sc-title { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--white); margin-bottom: 3px; }
.sc-sub { font-size: 11px; color: var(--white-40); margin-bottom: 6px; }
.sc-city { font-size: 10px; color: var(--purple-light); }

/* EMPTY STATE */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--white-40);
  font-size: 15px;
}
.no-results span { display: block; font-size: 32px; margin-bottom: 12px; }

/* ============================================
   RESPONSIVE — EVENTS PAGE
============================================ */

@media (max-width: 768px) {
  .events-hero { min-height: 50vh; }
  .events-hero-content { padding: 0 20px 44px; }
  .events-hero-h { font-size: 30px; }
  .events-hero-sub { font-size: 14px; }

  .upcoming-sec { padding: 60px 20px; }
  .upcoming-grid { grid-template-columns: 1fr; }
  .ev-detail { display: none; }
  .ev-day { font-size: 24px; }
  .ev-name { font-size: 14px; }
  .ev-info-col { padding: 16px 14px; }
  .ev-action-col { padding: 16px 12px; }

  .seasons-sec { padding: 60px 20px; }

  .archive-sec { padding: 60px 20px; }
  .filters-bar { gap: 8px; }
  .filter-group { flex-wrap: wrap; gap: 5px; }
  .filter-sep { display: none; }
  .events-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ec-thumb { height: 120px; }

  .yt-drawer { padding: 20px; border-radius: 16px 16px 0 0; }
  .yt-videos-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

@media (max-width: 480px) {
  .events-hero-h { font-size: 26px; }
  .events-grid { grid-template-columns: 1fr; }
  .ec-thumb { height: 160px; }
  .filter-btn { font-size: 11px; padding: 6px 10px; }
  .ev-item { grid-template-columns: 56px 1fr auto; }
  .ev-day { font-size: 20px; }
  .yt-videos-grid { grid-template-columns: 1fr; }
  .season-card { min-width: 160px; }
}
