﻿/* =============================================== */
/* --- SADECE ANASAYFAYA AİT STİLLER --- */
/* =============================================== */

.hero {
    background-color: var(--dark-text);
    background-size: cover;
    background-position: center;
    color: var(--secondary-color);
    padding: 120px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

    .hero h1 {
        font-size: 3.5rem;
        font-weight: 700;
        max-width: 800px;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.25rem;
        max-width: 700px;
        opacity: 0.9;
        margin-bottom: 2rem;
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

    .feature-card h3 {
        margin-top: 1rem;
        font-size: 1.5rem;
        color: var(--primary-color);
    }

.two-column-layout {
    display: flex;
    align-items: center;
    gap: 3rem;
}

    .two-column-layout .column {
        flex: 1;
    }

/* =============================================== */
/* --- ANASAYFA MOBİL UYUMLULUK STİLLERİ --- */
/* =============================================== */

@media (max-width: 768px) {

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .two-column-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* ======================================================= */
/* --- ÖNE ÇIKAN SERİLER BÖLÜMÜ STİLLERİ --- */
/* ======================================================= */
/* --- TEMEL YAPILAR (Aynı kalıyor) --- */
.featured-series {
    padding-bottom: 0;
}

.series-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.series-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden; /* Taşan kısımları gizle */
    display: block;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .series-card img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.5s ease;
        /* Resmin orijinal hali net görünsün diye filtre eklemiyoruz */
    }

/* --- YENİ TASARIM BURADA BAŞLIYOR --- */

/* 1. KUTU ALANI (CONTENT) */
.series-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    padding: 1.5rem;
    /* Varsayılan Arka Plan: Sadece alttan hafif bir karartma (Gradient) */
    /* Böylece kutu gibi durmaz, araba görünür */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    /* Animasyon geçiş ayarları */
    transition: all 0.4s ease;
}

    /* 2. BAŞLIK (H3) - VARSAYILAN KÜÇÜK HALİ */
    .series-card__content h3 {
        margin: 0;
        font-size: 1.2rem; /* Başlangıçta küçük font */
        font-weight: 600;
        color: #fff;
        transform-origin: left bottom; /* Büyüme yönü sol alt köşe */
        transition: all 0.4s ease; /* Yumuşak geçiş */
    }

    /* 3. AÇIKLAMA METNİ (P) - BAŞLANGIÇTA GİZLİ */
    .series-card__content p {
        color: #ddd;
        font-size: 0.9rem;
        margin-top: 0;
        /* Gizleme hilesi: Yükseklik 0 ve Opaklık 0 */
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.4s ease; /* Açılma animasyonu */
    }

/* --- HOVER (MOUSE İLE ÜZERİNE GELİNCE) EFEKTLERİ --- */

/* Kartın üzerine gelince resim biraz büyüsün (Zoom efekti) */
.series-card:hover img {
    transform: scale(1.1);
}

/* Kartın üzerine gelince içerik kutusunun arkası koyulaşsın */
.series-card:hover .series-card__content {
    background: rgba(0, 0, 0, 0.85); /* Neredeyse tam siyah bir zemin oluşur */
    padding-bottom: 2rem; /* Biraz daha genişlesin */
}

    /* Kartın üzerine gelince Başlık Büyüsün */
    .series-card:hover .series-card__content h3 {
        font-size: 1.5rem; /* Font büyüyor */
        margin-bottom: 0.5rem; /* Altına boşluk açılıyor (p etiketi için) */
        color: #fff;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }

    /* Kartın üzerine gelince Açıklama Metni Görünsün */
    .series-card:hover .series-card__content p {
        max-height: 100px; /* Yeterli bir yükseklik veriyoruz */
        opacity: 1; /* Görünür oluyor */
        margin-top: 0.5rem;
    }

/* --- MASAÜSTÜ RESPONSIVE --- */
@media (min-width: 992px) {
    .series-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*.featured-series {
    padding-bottom: 0;
}

.series-grid {
    display: grid;
    grid-template-columns: 1fr;*/ /* Mobilde tek sütun */
    /*gap: 2rem;
    margin-top: 3rem;
}

.series-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    color: var(--secondary-color);
    display: block;*/ /* Kartın tamamını link yapmak için */
    /*text-decoration: none;
}

    .series-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
        transition: background 0.4s ease;
    }

    .series-card:hover::after {
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 70%);
    }

    .series-card img {
        width: 100%;
        display: block;
        transition: transform 0.4s ease;
    }

    .series-card:hover img {
        transform: scale(1.05);
    }

.series-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.5rem;
    z-index: 2;
    width: 100%;
}

    .series-card__content h3 {
        margin: 0 0 0.5rem 0;
        font-size: 1.8rem;
    }

    .series-card__content p {
        margin: 0;
        opacity: 0.8;
    }*/

/* --- MASAÜSTÜ İÇİN RESPONSIVE AYARI --- */
/*@media (min-width: 992px) {
    .series-grid {
        grid-template-columns: repeat(3, 1fr);*/ /* Masaüstünde 3 sütun */
    /*}
}*/

/* ================================ */
/* --- GALERİ SLİDER --- */
/* ================================ */

.gallery-slider {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

.gallery-track-container {
    overflow: hidden;
    width: 100%;
}

.gallery-track {
    display: flex;
    transition: transform 0.4s ease;
}

.gallery-slide {
    min-width: calc(100% / 3); /* Masaüstü 3 slide */
    padding: 0.5rem;
}

    .gallery-slide img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        border-radius: 10px;
    }

/* Mobil: 1 slide */
@media (max-width: 768px) {
    .gallery-slide {
        min-width: 100%;
    }
}

.slider-btn {
    background: rgba(0, 0, 0, 0.25); /* hafif gri-siyah saydam */
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 6px; /* hafif yuvarlatılmış */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease;
    z-index: 10;
}

    .slider-btn:hover {
        background: rgba(0, 0, 0, 0.35);
    }

.prev-btn {
    margin-right: 12px;
}

.next-btn {
    margin-left: 12px;
}


/* ======================================================= */
/* --- GALERİ BÖLÜMÜ STİLLERİ --- */
/* ======================================================= */

/*.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);*/ /* Mobilde 2 sütun */
    /*gap: 1rem;
    margin-top: 3rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.1);
    }*/

/* --- MASAÜSTÜ İÇİN RESPONSIVE AYARI --- */
/*@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);*/ /* Masaüstünde 4 sütun */
    /*}
}*/

/* ======================================================= */
/* --- CTA (BAYİMİZ OLUN) BÖLÜMÜ STİLLERİ --- */
/* ======================================================= */

.cta-section {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 4rem 1rem;
}

    .cta-section h2 {
        font-size: 2.5rem;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .cta-section p {
        max-width: 600px;
        margin: 0 auto 2rem auto;
        font-size: 1.1rem;
        opacity: 0.9;
    }

    .cta-section .btn-cta {
        transform: scale(1.1); /* Butonu biraz büyük yap */
        background-color: var(--secondary-color);
        color: var(--primary-color);
        font-weight: bold;
        padding: 14px 32px;
    }

        .cta-section .btn-cta:hover {
            background-color: #f0f0f0;
            transform: scale(1.15); /* Üzerine gelince biraz daha büyüsün */
        }