/* ==========================================================================
   SANATMETRE KULLANICI ARAYÜZÜ STİL DOSYASI (arayuz_stil.css)
   ========================================================================== */

:root { 
    --bg: #0f172a; 
    --nav-bg: #020617; 
    --card-bg: #1e293b; 
    --text: #f8fafc; 
    --text-muted: #94a3b8; 
    --accent: #38bdf8; 
    --zet: #10b981; 
    --danger: #ef4444; 
}

* {
    box-sizing: border-box; /* Padding ve border değerlerinin dışarı taşmasını engeller */
}

body { 
    font-family: 'Segoe UI', sans-serif; 
    background: var(--bg); 
    color: var(--text); 
    margin: 0; 
    line-height: 1.6; 
}

a { 
    text-decoration: none; 
    color: inherit; 
}

header { 
    text-align: center; 
    padding: 3rem 1rem; 
    background: linear-gradient(180deg, #020617 0%, var(--bg) 100%); 
    border-bottom: 1px solid #334155; 
}

header h1 { 
    font-size: 3rem; 
    margin: 0; 
    color: var(--accent); 
    letter-spacing: -1px; 
}

header h1 span { 
    color: var(--text); 
}

header p { 
    font-size: 1.1rem; 
    color: var(--text-muted); 
    margin-top: 0.5rem; 
    font-style: italic; 
}

/* --- NAVİGASYON --- */
nav { 
    background: var(--nav-bg); 
    padding: 1rem 2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid #334155; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    flex-wrap: wrap; 
}

.logo { 
    font-size: 1.5rem; 
    font-weight: bold; 
    color: var(--accent); 
}

.logo span { 
    color: var(--text); 
}

.menu { 
    display: flex; 
    gap: 1.5rem; 
    flex-wrap: wrap; 
    align-items: center; 
    margin-top: 0; 
}

.menu a { 
    color: var(--text-muted); 
    font-weight: 500; 
    transition: color 0.2s; 
    font-size: 0.95rem; 
}

.menu a:hover, .menu a.aktif { 
    color: var(--accent); 
}

/* --- DROPDOWN (MODUNA GÖRE) --- */
.dropdown { 
    position: relative; 
    display: inline-block; 
}

.dropdown-content { 
    display: none; 
    position: absolute; 
    background-color: var(--card-bg); 
    min-width: 200px; 
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5); 
    border: 1px solid #334155; 
    border-radius: 8px; 
    z-index: 1; 
    top: 100%; 
    left: 0; 
    padding: 0.5rem 0; 
}

.dropdown-content a { 
    color: var(--text); 
    padding: 12px 16px; 
    text-decoration: none; 
    display: block; 
    font-size: 0.9rem; 
    border-bottom: 1px solid #0f172a; 
    width: 100%; 
}

.dropdown-content a:last-child { 
    border-bottom: none; 
}

.dropdown-content a:hover { 
    background-color: #334155; 
    color: var(--accent); 
}

.dropdown:hover .dropdown-content { 
    display: block; 
}

.container { 
    max-width: 1200px; 
    margin: 2rem auto; 
    padding: 0 1rem; 
}

/* --- UYARI KUTULARI --- */
.uyari { 
    padding: 1rem; 
    border-radius: 8px; 
    margin-bottom: 2rem; 
    font-weight: bold; 
    text-align: center; 
}

.uyari.basari { 
    background-color: rgba(16, 185, 129, 0.2); 
    border: 1px solid var(--zet); 
    color: var(--zet); 
}

.uyari.hata { 
    background-color: rgba(239, 68, 68, 0.2); 
    border: 1px solid var(--danger); 
    color: #fca5a5; 
}

/* --- FİLTRELEME PANELİ --- */
.filtre-kutusu { 
    background: var(--card-bg); 
    padding: 1.5rem; 
    border-radius: 8px; 
    margin-bottom: 3rem; 
    display: flex; 
    gap: 1rem; 
    align-items: flex-end; 
    border: 1px solid #334155; 
    flex-wrap: wrap; 
}

.form-grup { 
    flex: 1; 
    min-width: 250px; 
}

.form-grup label { 
    display: block; 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    margin-bottom: 0.5rem; 
    font-weight: bold; 
    text-transform: uppercase; 
}

.form-grup select, .form-grup input, .form-grup textarea { 
    width: 100%; 
    padding: 0.8rem; 
    background: var(--bg); 
    color: var(--text); 
    border: 1px solid #334155; 
    border-radius: 4px; 
    font-size: 1rem; 
}

.btn-ara { 
    padding: 0.8rem 2rem; 
    background: var(--accent); 
    color: #020617; 
    font-weight: bold; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    width: auto; 
}

