/**
 * AnadoluSistem — Basında Ben Ön Yüz Stilleri (MGS 1.0)
 * Kesin Kural: Tüm kartlar daima tek sütunda, alt alta listelenir.
 * Responsive, Yüksek Tipografik Kalite ve Modal Galeri Stilleri
 */

/* ==========================================================================
   1. KRONOLOJİK TEK SÜTUN KART LİSTESİ
   ========================================================================== */
.yu-basin-kapsayici {
    max-width: 880px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.yu-basin-baslik-alani {
    text-align: center;
    margin-bottom: 2.5rem;
}

.yu-basin-ana-baslik {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.yu-basin-alt-baslik {
    font-size: 1.05rem;
    color: #6c757d;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

.yu-basin-liste {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* ==========================================================================
   2. BASIN KARTI BİLEŞENİ (Her Zaman Tek Sütun)
   ========================================================================== */
.yu-basin-karti {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
    position: relative;
}

.yu-basin-karti:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #dee2e6;
}

/* Görsel Alanı (Masaüstü: Solda Sabit Genişlik) */
.yu-basin-gorsel-wrap {
    width: 260px;
    min-width: 260px;
    height: 195px;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yu-basin-gorsel-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.yu-basin-karti:hover .yu-basin-gorsel-wrap img {
    transform: scale(1.03);
}

/* Sayfa Sayısı Rozeti (Basılı Yayınlar İçin) */
.yu-basin-sayfa-rozet {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

/* YouTube Oynatma Düğmesi Katmanı */
.yu-basin-youtube-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.yu-basin-karti:hover .yu-basin-youtube-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.yu-basin-play-icon {
    width: 48px;
    height: 48px;
    background-color: #ff0000;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
    padding-left: 3px;
    transition: transform 0.2s ease;
}

.yu-basin-karti:hover .yu-basin-play-icon {
    transform: scale(1.1);
}

/* İçerik / Metin Alanı */
.yu-basin-icerik {
    flex: 1;
    padding: 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.yu-basin-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.yu-basin-kaynak {
    font-weight: 700;
    color: #0056b3;
}

.yu-basin-nokta {
    color: #ced4da;
}

.yu-basin-tarih {
    color: #6c757d;
}

.yu-basin-baslik {
    font-size: 1.25rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.yu-basin-karti:hover .yu-basin-baslik {
    color: #0056b3;
}

.yu-basin-aciklama {
    font-size: 0.93rem;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yu-basin-aksiyon {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0056b3;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
}

.yu-basin-karti:hover .yu-basin-aksiyon {
    text-decoration: underline;
}

/* ==========================================================================
   3. GÖRSELSİZ KART TASARIMI (Yalnızca Tipografik, Boş Görsel Yok)
   ========================================================================== */
.yu-basin-karti-gorselsiz .yu-basin-icerik {
    padding: 1.8rem 2rem;
}

.yu-basin-karti-gorselsiz .yu-basin-baslik {
    font-size: 1.4rem;
}

/* ==========================================================================
   4. MODAL GALERİ (Basılı Yayın Çok Sayfalı İnceleyici)
   ========================================================================== */
.yu-galeri-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.92);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.yu-galeri-modal-backdrop.aktif {
    display: flex;
    opacity: 1;
}

.yu-galeri-modal-diyalog {
    position: relative;
    width: 94vw;
    max-width: 1100px;
    height: 92vh;
    display: flex;
    flex-direction: column;
    background: transparent;
    outline: none;
}

/* Modal Üst Başlık Çubuğu */
.yu-galeri-ust-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: rgba(25, 25, 25, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 8px 8px 0 0;
    color: #fff;
    z-index: 10;
}

.yu-galeri-ust-bilgi {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 1rem;
}

.yu-galeri-ust-baslik {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.yu-galeri-ust-altbilgi {
    font-size: 0.8rem;
    color: #adb5bd;
    margin: 0;
}

.yu-galeri-ust-araclar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.yu-galeri-sayac {
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-right: 0.5rem;
}

.yu-galeri-btn {
    background: transparent;
    border: none;
    color: #f8f9fa;
    font-size: 1.15rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

.yu-galeri-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Modal Ana Sahne / Görsel Alanı */
.yu-galeri-sahne {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.6);
    user-select: none;
    touch-action: pan-y pinch-zoom;
}

.yu-galeri-sahne img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease, opacity 0.2s ease;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Yakınlaştırma (Zoom) Durumu */
.yu-galeri-sahne.zoom-aktif {
    overflow: auto;
    cursor: zoom-out;
}

.yu-galeri-sahne.zoom-aktif img {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    min-width: 120%;
    transform: none;
    cursor: grab;
}

/* Gezinme Okları */
.yu-galeri-ok {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(30, 30, 30, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

.yu-galeri-ok:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.yu-galeri-ok-onceki {
    left: 15px;
}

.yu-galeri-ok-sonraki {
    right: 15px;
}

.yu-galeri-ok.gizli {
    display: none !important;
}

/* ==========================================================================
   5. MOBİL VE RESPONSIVE DAVRANIŞLAR
   ========================================================================== */
@media (max-width: 767.98px) {
    .yu-basin-ana-baslik {
        font-size: 1.75rem;
    }

    .yu-basin-alt-baslik {
        font-size: 0.95rem;
    }

    /* Mobilde görsel üstte, metin altta (Kart yine tek sütun) */
    .yu-basin-karti {
        flex-direction: column;
    }

    .yu-basin-gorsel-wrap {
        width: 100%;
        min-width: 100%;
        height: 210px;
    }

    .yu-basin-icerik {
        padding: 1.2rem;
    }

    .yu-basin-baslik {
        font-size: 1.15rem;
    }

    .yu-galeri-modal-diyalog {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
    }

    .yu-galeri-ust-bar {
        border-radius: 0;
    }

    .yu-galeri-ok {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .yu-galeri-ok-onceki {
        left: 8px;
    }

    .yu-galeri-ok-sonraki {
        right: 8px;
    }
}
