/* ============================================
   VIDEO SECTION STYLES - Greenix WordPress Theme
   ============================================ */

/* Section Container */
.video-section {
  position: relative;
  overflow: hidden;
  background-image: url("../images/video-section-bg.png");
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  height: 1080px;
  padding-bottom: 60px;
}

/* Content Container */
.video-section__content {
  position: relative;
  z-index: 2;
}

/* Başlık ve Yaprak Header */
.video-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  position: relative;
}

/* Başlık */
.video-section__title {
  font-size: 96px;
  font-weight: 300;
  line-height: 1.2;
  color: #c5c5c5;
  margin: 0;
  text-transform: uppercase;
  color: var(--color-light-green);
  flex: 1;
}

.video-section__title .highlighted {
  color: var(--color-light-green);
  font-weight: 700;
}

/* Yaprak Dekorasyon - Başlıkla aynı hizada, sağda */
.video-section__header .video-section__leaf {
  position: relative;
  width: 280px;
  height: auto;
  flex-shrink: 0;
  margin-left: 40px;
  pointer-events: none;
}

/* Ana İçerik Alanı */
.video-section__main {
  position: relative;
}

/* Video Slider Container */
.video-section__slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

/* Slider Wrapper */
.video-section__slider-wrapper {
  width: 100%;
  overflow: hidden;
}

.video-section__slider-track {
  display: flex;
}

/* Video Slide */
.video-section__slide {
  width: 100%;
  flex-shrink: 0;
}

/* Slide İçeriği - Video ve Metin Yan Yana */
.video-section__slide-content {
  display: flex;
  gap: 53px;
}

/* Sol: Video */
.video-section__slide-left {
  flex: 0 0 854px;
  max-width: 854px;
  position: relative;
}

/* Video Wrapper */
.video-section__video-wrapper {
  position: relative;
  height: 480px;
}

/* Video Thumbnail */
.video-section__thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video Element */
.video-section__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  background: #000;
}

/* Play Button */
.video-section__play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease;
}

.video-section__play-btn img {
  width: 80px;
  height: 80px;
  display: block;
}

.video-section__play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

/* Video Altı Alanı - Pagination ve Social Banner */
.video-section__bottom {
  width: 854px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* Slider Pagination */
.video-section__pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.video-section__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  --webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.video-section__dot.active {
  background: var(--color-green);
}

.video-section__dot:hover {
  background: var(--color-green);
  opacity: 0.7;
}

/* Sağ: Metin Alanı - Slide içinde */
.video-section__slide-right {
  position: relative;
  flex: 0 0 540px;
  max-width: 540px;
  min-height: 479px;
  padding-bottom: 40px;
}

/* Alt Başlık */
.video-section__subtitle {
  font-size: 36px;
  font-weight: 400;
  color: var(--color-gray-dark);
  margin: 0 0 20px 0;
}

/* Metin Alanı */
.video-section__text {
  margin-bottom: 32px;
}

.video-section__text p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-gray-dark);
  margin: 0 0 16px 0;
}

.video-section__text p:last-child {
  margin-bottom: 0;
}

/* CTA Button */
.video-section__btn {
  display: inline-block;
  background: var(--color-green);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.video-section__btn:hover {
  background: #2fa53e;
}

.video-section__modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-section__modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.video-section__modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  z-index: 10000;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  padding: 20px;
}

.video-section__modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: background 0.3s ease;
}

.video-section__modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.video-section__modal-video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 80vh;
}

/* Video Empty State */
.video-section__empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--color-gray-dark);
  font-size: 18px;
}

.video-section_social-banner {
  max-width: 100%;
}

.mobile-social-banner {
  display: none;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Large Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  .video-section__slide-content {
    gap: 40px;
  }

  .video-section__slide-left {
    flex: 0 0 750px;
    max-width: 750px;
  }

  .video-section__video-wrapper {
    height: 420px;
  }

  .video-section__bottom {
    width: 750px;
  }

  .video-section__slide-right {
    flex: 0 0 480px;
    max-width: 480px;
  }

  .video-section__title {
    font-size: 80px;
  }

  .video-section__header .video-section__leaf {
    width: 240px;
  }
}

/* Desktop (1280px - 1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
  .video-section {
    height: 960px;
  }

  .video-section__slide-content {
    gap: 35px;
  }

  .video-section__slide-left {
    flex: 0 0 680px;
    max-width: 680px;
  }

  .video-section__video-wrapper {
    height: 380px;
  }

  .video-section__bottom {
    width: 680px;
  }

  .video-section__slide-right {
    flex: 0 0 440px;
    max-width: 440px;
    min-height: 420px;
  }

  .video-section__title {
    font-size: 72px;
  }

  .video-section__subtitle {
    font-size: 32px;
  }

  .video-section__header .video-section__leaf {
    width: 200px;
    margin-left: 30px;
  }
}

/* Laptop Large (1150px - 1279px) */
@media (min-width: 1150px) and (max-width: 1279px) {
  .video-section {
    height: 900px;
  }

  .video-section__slide-content {
    gap: 30px;
  }

  .video-section__slide-left {
    flex: 0 0 600px;
    max-width: 600px;
  }

  .video-section__video-wrapper {
    height: 340px;
  }

  .video-section__bottom {
    width: 600px;
  }

  .video-section__slide-right {
    flex: 0 0 400px;
  }

  .video-section__title {
    font-size: 64px;
  }

  .video-section__subtitle {
    font-size: 30px;
  }

  .video-section__header .video-section__leaf {
    width: 180px;
    margin-left: 25px;
  }

  .video-section__play-btn img {
    width: 70px;
    height: 70px;
  }
}

