/* Slider Module Styles */
/* CSS Variables are loaded dynamically from database via ViewComponent */

.slider-module {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-width: 0;
}

/* Row sisteminde slider modülü layout kurallarına uymalı */
.row-content .column-content .slider-module {
    flex: inherit !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* 2 sütunlu row'da slider layout'ları */
.row-content.two-columns .column-content .slider-module.module-layout-1-4 {
    flex: 0 0 calc(50% - 0.5rem) !important;
    max-width: calc(50% - 0.5rem) !important;
}

.row-content.two-columns .column-content .slider-module.module-layout-2-4 {
    flex: 0 0 calc(50% - 0.5rem) !important;
    max-width: calc(50% - 0.5rem) !important;
}

.row-content.two-columns .column-content .slider-module.module-layout-3-4 {
    flex: 0 0 calc(75% - 0.25rem) !important;
    max-width: calc(75% - 0.25rem) !important;
}

.row-content.two-columns .column-content .slider-module.module-layout-fullwidth {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* Slider modülü layout sınıflarına göre boyutlanır */

/* Row sisteminde slider modülü layout kurallarına uymalı */
.row-content .column-content .slider-module {
    flex: inherit !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.row-content .column-content .slider-container {
    flex: inherit !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* 2 sütunlu row'da slider layout'ları */
.row-content.two-columns .column-content .slider-module.module-layout-1-4 {
    flex: 0 0 calc(50% - 0.5rem) !important;
    max-width: calc(50% - 0.5rem) !important;
}

.row-content.two-columns .column-content .slider-module.module-layout-2-4 {
    flex: 0 0 calc(50% - 0.5rem) !important;
    max-width: calc(50% - 0.5rem) !important;
}

.row-content.two-columns .column-content .slider-module.module-layout-3-4 {
    flex: 0 0 calc(75% - 0.25rem) !important;
    max-width: calc(75% - 0.25rem) !important;
}

.row-content.two-columns .column-content .slider-module.module-layout-fullwidth {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* 3 sütunlu row'da slider layout'ları */
.row-content.three-columns .column-content .slider-module.module-layout-1-4 {
    flex: 0 0 calc(33.333% - 0.5rem) !important;
    max-width: calc(33.333% - 0.5rem) !important;
}

.row-content.three-columns .column-content .slider-module.module-layout-2-4 {
    flex: 0 0 calc(66.666% - 0.5rem) !important;
    max-width: calc(66.666% - 0.5rem) !important;
}

.row-content.three-columns .column-content .slider-module.module-layout-3-4 {
    flex: 0 0 calc(75% - 0.25rem) !important;
    max-width: calc(75% - 0.25rem) !important;
}

.row-content.three-columns .column-content .slider-module.module-layout-fullwidth {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* 4 sütunlu row'da slider layout'ları */
.row-content.four-columns .column-content .slider-module.module-layout-1-4 {
    flex: 0 0 calc(25% - 0.5rem) !important;
    max-width: calc(25% - 0.5rem) !important;
}

.row-content.four-columns .column-content .slider-module.module-layout-2-4 {
    flex: 0 0 calc(50% - 0.5rem) !important;
    max-width: calc(50% - 0.5rem) !important;
}

.row-content.four-columns .column-content .slider-module.module-layout-3-4 {
    flex: 0 0 calc(75% - 0.5rem) !important;
    max-width: calc(75% - 0.5rem) !important;
}

.row-content.four-columns .column-content .slider-module.module-layout-fullwidth {
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* Tam genişlik layout */
.module-layout-fullwidth .slider-module {
    width: 100%;
    max-width: 100%;
}

/* 1/4 layout */
.module-layout-1-4 .slider-module {
    width: 100%;
    max-width: 100%;
}

/* 2/4 layout */
.module-layout-2-4 .slider-module {
    width: 100%;
    max-width: 100%;
}

/* 3/4 layout */
.module-layout-3-4 .slider-module {
    width: 100%;
    max-width: 100%;
}

/* Slider modülü artık üst seviyede grid sistemi ile kontrol ediliyor */

.slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-sizing: border-box;
    flex: 1 1 auto;
    min-width: 0;
}

/* Row sisteminde slider container layout kurallarına uymalı */
.row-content .column-content .slider-container {
    flex: inherit !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* 2 sütunlu row'da slider container layout'ları */
.row-content.two-columns .column-content .slider-container {
    flex: inherit !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
} */

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: auto;
    min-width: 100%;
}

.slide {
    min-width: 100%;
    aspect-ratio: 1920 / 756;
    /* Resmin oranına göre dinamik yükseklik */
    min-height: 300px;
    /* Minimum yükseklik */
    max-height: 80vh;
    /* Maximum yükseklik */
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Row sisteminde slide elementleri slider mantığını korumalı */
.row-content .column-content .slider-module .slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Layout'a göre slide yükseklikleri */
.module-layout-1-4 .slide {
    min-height: 200px;
    max-height: 60vh;
}

.module-layout-2-4 .slide {
    min-height: 250px;
    max-height: 70vh;
}

.module-layout-3-4 .slide {
    min-height: 280px;
    max-height: 75vh;
}

.module-layout-fullwidth .slide {
    min-height: 300px;
    max-height: 80vh;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: var(--bg-secondary, #f8f9fa);
    /* Resim arka planı için */
    box-sizing: border-box;
    overflow: hidden;
}

/* Row sisteminde slide-background slider mantığını korumalı */
.row-content .column-content .slider-module .slide-background {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-left: 5%;
    padding-top: 5%;
}

.slide-content {
    text-align: left;
    color: white;
    max-width: 50%;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-title {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    color: white;
}

/* Slider içerik boyutları artık üst seviyede grid sistemi ile kontrol ediliyor */

.slide-description {
    font-size: clamp(0.85rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    opacity: 0.95;
    color: white;
}

/* Açıklama metni boyutları artık üst seviyede grid sistemi ile kontrol ediliyor */

.slide-button {
    display: inline-block;
    padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1.5rem, 4vw, 2.5rem);
    background: var(--btn-primary-bg, linear-gradient(135deg, #f05d22 0%, #d94a1a 100%));
    color: var(--btn-primary-text, white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(240, 93, 34, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(240, 93, 34, 0.5);
    color: var(--btn-primary-text, white);
    text-decoration: none;
    background: var(--btn-primary-hover, linear-gradient(135deg, #d94a1a 0%, #f05d22 100%));
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.slider-prev:hover,
.slider-next:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color, #f05d22);
    transform: scale(1.2);
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .slider-container {
        aspect-ratio: 1920 / 756;
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .slider-wrapper {
        width: auto;
        min-width: 100%;
        display: flex;
    }

    .slide {
        aspect-ratio: 1920 / 756;
        width: 100%;
        flex: 0 0 100%;
        min-width: 100%;
        height: auto;
        position: relative;
    }

    .slide-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .slide-title {
        font-size: clamp(1.5rem, 4.5vw, 2.8rem);
    }

    .slide-description {
        font-size: clamp(0.85rem, 1.8vw, 1.1rem);
    }
}

@media (max-width: 768px) {
    .slider-container {
        aspect-ratio: 1920 / 756;
        width: 100%;
        max-width: 100%;
        height: auto;
        position: relative;
        overflow: hidden;
    }

    .slider-wrapper {
        width: auto;
        min-width: 100%;
        display: flex;
        height: 100%;
    }

    .slide {
        aspect-ratio: 1920 / 756 !important;
        width: 100%;
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
        min-height: unset !important;
        max-height: unset !important;
        height: auto;
        position: relative;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* Layout yüksekliklerini override et */
    .module-layout-1-4 .slide,
    .module-layout-2-4 .slide,
    .module-layout-3-4 .slide,
    .module-layout-fullwidth .slide {
        min-height: unset !important;
        max-height: unset !important;
        aspect-ratio: 1920 / 756 !important;
    }

    .slide-background {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
        margin: 0;
        padding: 0;
    }

    .slide-overlay {
        padding-left: 3%;
        padding-right: 3%;
    }

    .slide-content {
        max-width: 100%;
        padding: 1.5rem;
    }

    .slide-title {
        font-size: clamp(1.3rem, 4vw, 2.2rem);
        margin-bottom: 1rem;
    }

    .slide-description {
        font-size: clamp(0.8rem, 1.6vw, 1rem);
        margin-bottom: 1.5rem;
    }

    .slide-button {
        padding: clamp(0.7rem, 1.8vw, 1rem) clamp(1.2rem, 3vw, 2rem);
        font-size: clamp(0.8rem, 1.6vw, 1rem);
    }

    .slider-controls {
        padding: 0 0.5rem;
    }

    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        aspect-ratio: 1920 / 756;
        width: 100%;
        max-width: 100%;
        height: auto;
        position: relative;
        overflow: hidden;
    }

    .slider-wrapper {
        width: auto;
        min-width: 100%;
        display: flex;
        height: 100%;
    }

    .slide {
        aspect-ratio: 1920 / 756 !important;
        width: 100%;
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
        min-height: unset !important;
        max-height: unset !important;
        height: auto;
        position: relative;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* Layout yüksekliklerini override et */
    .module-layout-1-4 .slide,
    .module-layout-2-4 .slide,
    .module-layout-3-4 .slide,
    .module-layout-fullwidth .slide {
        min-height: unset !important;
        max-height: unset !important;
        aspect-ratio: 1920 / 756 !important;
    }

    .slide-background {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
        margin: 0;
        padding: 0;
    }

    .slide-overlay {
        padding-left: 2%;
        padding-right: 2%;
    }

    .slide-content {
        padding: 1rem;
    }

    .slide-title {
        font-size: clamp(1.1rem, 3.5vw, 1.8rem);
        margin-bottom: 0.8rem;
    }

    .slide-description {
        font-size: clamp(0.75rem, 1.4vw, 0.9rem);
        margin-bottom: 1.2rem;
    }

    .slide-button {
        padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(1rem, 2.5vw, 1.5rem);
        font-size: clamp(0.75rem, 1.4vw, 0.9rem);
    }

    .slider-prev,
    .slider-next {
        width: 35px;
        height: 35px;
    }

    .slider-dots {
        bottom: 15px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 360px) {
    .slider-container {
        aspect-ratio: 1920 / 756;
        width: 100%;
        max-width: 100%;
        height: auto;
        position: relative;
        overflow: hidden;
    }

    .slider-wrapper {
        width: auto;
        min-width: 100%;
        display: flex;
        height: 100%;
    }

    .slide {
        aspect-ratio: 1920 / 756 !important;
        width: 100%;
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
        min-height: unset !important;
        max-height: unset !important;
        height: auto;
        position: relative;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* Layout yüksekliklerini override et */
    .module-layout-1-4 .slide,
    .module-layout-2-4 .slide,
    .module-layout-3-4 .slide,
    .module-layout-fullwidth .slide {
        min-height: unset !important;
        max-height: unset !important;
        aspect-ratio: 1920 / 756 !important;
    }

    .slide-background {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background-size: contain;
        background-position: center center;
        background-repeat: no-repeat;
        margin: 0;
        padding: 0;
    }

    .slide-title {
        font-size: clamp(1rem, 3vw, 1.5rem);
    }

    .slide-description {
        font-size: clamp(0.7rem, 1.2vw, 0.8rem);
    }

    .slide-button {
        padding: clamp(0.5rem, 1.2vw, 0.6rem) clamp(1rem, 2vw, 1.2rem);
        font-size: clamp(0.7rem, 1.2vw, 0.8rem);
    }
}

/* Büyük ekranlar için */
@media (min-width: 1400px) {
    .slide {
        aspect-ratio: 1920 / 756;
        min-height: 500px;
        max-height: 85vh;
    }

    .slide-background {
        background-size: contain;
    }
}

/* Çok büyük ekranlar için */
@media (min-width: 1920px) {
    .slide {
        aspect-ratio: 1920 / 756;
        min-height: 600px;
        max-height: 90vh;
    }

    .slide-background {
        background-size: contain;
    }
}

/* Responsive ayarları artık üst seviyede grid sistemi ile kontrol ediliyor */

/* Layout'a göre slider içerik boyutları */
.module-layout-1-4 .slider-module .slide-title {
    font-size: 1.5rem;
}

.module-layout-1-4 .slider-module .slide-description {
    font-size: 0.9rem;
}

.module-layout-1-4 .slider-module .slide-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

.module-layout-2-4 .slider-module .slide-title {
    font-size: 2.5rem;
}

.module-layout-2-4 .slider-module .slide-description {
    font-size: 1.1rem;
}

.module-layout-2-4 .slider-module .slide-button {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.module-layout-3-4 .slider-module .slide-title {
    font-size: 3rem;
}

.module-layout-3-4 .slider-module .slide-description {
    font-size: 1.2rem;
}

.module-layout-3-4 .slider-module .slide-button {
    padding: 1.1rem 2.2rem;
    font-size: 1.05rem;
}

.module-layout-fullwidth .slider-module .slide-title {
    font-size: 1.75rem;
}

.module-layout-fullwidth .slider-module .slide-description {
    font-size: 1.3rem;
}

.module-layout-fullwidth .slider-module .slide-button {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* Mobilde slider layout'larını sıfırla - tüm modüller tam genişlik */
@media (max-width: 768px) {

    /* Mobilde tüm slider modülleri sütun sınırları içinde kalmalı */
    .row-content .column-content .slider-module {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .row-content .column-content .slider-container {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        aspect-ratio: 1920 / 756 !important;
    }
    
    .row-content .column-content .slider-module .slider-wrapper {
        width: auto !important;
        min-width: 100% !important;
        display: flex !important;
        height: 100% !important;
    }

    .row-content .column-content .slider-module.module-layout-1-4,
    .row-content .column-content .slider-module.module-layout-2-4,
    .row-content .column-content .slider-module.module-layout-3-4,
    .row-content .column-content .slider-module.module-layout-fullwidth {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Mobilde slide elementleri sütun sınırları içinde kalmalı */
    .row-content .column-content .slider-module .slide {
        aspect-ratio: 1920 / 756 !important;
        min-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: unset !important;
        max-height: unset !important;
        height: auto !important;
        flex: 0 0 100% !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .row-content .column-content .slider-module .slide-background {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    
    .row-content .column-content .slider-module .slide {
        position: relative !important;
    }

    .row-content .column-content .slider-module .slider-wrapper {
        width: auto !important;
        min-width: 100% !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        display: flex !important;
    }
    
    .row-content .column-content .slider-module .slider-container {
        overflow: hidden !important;
    }

    /* Mobilde slider içerik boyutları - tüm layout'lar için aynı */
    .module-layout-1-4 .slider-module .slide-title,
    .module-layout-2-4 .slider-module .slide-title,
    .module-layout-3-4 .slider-module .slide-title,
    .module-layout-fullwidth .slider-module .slide-title {
        font-size: 1rem !important;
    }

    .module-layout-1-4 .slider-module .slide-description,
    .module-layout-2-4 .slider-module .slide-description,
    .module-layout-3-4 .slider-module .slide-description,
    .module-layout-fullwidth .slider-module .slide-description {
        font-size: 1rem !important;
    }

    .module-layout-1-4 .slider-module .slide-button,
    .module-layout-2-4 .slider-module .slide-button,
    .module-layout-3-4 .slider-module .slide-button,
    .module-layout-fullwidth .slider-module .slide-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}