/*
 * ============================================================
 *  ANASAYFA STİLLERİ  (anasayfa.css)
 *  Blade içindeki inline <style> bloğu buraya taşındı.
 *  Renkler hardcode değil — tema CSS değişkenlerini kullanır.
 *  app.css'e ekleyin: @import './anasayfa.css';
 *  Ya da master.blade.php head'ine:
 *  <link rel="stylesheet" href="{{ asset('/assets/css/anasayfa.css') }}">
 * ============================================================ */


/* ============================================================
   0. SECTION RENK SINIFLARI
   Tema dosyasındaki --s-*-bg / --s-*-metin / --s-*-aksan
   değişkenlerini bu class'lar aracılığıyla uygular.
   ============================================================ */
.s-ikon {
    background-color: var(--s-ikon-bg, #ffffff);
    color: var(--s-ikon-metin, inherit);
}
.s-ikon .section-title::after {
    background: var(--s-ikon-aksan, var(--tema-birincil));
}

.s-gundem {
    background-color: var(--s-gundem-bg, #f9f9f9);
    color: var(--s-gundem-metin, inherit);
}
.s-gundem .section-title::after {
    background: var(--s-gundem-aksan, var(--tema-birincil));
}

.s-duyuru {
    background-color: var(--s-duyuru-bg, #ffffff);
    color: var(--s-duyuru-metin, inherit);
}
.s-duyuru .section-title::after {
    background: var(--s-duyuru-aksan, var(--tema-birincil));
}

.s-haber {
    background-color: var(--s-haber-bg, #f9f9f9);
    color: var(--s-haber-metin, inherit);
}
.s-haber .section-title::after {
    background: var(--s-haber-aksan, var(--tema-birincil));
}

.s-basin {
    background-color: var(--s-basin-bg, #ffffff);
    color: var(--s-basin-metin, inherit);
}
.s-basin .section-title::after {
    background: var(--s-basin-aksan, var(--tema-birincil));
}


/* ============================================================
   1. VİDEO BANNER
   ============================================================ */
.video-banner {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-banner video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--tema-video-overlay, rgba(0, 0, 0, 0.4));
    z-index: 2;
}

/* ============================================================
   2. BANNER İÇERİK (h1, p, buton)
   ============================================================ */
.banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 20px;
    max-width: 800px;
}

.banner-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out both;
}

.banner-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(
        135deg,
        var(--tema-birincil, #9a1d20) 0%,
        var(--tema-birincil-koyu, #6d1114) 100%
    );
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   3. SCROLL GÖSTERGESİ
   ============================================================ */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* ============================================================
   4. GENEL İÇERİK BÖLÜMÜ (.content-section)
   ============================================================ */
.content-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--tema-metin-koyu, #333);
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--tema-metin-orta, #666);
    margin-bottom: 15px;
}

/* ============================================================
   5. DUYURU & BASIN LİNKLERİ
   (blade'de style="color:#000" olarak yazılmıştı, class'a taşındı)
   ============================================================ */
.duyuru-link {
    color: var(--tema-metin-koyu, #232323);
    text-decoration: none;
    transition: color 0.3s ease;
}

.duyuru-link:hover {
    color: var(--tema-birincil, #9a1d20);
}

/* ============================================================
   5b. DUYURU KARTI — Yeni Tarz
   Sol çizgi + sabit yükseklik kaldırıldı.
   Tarih: sol üstte renkli badge • Hover: üst aksanlı çizgi + kaldırma
   ============================================================ */
article.duyuru {
    position: relative;
    background: var(--tema-bg-beyaz);
    border: 1px solid var(--tema-kenar) !important;
    border-top: 3px solid var(--tema-kenar) !important;
    border-left: none !important;
    border-radius: var(--tema-radius-orta);
    padding: 1rem 1rem 1rem 0.75rem;
    height: auto;
    min-height: unset;
    box-shadow: var(--tema-golge-hafif);
    transition: var(--tema-gecis);
    overflow: hidden;
}

article.duyuru::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tema-birincil);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    border-radius: var(--tema-radius-orta) var(--tema-radius-orta) 0 0;
}

article.duyuru:hover {
    border-color: var(--tema-kenar-koyu) !important;
    border-top-color: transparent !important;
    box-shadow: var(--tema-golge-orta);
    transform: translateY(-2px);
}

article.duyuru:hover::before {
    transform: scaleX(1);
}

/* Tarih badge — günü büyük + ay küçük */
article.duyuru .date-number {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--tema-birincil), var(--tema-birincil-acik));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

article.duyuru .date-month {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--tema-metin-orta);
    margin-top: 2px;
}

/* Tarih kolonu ile içerik arasına ince ayırıcı */
article.duyuru .col-auto {
    border-right: 1px solid var(--tema-kenar);
    padding-right: 0.85rem;
    margin-right: 0.1rem;
}

article.duyuru .article-title {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--tema-metin-koyu);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   6. BÖLÜM BAŞLIKLARI (section h2 başlıkları)
   ============================================================ */
section h2.mb-0 {
    font-size: calc(1.3rem + 0.4vw);
    font-weight: 700;
    color: var(--tema-metin-koyu, #232323);
}

/* Renkli alt çizgi aksanı — tüm section başlıklarında kullanılır */
.section-title {
    position: relative;
    padding-bottom: 0.6rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--tema-birincil);
    border-radius: 2px;
}

/* ============================================================
   6b. HABER KARTI (news-card)
   ============================================================ */
.news-card {
    position: relative;
    background: var(--tema-bg-beyaz);
    border: 1px solid var(--tema-kenar);
    border-radius: var(--tema-radius-orta);
    overflow: hidden;
    box-shadow: var(--tema-golge-hafif);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Hover'da alttan kayan aksan çizgisi */
.news-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tema-birincil);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    z-index: 1;
}
.news:hover .news-card::before {
    transform: scaleX(1);
}
.news:hover .news-card {
    box-shadow: var(--tema-golge-orta);
    transform: translateY(-3px);
}

