/* ==========================================================================
   YOUTUBE VIDEOS MODULE STYLES
   ========================================================================== */

.youtube {
  position: relative;
  padding: 120px 24px;
  background-color: #0f172a;
  color: #f8fafc;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

/* BACKGROUND GLOW */
.youtube-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
  filter: blur(120px);
  pointer-events: none;
}

.youtube-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* HEADER */
.youtube-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 60px;
}

.youtube-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: #ef4444;
  border-radius: 50%;
}

.youtube-header h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.youtube-sub {
  font-size: 17px;
  color: #94a3b8;
  line-height: 1.6;
}

/* GRID */
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}

/* VIDEO CARD CONTAINER */
.youtube-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 12px;
  transition: all 0.35s ease;
}

.youtube-card:hover {
  transform: translateY(-6px);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 25px rgba(239, 68, 68, 0.15);
  background: rgba(30, 41, 59, 0.85);
}

/* RESPONSIVE 16:9 EMBED */
.youtube-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Ratio */
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
}

.youtube-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* FOOTER BUTTON */
.youtube-footer-cta {
  text-align: center;
}

.youtube-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.youtube-channel-btn i {
  color: #ef4444;
  font-size: 18px;
}

.youtube-channel-btn:hover {
  background: #ef4444;
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35);
  transform: translateY(-2px);
}

.youtube-channel-btn:hover i {
  color: #ffffff;
}

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

@media (max-width: 768px) {
  .youtube {
    padding: 80px 20px;
  }

  .youtube-header h2 {
    font-size: 32px;
  }

  .youtube-grid {
    grid-template-columns: 1fr;
  }
}