/* ===================================
   Videos Showcase Section
   =================================== */

.videos-showcase-section {
  padding: 6rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(20, 20, 20, 0.95) 100%
  );
  position: relative;
  overflow: hidden;
}

.videos-showcase-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.03) 2px,
      rgba(255, 255, 255, 0.03) 4px
    );
  pointer-events: none;
  opacity: 0.5;
}

.videos-showcase-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.videos-showcase-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.videos-showcase-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-align: center;
  margin-bottom: 4rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ===================================
   Videos Grid
   =================================== */

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .videos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ===================================
   Video Cards
   =================================== */

.video-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

/* ===================================
   NEW Badge with Pulsing Glow
   =================================== */

.video-badge-new {
  position: absolute;
  top: -8px;
  right: 12px;
  z-index: 10;
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  box-shadow:
    0 0 15px rgba(255, 0, 0, 0.6),
    0 0 30px rgba(255, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3);
  animation: badgePulse 2s ease-in-out infinite;
  text-transform: uppercase;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow:
      0 0 15px rgba(255, 0, 0, 0.6),
      0 0 30px rgba(255, 0, 0, 0.4),
      0 4px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 25px rgba(255, 0, 0, 0.8),
      0 0 50px rgba(255, 0, 0, 0.6),
      0 0 75px rgba(255, 0, 0, 0.4),
      0 4px 8px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
  }
}

.videos-showcase-section .video-embed {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.3s ease;
}

.video-card:hover .video-embed {
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.7),
    0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* ===================================
   Video Titles
   =================================== */

.video-title {
  font-family: var(--font-display);
  margin-top: 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-on-primary);
  text-align: center;
  letter-spacing: 0.05em;
}

/* ===================================
   Responsive Adjustments
   =================================== */

@media (max-width: 768px) {
  .videos-showcase-section {
    padding: 4rem 1.5rem;
  }

  .videos-showcase-title {
    margin-bottom: 0.75rem;
  }

  .videos-showcase-subtitle {
    margin-bottom: 2.5rem;
  }

  .video-title {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .videos-showcase-section {
    padding: 3rem 1rem;
  }

  .videos-grid {
    gap: 2rem;
  }
}

/* ===================================
   Animation Support
   =================================== */

.videos-showcase-section.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.videos-showcase-section.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
