/* assets/css/slider.css */

#elzemSlider {
    position: relative;
    width: 100%;
    max-width: 100%;
    background-color: #000000;
    overflow: hidden; /* Dışa taşmayı kesin olarak engeller */
}

/* Slider Alanı (1920x800 oranına tam uyum) */
#elzemSlider .carousel-item {
    width: 100%;
    height: 800px; /* Büyük ekranlarda tam 1920x800 hedef yüksekliği */
    max-height: 80vh; /* Çok yüksek ekranlarda tarayıcıyı tamamen boğmaması için üst sınır */
    overflow: hidden;
}

/* Resimlerin Alana Tam Sığması ve Oturması */
#elzemSlider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi esnetmeden, en-boy oranını koruyarak 1920x800 alanına yayar */
    object-position: center; /* Fotoğrafın tam merkezini odakta tutar */
    display: block;
}

/* Sinematik Karartma Perdesi */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.25) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Kapsayıcı Metin Alanı */
#elzemSlider .carousel-caption {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center; /* Dikeyde tam ortalama */
    z-index: 2;
    padding: 0 8%;
}

#elzemSlider .carousel-caption h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1.2;
}

#elzemSlider .carousel-caption p {
    color: #e0e0e0;
    font-size: 1.25rem;
    max-width: 650px;
    margin-bottom: 25px;
}

/* Yön Okları Tasarımı */
.carousel-control-prev,
.carousel-control-next {
    z-index: 3;
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-size: 50%;
    background-color: rgba(17, 17, 17, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: var(--vurgu-renki);
}

/* Alt Çizgi İndikatörleri */
.carousel-indicators {
    z-index: 3;
    margin-bottom: 30px;
}

.carousel-indicators button {
    width: 35px !important;
    height: 5px !important;
    background-color: var(--vurgu-renki) !important;
    border: none !important;
    opacity: 0.3 !important;
    transition: all 0.3s ease !important;
}

.carousel-indicators button.active {
    opacity: 1 !important;
    width: 55px !important;
}

/* ==========================================================================
   RESPONSIVE (MOBİL VE TABLET) OPTİMİZASYONU
   ========================================================================== */

/* Tablet ve Küçük Monitörler (1199px ve altı) */
@media (max-width: 1199.98px) {
    #elzemSlider .carousel-item {
        height: 600px; /* Ekran küçüldükçe oranlı daralma */
    }
    #elzemSlider .carousel-caption h2 {
        font-size: 2.8rem;
    }
}

/* Küçük Tabletler (991px ve altı) */
@media (max-width: 991.98px) {
    #elzemSlider .carousel-item {
        height: 480px;
    }
    #elzemSlider .carousel-caption h2 {
        font-size: 2.2rem;
    }
    #elzemSlider .carousel-caption p {
        font-size: 1.1rem;
    }
}

/* Akıllı Telefonlar (767px ve altı) */
@media (max-width: 767.98px) {
    #elzemSlider .carousel-item {
        height: 380px; /* Telefonlarda tam sığması için dikey yükseklik optimize edildi */
    }
    #elzemSlider .carousel-caption {
        padding: 0 30px;
    }
    #elzemSlider .carousel-caption h2 {
        font-size: 1.8rem;
    }
    #elzemSlider .carousel-caption p {
        font-size: 1rem;
    }
}