/* --- KATEGORİ REYONLARI --- */
.kategori-satiri { 
    margin-bottom: 4rem; 
    background: #0b1121; 
    padding: 2rem; 
    border-radius: 12px; 
    border: 1px solid #1e293b; 
    width: 100%;            /* Genişliği %100'e sabitler */
    max-width: 100%;        /* Ekrandan taşmayı engeller */
    box-sizing: border-box; /* Padding değerini içeriğe dahil eder */
    overflow: hidden;       /* İçerideki kaçak taşmaları kesinlikle keser */
}

.kategori-baslik { 
    font-size: 1.8rem; 
    border-left: 4px solid var(--accent); 
    padding-left: 1rem; 
    margin-bottom: 2rem; 
    color: var(--text); 
}

.alt-baslik { 
    font-size: 1.1rem; 
    color: var(--text-muted); 
    margin: 0 0 1rem 0; 
    padding-bottom: 0.5rem; 
    border-bottom: 1px solid #334155; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.grid-3 { 
    display: grid; 
    /* 320px değeri küçük ekranlarda taşma yapmaması için minmax(280px, 1fr) olarak esnetildi */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 1.5rem; 
    margin-bottom: 2rem; 
    width: 100%;
    box-sizing: border-box;
}

/* --- 🌟 TAŞMALARI ENGELLEYEN KART YAPISI --- */
.kart { 
    background: var(--card-bg); 
    border-radius: 8px; 
    overflow: hidden; 
    border: 1px solid #334155; 
    display: flex; 
    flex-direction: column; 
    transition: transform 0.2s; 
    width: 100%;            /* Kartın ızgara hücresine tam oturmasını sağlar */
    max-width: 100%;        /* Hücreden taşmasını engeller */
    box-sizing: border-box;
}

.kart:hover { 
    transform: translateY(-3px); 
    border-color: var(--accent); 
}

.kart-link { 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
    cursor: pointer; 
    width: 100%;
    overflow: hidden;
}

.kart img { 
    width: 100%; 
    height: 350px; 
    object-fit: cover; 
    border-bottom: 1px solid #334155; 
}

.kart-icerik { 
    padding: 1.5rem; 
    flex-grow: 1; 
    width: 100%;
    overflow: hidden;
}

.kart-tur { 
    font-size: 0.75rem; 
    background: #334155; 
    padding: 0.2rem 0.6rem; 
    border-radius: 99px; 
    margin-bottom: 0.5rem; 
    display: inline-block; 
    font-weight: bold; 
}

/* 🎯 Uzun İsimlerin Kartı Bozmasını Engelleme (Maks 2 Satır ve Üç Nokta) */
.kart h3 { 
    margin: 0 0 0.5rem 0; 
    font-size: 1.25rem; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    word-break: break-word;
}

