/* --- GENEL AYARLAR --- */
body {
    font-family: 'Poppins', sans-serif; 
    margin: 0;
    padding: 0;
    background-color: #121212; 
    color: #E0E0E0; 
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HEADER (ÜST MENÜ) --- */
header {
    background-color: #000000;
    color: white;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
}

header h1 a {
    text-decoration: none;
    color: #E50914; 
    font-size: 26px;
    font-weight: 900;
}

.ana-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.ana-menu ul li a {
    color: #AAAAAA;
    text-decoration: none;
    padding: 0 15px;
    font-weight: 500;
    transition: 0.3s;
}

.ana-menu ul li a:hover {
    color: #E50914;
}

/* --- SAĞ ALAN: ARAMA & KULLANICI --- */
.header-sag-alan {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
}

.search-box input[type="text"] {
    background-color: #222;
    border: 1px solid #333;
    padding: 8px 12px;
    color: white;
    border-radius: 4px 0 0 4px;
    width: 150px;
    transition: 0.4s;
}

.search-box button {
    background-color: #333;
    border: none;
    color: white;
    padding: 0 12px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* --- DROPDOWN (PROFİL MENÜSÜ) --- */
.kullanici-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    color: #E0E0E0;
    text-decoration: none;
    font-weight: 600;
    padding: 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #1a1a1a;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.8);
    z-index: 2000;
    border-radius: 8px;
    border: 1px solid #333;
    padding: 10px 0;
}

.dropdown-content a {
    color: #E0E0E0 !important;
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: 0.2s;
}

.dropdown-content a:hover {
    background-color: #333;
    color: #E50914 !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.cizgi {
    height: 1px;
    background-color: #333;
    margin: 5px 10px;
}

/* Giriş/Üyelik Butonları */
.giris-btn, .uyeol-btn {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.giris-btn { color: #E0E0E0; border: 1px solid #E0E0E0; margin-right: 10px; }
.uyeol-btn { background-color: #E50914; color: white; }

/* --- ANA YERLEŞİM (KATEGORİLER SAĞDA) --- */
.icerik-alani {
    display: flex;
    gap: 30px;
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
    align-items: flex-start;
}

.sol-taraf {
    flex: 3; /* İçerik alanı geniş */
}

.yan-menu.kategoriler {
    flex: 1; /* Sidebar dar alan */
    min-width: 250px;
    background: #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    position: sticky;
    top: 100px;
    border-left: 4px solid #E50914; /* Kırmızı Vurgu */
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.yan-menu h3 {
    color: #fff;
    margin-top: 0;
    border-bottom: 2px solid #E50914;
    padding-bottom: 10px;
}

.yan-menu ul {
    list-style: none;
    padding: 0;
}

.yan-menu ul li a {
    display: block;
    color: #bbb;
    text-decoration: none;
    padding: 10px 15px;
    transition: 0.3s;
    border-radius: 6px;
}

.yan-menu ul li a:hover {
    background-color: #333;
    color: #E50914;
    padding-left: 20px;
}

/* --- FİLM KARTLARI --- */
.one-cikanlar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.film-karti {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid #222;
    transition: 0.4s;
}

.film-karti:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.3);
}

.film-karti img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.film-karti h4 { margin: 10px; color: white; text-align: center; }
.film-karti p { text-align: center; font-size: 14px; color: #888; margin-bottom: 15px; }

.izle-btn {
    display: block;
    background-color: #E50914;
    color: white;
    padding: 12px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
}
/* --- KULLANICI DROPDOWN STİLLERİ --- */
.kullanici-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    color: #E0E0E0 !important;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    display: block;
    transition: 0.3s;
}

.dropbtn:hover {
    color: #E50914 !important;
}

/* Seçenekler kutusu - Başlangıçta Gizli */
.dropdown-content {
    display: none; /* Menüyü gizler */
    position: absolute;
    right: 0;
    background-color: #1a1a1a;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.8);
    z-index: 2000;
    border-radius: 8px;
    border: 1px solid #333;
    padding: 8px 0;
}

/* Üzerine gelince göster */
.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #E0E0E0 !important; /* Mavi linkleri öldürür */
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: 0.2s;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #333;
    color: #E50914 !important;
}

.cizgi {
    height: 1px;
    background-color: #333;
    margin: 5px 10px;
}
/* --- PATRONUN ASIL SEVDİĞİ O ESKİ KALP TASARIMI --- */
.film-karti {
    position: relative; /* Kalbin posterin üstüne binmesi için ŞART */
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.fav-btn {
    position: absolute;
    top: 10px;      /* Sağ üstten orijinal boşluk */
    right: 10px;    /* Sağ üstten orijinal boşluk */
    background: rgba(0, 0, 0, 0.5); /* Hafif şeffaf siyah zemin */
    border: 1px solid #ffffff;     /* O ince beyaz çerçeve */
    border-radius: 4px;            /* Hafif oval köşeler */
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: 0.2s all ease-in-out;
}

.fav-btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff; /* Orijinal bembeyaz kalp */
}

/* Üzerine gelince veya tıklandığında (Active) */
.fav-btn:hover, .fav-btn.active {
    background-color: #E50914; /* Netflix Kırmızısı */
    border-color: #E50914;
    transform: scale(1.1);
}

.fav-btn.active svg {
    fill: #ffffff !important;
}
.yan-menu.kategoriler {
    flex: 1;
    min-width: 250px;
    background: #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #E50914; /* Kırmızı vurgu hattı */
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    
    /* BURASI ÖNEMLİ: Sayfa aşağı kaydıkça takip eder */
    position: -webkit-sticky;
    position: sticky;
    top: 100px; /* Header'ın altında çakılı kalır */
    height: fit-content;
}

.yan-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yan-menu ul li a {
    display: block;
    color: #bbb;
    text-decoration: none;
    padding: 12px 15px;
    transition: 0.3s;
    border-bottom: 1px solid #222; /* Daha net bir liste görünümü */
}

.yan-menu ul li a:hover {
    background-color: #333;
    color: #E50914;
    padding-left: 20px;
}