/* Görsel zoom + overlay efekti */
.news-thumb {
    overflow: hidden;
    position: relative;
}
.news-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--tema-birincil, #9a1d20);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
    pointer-events: none;
}
.news:hover .news-thumb::after {
    opacity: 0.10;
}
.news-thumb .ll-image {
    transition: transform 0.45s ease, filter 0.45s ease;
    filter: brightness(0.97);
}
.news:hover .news-thumb .ll-image {
    transform: scale(1.06);
    filter: brightness(1.04);
}

.news-card-body {
    padding: 0.75rem 0.85rem 0.85rem;
}

.news-card .news-title {
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 600;
    color: var(--tema-metin-koyu);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}
.news:hover .news-card .news-title {
    color: var(--tema-birincil);
}

/* Tarih meta */
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
    align-items: center;
}
.news-card .news-date {
    font-size: 0.72rem;
    color: var(--tema-metin-orta);
}

/* ============================================================
   7. ANİMASYONLAR
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================================
   8. İKON & HABER THUMBNAIL — inline style kaldırıldı
   ============================================================ */
/* İkon görsel boyutu (blade'deki style="max-width:60px" buraya taşındı) */
img.ikon {
    max-width: 60px;
}

/* Haber thumbnail sarmalayıcı sabit yükseklik
   (blade'deki style="height:181px" buraya taşındı) */
.news-thumb {
    width: 100%;
    height: 181px;
}


/* ============================================================
   8b. SAYFA BAŞLIĞI (page-header — cover-background yerine)
   ============================================================ */
.page-header {
    background: linear-gradient(135deg, var(--tema-birincil, #9a1d20) 0%, var(--tema-birincil-koyu, #6d1114) 100%);
    padding: 2rem 0 1.5rem;
    color: #fff;
}
.page-header-title {
    font-size: calc(1.4rem + 0.5vw);
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}
.page-header-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.1rem;
    font-size: 0.82rem;
    opacity: 0.85;
}
.page-header-breadcrumb li + li::before {
    content: '/';
    margin: 0 0.35rem;
    opacity: 0.55;
}
.page-header-breadcrumb a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
.page-header-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}
.page-header-breadcrumb li:last-child {
    color: rgba(255,255,255,0.7);
}

/* ============================================================
   9. MOBİL UYUMLULUK
   ============================================================ */
@media (max-width: 768px) {
    .video-banner {
        height: 45vh;
    }

    .video-banner video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .video-banner {
        height: 30vh;
    }

    .video-banner video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