/* 🎯 Kısa Spot Yazılarının Taşmasını Engelleme (Maks 3 Satır) */
.kart p { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    margin-bottom: 1rem; 
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.kart-puanlar { 
    display: flex; 
    justify-content: space-between; 
    font-weight: bold; 
    background: var(--bg); 
    padding: 0.75rem; 
    border-radius: 6px; 
}

.p-zet { color: var(--zet); } 
.p-duygu { color: var(--accent); }

.kart-etkilesim { 
    display: flex; 
    border-top: 1px solid #334155; 
}

.btn-etkilesim { 
    flex: 1; 
    padding: 0.8rem; 
    background: transparent; 
    border: none; 
    color: var(--text); 
    cursor: pointer; 
    font-size: 0.9rem; 
    font-weight: bold; 
    transition: all 0.2s; 
}

.btn-etkilesim:hover { background: #334155; }
.btn-etkilesim:first-child { border-right: 1px solid #334155; color: var(--zet); }
.btn-etkilesim:last-child { color: var(--danger); }

.btn-etkilesim.aktif-oy { background: rgba(16, 185, 129, 0.2) !important; color: var(--zet); cursor: default; }
.btn-etkilesim.aktif-oy-red { background: rgba(239, 68, 68, 0.2) !important; color: var(--danger); cursor: default; }

/* --- MODAL DIALOGS --- */
.modal-overlay { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(2, 6, 23, 0.8); 
    z-index: 1000; 
    justify-content: center; 
    align-items: center; 
    padding: 1rem; 
}

.modal-kutu { 
    background: var(--card-bg); 
    padding: 2rem; 
    border-radius: 12px; 
    max-width: 400px; 
    width: 100%; 
    text-align: center; 
    border: 1px solid #334155; 
}

.modal-butonlar { 
    display: flex; 
    gap: 1rem; 
    justify-content: center; 
    margin-top: 2rem; 
    flex-wrap: wrap; 
}

.btn-evet { background: var(--accent); color: #020617; padding: 0.7rem 1.5rem; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; flex: 1; }
.btn-hayir { background: #475569; color: white; padding: 0.7rem 1.5rem; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; flex: 1; }

/* --- METRİK GİRİŞ FORMLARI --- */
.btn-geri { color: var(--accent); display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-weight: bold; }
.degerlendirme-kutusu { max-width: 800px; margin: 0 auto; background: var(--card-bg); padding: 2rem; border-radius: 12px; border: 1px solid #334155; }
.form-satir { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.zet-sonuc-kutusu { background: rgba(16, 185, 129, 0.1); border: 1px solid var(--zet); padding: 1rem; border-radius: 8px; text-align: center; margin-bottom: 1.5rem; }
.zet-sonuc-kutusu h2 { margin: 0; color: var(--zet); font-size: 2.5rem; }
.btn-kaydet { width: 100%; padding: 1rem; background: var(--accent); border: none; border-radius: 6px; color: #000; font-weight: bold; font-size: 1.1rem; cursor: pointer; }
.gizli-alan { display: none !important; }

/* --- DETAY SAYFASI --- */
.detay-grid { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; }
.detay-afis img { width: 100%; border-radius: 8px; border: 1px solid #334155; max-height: 450px; object-fit: cover; }
.medya-alani { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; margin-top: 2rem; }
.fragman { background: #000; height: 300px; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: 1px solid #334155; }
.gorsel-galeri { display: grid; grid-template-rows: 1fr 1fr; gap: 1rem; }
.gorsel-galeri div { background: #334155; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--text-muted); }

/* --- TOPLULUK YORUMLARI --- */
.topluluk-alani { margin-top: 4rem; border-top: 1px solid #334155; padding-top: 2rem; }
.topluluk-baslik { font-size: 1.5rem; color: var(--danger); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.yorum-kart { background: var(--card-bg); border: 1px solid #334155; padding: 1.5rem; border-radius: 8px; margin-bottom: 1rem; word-wrap: break-word; }
.yorum-puanlar { display: flex; gap: 0.8rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.yorum-puan-rozet { background: #0f172a; border: 1px solid #334155; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.75rem; font-weight: bold; }
.yorum-puan-rozet.z-vurgu { border-color: var(--zet); color: var(--zet); background: rgba(16, 185, 129, 0.05); }
.yorum-metni { font-size: 0.95rem; color: #cbd5e1; line-height: 1.6; font-style: italic; }

/* --- RESPONSIVE ENGINE (MOBİL UYUMLULUK) --- */
@media (max-width: 768px) {
    nav { flex-direction: column; padding: 1rem; gap: 1rem; }
    .menu { justify-content: center; gap: 1rem; }
    header h1 { font-size: 2.2rem; }
    header p { font-size: 1rem; }
    .kategori-satiri { padding: 1rem; }
    .kategori-baslik { font-size: 1.5rem; }
    .btn-ara { width: 100%; }
    .detay-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .detay-afis img { max-width: 250px; margin: 0 auto; display: block; }
    .detay-icerik h1 { font-size: 2rem; }
    .medya-alani { grid-template-columns: 1fr; }
    .fragman { height: 200px; }
    .gorsel-galeri { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .gorsel-galeri div { height: 100px; }
    .degerlendirme-kutusu { padding: 1rem; }
    .modal-butonlar { flex-direction: column; }
    .btn-evet, .btn-hayir { width: 100%; }
}
/* --- SEPHART MEDIA TARZI FOOTER STİLLERİ --- */
footer {
    background: #020617; /* Sephart tarzı derin gece siyahı */
    border-top: 1px solid #1e293b; /* İnce ve asil üst çizgi */
    padding: 4rem 2rem 2rem 2rem;
    margin-top: 5rem; /* İçerikten şık bir mesafede durması için */
    color: #cbd5e1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.footer-konteyner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

.footer-blok h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.footer-logo span {
    color: var(--accent, #38bdf8); /* Accent renginiz yoksa gökyüzü mavisi */
}

.footer-blok p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0;
}

.footer-linkler {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-linkler li {
    margin-bottom: 0.8rem;
}

.footer-linkler a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-linkler a:hover {
    color: var(--accent, #38bdf8); /* Üzerine gelince parlayan Sephart esintisi */
}

.footer-alt-bar {
    max-width: 1200px;
    margin: 3rem auto 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(51, 65, 85, 0.4); /* İnce ayraç çizgisi */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-telif {
    font-size: 0.85rem;
    color: #64748b;
}

.footer-kredi {
    font-size: 0.85rem;
    color: #64748b;
}

.footer-kredi a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-kredi a:hover {
    color: #ffffff;
}

/* Mobil Cihazlar İçin Duyarlılık (Responsive) */
@media (max-width: 768px) {
    .footer-konteyner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    footer {
        padding: 3rem 1.5rem 1.5rem 1.5rem;
    }
    .footer-alt-bar {
        flex-direction: column;
        text-align: center;
    }
}