﻿/* =========================================================
   STİLLER (Anasayfa.css) - Türkçeleştirilmiş
========================================================= */

/* ANİMASYON */
@keyframes yukariKaydirSoluklestir {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ANA GÖRSEL (HERO) BÖLÜMÜ */
.ana-gorsel-bolumu {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    overflow: hidden;
}

.ana-gorsel-arka-plan {
    position: absolute;
    inset: 0;
    background-image: url("/img/sayfalar/anasayfa/daf-anasayfa-office2k.png");
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.ana-gorsel-katman {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
}

.ana-gorsel-konteyner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
}

/* ANA GÖRSEL İÇERİK (ÜST METİN) */
.ana-gorsel-icerik-sutunu {
    margin-bottom: 40px;
}

.ana-gorsel-giris-metni {
    font-size: 22px;
    line-height: 1.6;
    font-weight: 300;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 800px;
}

/* ANA GÖRSEL ALT SATIR (SLOGAN + WIDGET) */
.ana-gorsel-alt-satir {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

/* Slogan */
.slogan-kapsayici {
    padding-bottom: 60px;
}

.slogan-metin-stili {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    border-left: 5px solid #fff;
    padding-left: 20px;
    color: #fff;
    text-transform: capitalize;
}

/* HABER WIDGETI (SAĞ ALT KUTU) */
.haber-araci {
    display: flex;
    height: 160px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: yukariKaydirSoluklestir 0.8s ease-out 0.2s backwards;
}

.haber-baslik-kutusu {
    background-color: #28406d;
    width: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

    .haber-baslik-kutusu span {
        color: #fff;
        font-size: 20px;
        font-weight: 300;
        line-height: 1.3;
    }

.haber-icerik-kutusu {
    background-color: #4e5466;
    width: 500px;
    display: flex;
    align-items: center;
    padding: 25px;
    gap: 25px;
}

.haber-gorsel-kapsayici {
    flex-shrink: 0;
    width: 140px;
    height: 90px;
    overflow: hidden;
    background: #000;
}

    .haber-gorsel-kapsayici img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.haber-bilgi {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.haber-tarih {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 5px;
    color: #ddd;
}

.haber-baglanti {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    line-height: 1.4;
    transition: opacity 0.3s;
}

    .haber-baglanti:hover {
        opacity: 0.8;
    }

/* RESPONSIVE (MOBİL) STİLLERİ */
@media (max-width: 1200px) {
    .ana-gorsel-konteyner {
        padding: 0 30px;
    }

    .haber-icerik-kutusu {
        width: 400px;
    }
}

@media (max-width: 992px) {
    .ana-gorsel-bolumu {
        height: auto;
        padding-bottom: 0;
    }

    .ana-gorsel-konteyner {
        padding: 120px 24px 0 24px;
        justify-content: flex-start;
    }

    .ana-gorsel-giris-metni {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .ana-gorsel-alt-satir {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
        width: 100%;
        margin-top: auto;
    }

    .slogan-kapsayici {
        display: none;
    }

    .haber-araci {
        width: 100%;
        height: auto;
        flex-direction: column;
    }

    .haber-baslik-kutusu,
    .haber-icerik-kutusu {
        width: 100%;
        height: auto;
        padding: 20px;
    }

    .haber-baslik-kutusu {
        justify-content: flex-start;
        text-align: left;
    }

        .haber-baslik-kutusu span br {
            display: none;
        }
}
