/* ============================================================
   FEATURED VIDEO GRID - MEDIUM SIZE WITH SHADE
   ============================================================ */

.featured-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.featured-video-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.featured-video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(124,58,237,0.3);
  border-color: var(--accent);
}

.featured-video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}

.featured-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-video-card:hover .featured-video-wrap video {
  transform: scale(1.05);
}

/* VIDEO SHADE OVERLAY */
.video-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* BADGE STYLING */
.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 6px;
  z-index: 3;
  color: white;
}

.featured-badge.trending {
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.featured-badge.editorial {
  background: linear-gradient(135deg, #4ECDC4, #44A08D);
}

.featured-badge.featured {
  background: linear-gradient(135deg, #7F77DD, #9B8FE8);
}

.featured-badge.new {
  background: linear-gradient(135deg, #F093FB, #F5576C);
}

.featured-badge.popular {
  background: linear-gradient(135deg, #FFA726, #FB8C00);
}

/* CARD INFO */
.featured-card-info {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.featured-card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.featured-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .featured-video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .featured-video-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1.5rem;
  }
}

/* ============================================================
   CREATIVE VIEWS SECTION - 4 COLUMNS, 8 VIDEOS
   ============================================================ */

.creative-views-section {
  display: none;
  min-height: 100vh;
  background: var(--bg2);
  padding: 6rem 3rem 4rem;
  position: relative;
}

.creative-views-header {
  text-align: center;
  margin-bottom: 4rem;
}

.creative-views-header .section-tag {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1rem;
}

.creative-views-header .section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 1rem;
}

.creative-views-header .section-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* CREATIVE VIEWS GRID - 4 COLUMNS */
.creative-views-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.creative-view-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.creative-view-card::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.creative-view-card:hover::after {
  opacity: 0.9;
}

.creative-view-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.4), 0 20px 60px rgba(0, 0, 0, 0.6);
  border-color: rgba(124, 58, 237, 0.6);
}

.creative-video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.creative-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  pointer-events: none;
}

.creative-view-card:hover .creative-video-wrap video {
  transform: scale(1.08);
}

/* VIDEO SHADE OVERLAY FOR CREATIVE VIEWS */
.creative-video-wrap .video-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.7) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* CREATIVE BADGE STYLING */
.creative-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  z-index: 3;
  color: white;
}

.creative-badge.trending {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
}

.creative-badge.editorial {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
}

.creative-badge.featured {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
}

.creative-badge.new {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
}

.creative-badge.popular {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
}

/* CREATIVE CARD INFO */
.creative-card-info {
  padding: 15px;
  position: relative;
  z-index: 2;
  background: rgba(13, 16, 51, 0.95);
  border-top: 1px solid rgba(147, 51, 234, 0.2);
}

.creative-card-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.2;
}

.creative-card-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
}

/* RESPONSIVE FOR CREATIVE VIEWS */
@media (max-width: 1200px) {
  .creative-views-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 900px) {
  .creative-views-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .creative-views-section {
    padding: 5rem 2rem 3rem;
  }
}

@media (max-width: 600px) {
  .creative-views-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .creative-views-section {
    padding: 4rem 1.5rem 3rem;
  }
  
  .creative-views-header .section-tag {
    font-size: 0.65rem;
  }
  
  .creative-card-title {
    font-size: 0.95rem;
  }
  
  .creative-card-subtitle {
    font-size: 0.75rem;
  }
  
  .creative-badge {
    font-size: 0.55rem;
    padding: 3px 10px;
  }
}

@media (max-width: 480px) {
  .creative-views-section {
    padding: 3rem 1rem;
  }
  
  .creative-views-header {
    margin-bottom: 2.5rem;
  }
  
  .creative-views-grid {
    gap: 1rem;
  }
  
  .creative-card-info {
    padding: 12px;
  }
  
  .creative-card-title {
    font-size: 0.9rem;
  }
  
  .creative-card-subtitle {
    font-size: 0.7rem;
  }
  
  .creative-view-card::after {
    font-size: 2.5rem;
    opacity: 0.9 !important;
  }
  
  /* Add tap feedback for mobile */
  .creative-view-card:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
  
  .creative-view-card {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(124, 58, 237, 0.3);
  }
}

