/* Genel Stil ve Dark Theme */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    color: #ffffff;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

h2 {
    color: #f5c518; /* IMDb Gold */
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-top: 40px;
}

/* Arama Kutusu ve Buton */
.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

#searchInput {
    width: 400px;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #333;
    border-radius: 25px;
    background-color: #222;
    color: #e0e0e0;
    padding-left: 20px;
}

#searchInput:focus {
    outline: none;
    border-color: #f5c518;
}

#searchButton {
    padding: 12px 25px;
    font-size: 16px;
    background-color: #f5c518;
    color: #121212;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#searchButton:hover {
    background-color: #e0b410;
}

/* Kategori Navigasyonu */
#categoryNav {
    margin-bottom: 40px;
}

#categoryList {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

#categoryList li {
    background-color: #222;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
}

#categoryList li:hover, #categoryList li.active {
    background-color: #f5c518;
    color: #121212;
}

/* İçerik Alanı Başlığı */
#contentTitle {
    color: #fff;
}

/* Film Gridleri */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.movie-card {
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.7);
}

.movie-card img {
    width: 100%;
    height: 270px; /* Sabit yükseklik */
    object-fit: cover; /* Resmin oranını koruyarak doldur */
}

.no-poster {
    width: 100%;
    height: 270px;
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
}
.no-poster::after {
    content: 'Afiş Yok';
}


.movie-info {
    padding: 15px;
    text-align: left;
    flex-grow: 1; /* Kartın kalan boşluğunu doldurur */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.movie-info h3 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #fff;
}

.movie-info p {
    margin: 0;
    font-size: 0.9em;
    color: #f5c518;
    font-weight: bold;
}

/* Bölüm Başlıkları ve Gizli Bölümler */
.movie-section {
    margin-bottom: 50px;
}

#searchResults {
    display: none; /* Başlangıçta gizli */
}

.info-message {
    color: #888;
    font-size: 1.2rem;
    text-align: center;
    grid-column: 1 / -1; /* Grid'in tamamını kapla */
}


/* Modal (Popup) Stilleri */
.modal {
    display: none; /* Varsayılan olarak gizli */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex; /* Göstermek için */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(to bottom, #2c2c2c, #1e1e1e);
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    position: relative;
    color: #e0e0e0;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.modal-content h2 {
    color: #f5c518;
    margin-top: 0;
}

.modal-content p {
    line-height: 1.6;
}

.modal-content strong {
    color: #ccc;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-button:hover {
    color: #fff;
}