/*
 * File: public\css\youtube.css
 * Purpose: Defines presentation styles for the youtube interface.
 */
/* =============================
   HERO
============================= */
.youtube-overlay h1 {
  font-size: 90px;
  font-weight: 800;
  letter-spacing: 3px;
}

/* =============================
   GENERAL SECTIONS
============================= */
.youtube-section {
  width: 100%;
  margin: 0;
  padding: 0;
}

.youtube-heading {
  background-color: #1e2a57;
  color: white;
  font-size: 32px;
  text-align: center;
  padding: 20px 0;
  margin: 0;
}

.youtube-videos {
  max-width: 1200px;
  margin: 30px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 0 20px;
}

.youtube-videos iframe {
  border: 2px solid #1e2a57;
  border-radius: 8px;
}

/* =============================
   MOST RECENT LIVESTREAM SECTION
============================= */
.livestream-section {
  background: #eaf0fa;
  margin: 0;
  padding: 0;
}

.youtube-feature-container {
  display: flex;
  justify-content: stretch;
  align-items: stretch;
  width: 100%;
  height: 480px;
  margin: 0;
  border-top: 4px solid #1e2a57;
  border-bottom: 4px solid #1e2a57;
  overflow: hidden;
}

.divider {
  width: 4px;
  background-color: #1e2a57;
  margin: 0;
  padding: 0;
}

/* =============================
   LEFT SIDE (Stay Connected)
============================= */
.youtube-left {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: transparent;
}

.youtube-left-inner {
  width: 90%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 40px;
  box-sizing: border-box;
}

.youtube-left h3 {
  color: black;
  font-size: 48px;
  font-weight: 900;
  margin: 0 0 24px 0;
  letter-spacing: 1px;
}

.youtube-left p {
  color: #2c3e50;
  font-size: 22px;
  line-height: 1.8;
  margin: 0 0 40px 0;
  max-width: 650px;
}

/* Buttons */
.social-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-block;
  padding: 20px 60px;
  font-size: 22px;
  font-weight: 800;
  color: white;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.youtube-btn {
  background: linear-gradient(145deg, #ff0000, #cc0000);
}
.youtube-btn:hover {
  background: linear-gradient(145deg, #e60000, #990000);
  transform: scale(1.07);
}

.facebook-btn {
  background: linear-gradient(145deg, #1877f2, #0f5ec4);
}
.facebook-btn:hover {
  background: linear-gradient(145deg, #1d4ed8, #0c4aaf);
  transform: scale(1.07);
}

/* =============================
   RIGHT SIDE (Video)
============================= */
.youtube-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: transparent;
}

.youtube-right-inner {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.youtube-right .youtube-videos {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.youtube-right .youtube-videos iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-left: 3px solid #1e2a57;
  border-right: 3px solid #1e2a57;
  border-radius: 0;
  object-fit: cover;
}

/* =============================
   PAST LIVESTREAMS — FIXED
============================= */
.youtube-section.past-livestreams {
  background: #eaf0fa;
  margin: 0;
  padding: 0;
  border-top: 4px solid #1e2a57;
  border-bottom: 4px solid #1e2a57;
}

.youtube-section.past-livestreams .youtube-heading {
  background-color: #1e2a57;
  color: white;
  font-size: 32px;
  text-align: center;
  padding: 20px 0;
  margin: 0;
}

.past-livestreams .youtube-videos {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  height: 480px;
  overflow: hidden;
  flex-wrap: nowrap;
  padding: 0;
}

.past-livestreams .youtube-videos iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 3px solid #1e2a57;
  border-left: none;
  border-right: none;
  border-radius: 0;
  object-fit: cover;
  margin: 0;
  padding: 0;
}

/* Divider */
.past-livestreams .youtube-videos iframe + iframe {
  border-left: 4px solid #1e2a57;
}

/* =============================
   FIX: cramped 1001–1150 widths
============================= */
@media (max-width: 1150px) and (min-width: 1001px) {
  .youtube-left-inner {
    width: 94%;
    padding: 0 24px;
  }

  .youtube-left h3 {
    font-size: 40px;
    margin-bottom: 16px;
  }

  .youtube-left p {
    font-size: 18px;
    margin-bottom: 22px;
    line-height: 1.6;
  }

  .social-buttons {
    gap: 16px;
  }

  .social-btn {
    padding: 16px 32px;
    font-size: 18px;
  }
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 1000px) {
  /* [OK] Move "Most Recent Livestream" banner above the first video */
  .livestream-section .youtube-heading {
    display: none;
  }

  .youtube-right-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .youtube-right-inner::before {
    content: "Most Recent Livestream";
    display: block;
    width: 100%;
    background-color: #1e2a57;
    color: white;
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    padding: 20px 0;
  }

  .youtube-feature-container {
    flex-direction: column;
    height: auto;
    border: none;
  }

  .divider {
    display: none;
  }

  .youtube-right .youtube-videos iframe {
    width: 100%;
    height: 340px;
  }

  .youtube-left-inner {
    padding: 40px 20px;
  }

  .past-livestreams .youtube-videos {
    flex-direction: column;
    height: auto;
  }

  .past-livestreams .youtube-videos iframe {
    width: 100%;
    height: 340px;
    border-left: none;
    border-right: none;
    border-top: 4px solid #1e2a57;
  }

  .past-livestreams .youtube-videos iframe:first-child {
    border-top: none;
  }
}