/* ============================================================
   CREATIVE VIEWS VIDEO MODAL
   ============================================================ */

.creative-video-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.creative-video-modal.active {
  display: flex;
}

.creative-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.creative-modal-content {
  position: relative;
  /* Compact popup: max 60% of viewport width, never taller than 75vh */
  width: min(60vw, 640px);
  max-height: 75vh;
  height: auto;
  background: var(--card-bg);
  border: 2px solid rgba(124, 58, 237, 0.5);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.6);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  display: flex;
  flex-direction: column;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.creative-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.5);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.creative-modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(90deg);
}

.creative-modal-close svg {
  width: 20px;
  height: 20px;
}

.creative-modal-video-wrap {
  position: relative;
  width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  /* 16:9 ratio within the compact popup */
  aspect-ratio: 16 / 9;
}

.creative-modal-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.creative-modal-info {
  padding: 1rem 1.25rem 1.25rem;
  background: rgba(13, 16, 51, 0.95);
  border-top: 1px solid rgba(147, 51, 234, 0.3);
  flex-shrink: 0;
}

.creative-modal-info h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.creative-modal-info p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* RESPONSIVE MODAL */
@media (max-width: 768px) {
  .creative-video-modal {
    padding: 2rem 1rem;
  }

  .creative-modal-content {
    width: min(85vw, 480px);
    max-height: 80vh;
  }
}

@media (max-width: 480px) {
  .creative-video-modal {
    padding: 1.5rem 0.75rem;
  }

  .creative-modal-content {
    width: 92vw;
    max-height: 85vh;
    border-radius: 10px;
  }

  .creative-modal-info {
    padding: 0.85rem 1rem 1rem;
  }

  .creative-modal-info h3 {
    font-size: 1rem;
  }

  .creative-modal-info p {
    font-size: 0.8rem;
  }

  .creative-modal-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
  }

  .creative-modal-close svg {
    width: 16px;
    height: 16px;
  }
}

/* ============================================================
   DRIVE IFRAME — CUBE FACE & CAROUSEL CARD
   ============================================================ */

/* Cube faces: iframe fills the face exactly */
.face iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: none; /* let cube rotation work */
}

/* Carousel card thumbnail: iframe fills the thumbnail area */
.card-thumbnail iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Mobile parallax stack card: iframe fills the card */
.mpv-sticky-card iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ============================================================
   CREATIVE VIEWS — THUMBNAIL PLACEHOLDER (click-to-play)
   ============================================================ */

.drive-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d0d2b 0%, #1a0a3a 50%, #0a1a2e 100%);
  transition: background 0.3s ease;
}

.creative-view-card:hover .drive-thumb-placeholder {
  background: linear-gradient(135deg, #150d35 0%, #220d4a 50%, #0d2040 100%);
}

.drive-play-icon {
  width: 64px;
  height: 64px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.6));
}

.creative-view-card:hover .drive-play-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.9));
}

/* Modal iframe wrapper */
.creative-modal-video-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
  background: #000;
}


/* ============================================================
   CREATIVE VIEWS PAGINATION
   ============================================================ */

.creative-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  padding: 0 2rem;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 50px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.6);
  transform: translateY(-2px);
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-btn svg {
  width: 16px;
  height: 16px;
}

.pagination-dots {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.pagination-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.pagination-dot:hover {
  background: rgba(124, 58, 237, 0.5);
  transform: scale(1.2);
}

.pagination-dot.active {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  width: 28px;
  border-radius: 5px;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
}

@media (max-width: 600px) {
  .creative-pagination {
    gap: 1rem;
    margin-top: 2rem;
  }

  .pagination-btn span {
    display: none;
  }

  .pagination-btn {
    padding: 0.6rem;
    min-width: 40px;
    justify-content: center;
  }
}
