/**
 * WordPress Responsive Slider için CSS
 * Bu dosyayı temanızın klasörüne 'custom-slider.css' olarak kaydedin
 */

/* Gotham Font Import - Google Fonts alternatifi */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

.custom-slider-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

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

.custom-slide {
    min-width: 100%;
    position: relative;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.custom-slide.active {
    opacity: 1;
}

.custom-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.custom-slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    opacity: 0;
    z-index: 2;
}

.custom-slide.active .custom-slide-content {
    opacity: 1;
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Başlık stilini güncelleme - Gotham Black/Ultra Font */
.custom-slide-content h2 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    font-weight: 900; /* Ultra Bold */
    font-family: 'Gotham Black', 'Gotham Ultra', 'Barlow', 'Oswald', 'Arial Black', sans-serif;
    letter-spacing: -0.02em; /* Gotham karakteristik harf aralığı */
    text-transform: uppercase; /* Gotham tipik kullanımı */
    transform: translateY(0);
    opacity: 1;
    transition: all 0.8s ease;
}

/* Eğer Gotham font dosyanız varsa bu kısmı kullanın */
@font-face {
    font-family: 'Gotham Black';
    src: url('fonts/Gotham-Black.woff2') format('woff2'),
         url('fonts/Gotham-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gotham Ultra';
    src: url('fonts/Gotham-Ultra.woff2') format('woff2'),
         url('fonts/Gotham-Ultra.woff') format('woff');
    font-weight: 950;
    font-style: normal;
    font-display: swap;
}

/* Paragrafları gizle */
.custom-slide-content p {
    display: none;
}

/* Mavi renge uygun slider arkaplan efekti */
.custom-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(68, 130, 255, 0.2), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.custom-slider-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.custom-prev, .custom-next {
    background: rgba(68, 130, 255, 0.7);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.custom-prev:hover, .custom-next:hover {
    background: rgba(68, 130, 255, 0.9);
}

.custom-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

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

.custom-dot.active {
    background: #4482FF;
}

/* Mobil görünüm ayarları - Yüksekliği artırılmış versiyon */
@media (max-width: 768px) {
    .custom-slide {
        height: 500px !important; /* Mobilde yüksekliği belirgin şekilde artır */
    }
    
    .custom-slide img {
        width: 100%;
        height: 100% !important;
        object-fit: cover !important; /* Görsel oranlarını koruyarak alanı kapla */
    }
    
    .custom-slide-content h2 {
        font-size: 1.8em;
        margin: 0;
        padding: 8px 15px;
        font-weight: 900;
        font-family: 'Gotham Black', 'Gotham Ultra', 'Barlow', 'Oswald', 'Arial Black', sans-serif;
    }
    
    .custom-slider-nav {
        padding: 0 10px;
    }
    
    .custom-prev, .custom-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* Daha küçük mobil ekranlar için */
@media (max-width: 480px) {
    .custom-slide {
        height: 450px !important; /* Telefonda da yüksek bir değer */
    }
    
    .custom-slide-content h2 {
        font-size: 1.5em;
        padding: 6px 12px;
        font-weight: 900;
        font-family: 'Gotham Black', 'Gotham Ultra', 'Barlow', 'Oswald', 'Arial Black', sans-serif;
    }
    
    .custom-prev, .custom-next {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* En küçük ekranlar için ek ayarlar */
@media (max-width: 360px) {
    .custom-slide {
        height: 400px !important;
    }
    
    .custom-slide-content h2 {
        font-family: 'Gotham Black', 'Gotham Ultra', 'Barlow', 'Oswald', 'Arial Black', sans-serif;
        font-weight: 900;
    }
}

/* Elementor ile çakışmaları önlemek için */
.elementor-element .custom-slider-container,
.elementor-element.e-con,
.e-con .custom-slider-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* Mobil yükseklik ayarı için önemli kural */
.custom-slide, .custom-slide img {
    min-height: 500px !important; /* Minimum yükseklik zorlaması */
}

/* Elementor container padding'ini temizleme */
.elementor-element-8c20f20,
.elementor-element-8c20f20.e-con-full,
.elementor-element-8c20f20.e-flex {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* İkinci slider için ek stiller */
/* İkinci slider özel ayarları */
.custom-slider-container.slider-2 .custom-slide-content h2 {
    color: #fff;
    font-size: 2.2em;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    font-weight: 900; /* Ultra Bold */
    font-family: 'Gotham Black', 'Gotham Ultra', 'Barlow', 'Oswald', 'Arial Black', sans-serif;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    max-width: 90%;
}

/* Mobil görünümde ikinci slider için ayarlar */
@media (max-width: 768px) {
    .custom-slider-container.slider-2 .custom-slide {
        height: 500px !important;
    }
    
    .custom-slider-container.slider-2 .custom-slide-content h2 {
        font-size: 1.6em;
        padding: 8px 12px;
        font-weight: 900;
        font-family: 'Gotham Black', 'Gotham Ultra', 'Barlow', 'Oswald', 'Arial Black', sans-serif;
    }
}

@media (max-width: 480px) {
    .custom-slider-container.slider-2 .custom-slide {
        height: 450px !important;
    }
    
    .custom-slider-container.slider-2 .custom-slide-content h2 {
        font-size: 1.3em;
        padding: 6px 10px;
        font-weight: 900;
        font-family: 'Gotham Black', 'Gotham Ultra', 'Barlow', 'Oswald', 'Arial Black', sans-serif;
    }
}