/* ==========================================================================
   Videos Section Style Sheet Design (videos.css)
   ========================================================================== */

.videos-section {
  position: relative;
  padding: 8rem 2rem 12rem;
  background: linear-gradient(to bottom, #000, #000);
  color: white;
  overflow: hidden;
  isolation: isolate;
}

/* Decorative Ambient Glow Blobs */
.video-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(11rem);
  opacity: 0.18;
  z-index: 0;
}
.video-blob-purple {
  top: -6rem;
  left: -6rem;
  width: 23rem;
  height: 23rem;
  background: #9b5de5;
}
.video-blob-cyan {
  bottom: -10rem;
  right: -8rem;
  width: 27rem;
  height: 27rem;
  background: #00acee;
}

/* Layout Framework Core */
.video-layout-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

/* Clean Header Centering Configuration */
.video-header {
  text-align: center !important;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.video-header h2 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  letter-spacing: -1px;
  text-align: center !important;
}

.video-header p {
  color: #b3b3b3;
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0.5rem auto 0;
  text-align: center !important;
}

.video-admin-link {
  color: #9b5de5;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.video-admin-link:hover {
  color: #00acee;
  text-shadow: 0 0 10px rgba(0, 172, 238, 0.5);
}

/* Structured 2-Across Grid Layout Engine */
.video-layout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  justify-items: center;
  max-width: 1000px;
  margin: 2rem auto 0 auto;
}

/* Card Presentation Framework */
.video-card {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.video-card:hover {
  transform: translateY(-6px);
}

/* Featured Modifier Flag State (Subtle Default State) */
.video-card.featured {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(145deg, rgba(155, 93, 229, 0.02), transparent);
}

/* Purple Active Glass Accent triggers ONLY on Hover interaction */
.video-card.featured:hover {
  border: 1px solid rgba(155, 93, 229, 0.5);
  background: linear-gradient(145deg, rgba(155, 93, 229, 0.06), transparent);
}

/* Video Frame Shadow System */
.video-img-wrapper {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 35px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(155, 93, 229, 0.18);
  transition: box-shadow 0.4s ease;
}

.video-card:hover .video-img-wrapper {
  box-shadow:
    0 14px 45px rgba(0, 0, 0, 0.75),
    0 0 36px rgba(155, 93, 229, 0.35),
    0 0 24px rgba(0, 172, 238, 0.28);
}

/* Widescreen 16:9 Structural Aspect Box Ratio Rules */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Floating Badges with Scale Elastic Bounce Animations */
.video-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(155, 93, 229, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
  
  transform: translateY(0) scale(1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
}

.video-card.featured:hover .video-label {
  background: rgba(180, 106, 255, 0.95);
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 16px rgba(155, 93, 229, 0.4);
}

/* Structural Context Typography */
.video-info-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.video-card p {
  color: #b3b3b3;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* Loading & Custom Layout Messaging Styles */
.videos-loading-text,
.videos-error-text,
.videos-empty-msg {
  text-align: center;
  padding: 6rem 2rem;
  color: #b3b3b3;
  font-size: 1.2rem;
}

.videos-error-text {
  color: #ef4444;
}

/* Media Query Responsive Configuration Rules */
@media (max-width: 768px) {
  .video-header h2 {
    font-size: 3rem;
  }

  .videos-section {
    padding: 6rem 1.5rem 10rem;
  }

  /* Drops down into clean full width vertical stacked single cards on mobile screens */
  .video-layout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}