/* Genel Ayarlar */
body {
    background-color: #141414;
    color: white;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Üst Menü (Header) */
header {
    padding: 20px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
}

.logo {
    color: #e50914;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: -1px;
    margin: 0;
}

/* Arama ve Filtreleme Alanı */
.controls {
    display: flex;
    gap: 15px;
}

.controls input, .controls select {
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #333;
    background: rgba(0,0,0,0.75);
    color: white;
    font-size: 14px;
    outline: none;
}

.controls input:focus {
    border-color: #fff;
}

/* Film Satırları (Row) */
.row {
    padding: 20px 4%;
}

.row h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #e5e5e5;
}

.row-posters {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 15px 0;
    scrollbar-width: none; /* Firefox için scroll gizleme */
}

.row-posters::-webkit-scrollbar {
    display: none; /* Chrome/Safari için scroll gizleme */
}

/* Film Kartları */
.movie-card {
    min-width: 250px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.movie-card:hover {
    transform: scale(1.1);
    z-index: 10;
}

.movie-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* MODAL (BİLGİ PENCERESİ) TASARIMI */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Arka planı karartma */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /* Hafif bulanıklık efekti */
}

.modal-content {
    background: #181818;
    width: 90%;
    max-width: 1000px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    animation: modalAnimate 0.3s ease-out;
}

@keyframes modalAnimate {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

/* Modal Üst Kısım (Banner) */
.modal-header {
    height: 250px;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    position: relative;
}

.modal-header h1 {
    font-size: 48px;
    margin: 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 45px;
    cursor: pointer;
    color: white;
    z-index: 100;
    line-height: 1;
}

.close-btn:hover {
    color: #e50914;
}

/* Modal İçerik Konteynırı (Bilgi + Öneriler) */
.modal-container {
    display: flex;
    background: #181818;
    min-height: 400px;
}

/* Sol Taraf: Film Bilgileri */
.modal-body {
    flex: 2;
    padding: 40px;
    border-right: 1px solid #333;
}

#modal-meta {
    font-size: 16px;
    line-height: 2;
    color: #aaa;
}

#modal-meta strong {
    color: #fff;
}

#modal-subject {
    font-size: 18px;
    line-height: 1.6;
    margin-top: 20px;
}

hr {
    border: 0;
    border-top: 1px solid #333;
    margin: 25px 0;
}

/* Sağ Taraf: Önerilen Filmler */
.modal-suggestions {
    flex: 1;
    padding: 30px;
    background: #111;
    overflow-y: auto;
    max-height: 600px;
}

.modal-suggestions h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #e50914;
}

.suggestion-item {
    margin-bottom: 25px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.suggestion-item:hover {
    opacity: 0.6;
}

.suggestion-item img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #222;
}

.suggestion-item p {
    font-size: 13px;
    margin: 8px 0;
    text-align: center;
    color: #ccc;
}

/* Mobil Uyumluluk */
@media (max-width: 850px) {
    .modal-container {
        flex-direction: column;
    }
    .modal-body {
        border-right: none;
        border-bottom: 1px solid #333;
    }
    .modal-header h1 {
        font-size: 32px;
    }
    header {
        flex-direction: column;
        gap: 15px;
    }
}