/* Laptop Medium (1080px - 1149px) */
@media (min-width: 1080px) and (max-width: 1149px) {
  .video-section {
    height: 860px;
  }

  .video-section__slide-content {
    gap: 25px;
  }

  .video-section__slide-left {
    flex: 0 0 550px;
    max-width: 550px;
  }

  .video-section__video-wrapper {
    height: 310px;
  }

  .video-section__bottom {
    width: 550px;
  }

  .video-section__slide-right {
    flex: 0 0 360px;
    max-width: 360px;
    min-height: 340px;
  }

  .video-section__title {
    font-size: 56px;
  }

  .video-section__subtitle {
    font-size: 28px;
  }

  .video-section__text p {
    font-size: 14px;
  }

  .video-section__header .video-section__leaf {
    width: 160px;
    margin-left: 20px;
  }

  .video-section__play-btn img {
    width: 65px;
    height: 65px;
  }
}

/* Tablet Large (1040px - 1079px) */
@media (min-width: 1040px) and (max-width: 1079px) {
  .video-section {
    height: 820px;
  }

  .video-section__slide-left {
    flex: 0 0 500px;
    max-width: 500px;
  }

  .video-section__video-wrapper {
    height: 280px;
  }

  .video-section__bottom {
    width: 500px;
  }

  .video-section__slide-right {
    flex: 0 0 320px;
    max-width: 320px;
    min-height: 300px;
  }

  .video-section__title {
    font-size: 48px;
  }

  .video-section__subtitle {
    font-size: 26px;
  }

  .video-section__text p {
    font-size: 14px;
    line-height: 1.6;
  }

  .video-section__header .video-section__leaf {
    width: 140px;
    margin-left: 15px;
  }

  .video-section__play-btn img {
    width: 60px;
    height: 60px;
  }
}

/* Tablet (1024px - 1039px) - Son desktop düzeni */
@media (min-width: 1024px) and (max-width: 1039px) {
  .video-section {
    height: 780px;
  }

  .video-section__slide-content {
    gap: 18px;
  }

  .video-section__slide-left {
    flex: 0 0 460px;
    max-width: 460px;
  }

  .video-section__video-wrapper {
    height: 260px;
  }

  .video-section__bottom {
    width: 460px;
  }

  .video-section__slide-right {
    flex: 0 0 290px;
    max-width: 290px;
    min-height: 280px;
  }

  .video-section__title {
    font-size: 42px;
  }

  .video-section__subtitle {
    font-size: 24px;
  }

  .video-section__text p {
    font-size: 13px;
    line-height: 1.6;
  }

  .video-section__header .video-section__leaf {
    width: 120px;
    margin-left: 12px;
  }

  .video-section__play-btn img {
    width: 55px;
    height: 55px;
  }
}

@media (max-width: 1023px) {
  .video-section {
    height: auto;
    padding: 40px 0;
    background-size: cover;
    background-position: center;
  }

  .video-section__content {
    padding: 0 20px;
  }

  /* Header - Başlık ve Yaprak */
  .video-section__header {
    margin-bottom: 24px;
    flex-wrap: wrap;
  }

  /* Başlık - Üstte, küçük font */
  .video-section__title {
    font-size: 32px;
    margin-bottom: 0;
    text-align: left;
  }

  /* Yaprak Dekorasyon - Mobilde küçült veya gizle */
  .video-section__header .video-section__leaf {
    width: 120px;
    margin-left: 20px;
    margin-top: -10px;
  }

  /* Slide içeriği - Tek sütun */
  .video-section__slide-content {
    flex-direction: column;
    gap: 24px;
  }

  /* Video alanı - Tam genişlik */
  .video-section__slide-left {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }

  .video-section__video-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .video-section__thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .video-section__play-btn img {
    width: 60px;
    height: 60px;
  }

  /* Video Altı Alanı - Mobilde tam genişlik */
  .video-section__bottom {
    width: 100%;
  }

  /* Sosyal medya banner - Pagination altında */
  .video-section_social-banner {
    max-width: 100%;
    margin-bottom: 24px;
    display: none;
  }

  .mobile-social-banner {
    display: block;
  }

  /* Metin alanı - Video altında */
  .video-section__slide-right {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    min-height: auto;
    padding-bottom: 0;
    position: relative;
  }

  /* Alt başlık */
  .video-section__subtitle {
    font-size: 32px;
    margin-bottom: 16px;
  }

  /* Metin */
  .video-section__text {
    margin-bottom: 24px;
  }

  .video-section__text p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
  }

  /* CTA Button */
  .video-section__btn {
    font-size: 16px;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: fit-content;
  }

  .video-section__main {
    display: flex;
    flex-direction: column;
    gap: 60px;
  }
}

/* Küçük mobil ekranlar */
@media (max-width: 767px) {
  .video-section {
    padding: 32px 0;
  }
  .video-section__header .video-section__leaf {
    display: none;
  }
  .video-section__content {
    padding: 0 16px;
  }

  /* Yaprak Dekorasyon - Küçük mobilde daha da küçült */
  .video-section__header .video-section__leaf {
    width: 80px;
    margin-left: 10px;
    margin-top: -5px;
  }

  .video-section_social-banner {
    margin-bottom: 20px;
  }

  .video-section__text p {
    font-size: 13px;
  }
  .video-section__play-btn img {
    width: 50px;
    height: 50px;
  }
}
