/* MUHAMMEDFLIX TEMA - MODERN & DARK */
body {
    background-color: #141414;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* HEADER & LOGO */
header {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 20px 4%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

/* HERO BANNER (DEVASA AFİŞ) */
.hero-section {
    height: 85vh; /* Ekranın %85'ini kaplasın */
    position: relative;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #141414 0%, transparent 50%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 4%;
    max-width: 600px;
    margin-top: 60px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    line-height: 1.1;
}

.hero-desc {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 25px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-play, .btn-info {
    border: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-play {
    background-color: #fff;
    color: #000;
}

.btn-play:hover {
    background-color: #e6e6e6;
    transform: scale(1.05);
}

.btn-info {
    background-color: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.btn-info:hover {
    background-color: rgba(109, 109, 110, 0.4);
    transform: scale(1.05);
}

/* GRID YAPISI */
.izgara-yapisi {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    padding: 0 4% 40px 4%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.logo {
    color: #e50914;
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
    font-family: 'Impact', sans-serif;
    cursor: pointer;
    transition: 0.3s;
    flex: 1;
}

.logo:hover {
    text-shadow: 0 0 30px rgba(229, 9, 20, 1);
    transform: scale(1.05);
}

/* ARAMA ÇUBUĞU STİLLERİ */
.arama-kutusu {
    position: relative;
}

#arama-input {
    background-color: rgba(0,0,0,0.7);
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    width: 250px;
    font-family: 'Poppins', sans-serif;
    transition: 0.3s;
}

#arama-input:focus {
    background-color: #000;
    outline: none;
    border-color: #e50914;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

#arama-input::placeholder {
    color: #aaa;
}

/* HERO BANNER (DEVASA AFİŞ) */
.hero-section {
    position: relative;
    height: 80vh; /* Ekranın %80'ini kaplasın */
    width: 100%;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
    margin-bottom: -50px; /* Vitrinle biraz iç içe geçsin */
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(20,20,20,0) 0%, rgba(20,20,20,0.6) 60%, #141414 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-left: 4%;
    max-width: 600px;
    margin-top: 100px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-desc {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 25px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-play, .btn-info {
    border: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
}

.btn-play {
    background-color: #fff;
    color: #000;
}

.btn-play:hover {
    background-color: rgba(255, 255, 255, 0.75);
}

.btn-info {
    background-color: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.btn-info:hover {
    background-color: rgba(109, 109, 110, 0.4);
}

/* GRID YAPISI */
.izgara-yapisi {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    padding: 40px 4%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

/* FİLM KARTI - GELİŞMİŞ HOVER */
.film-karti {
    background-color: #1f1f1f;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.film-karti:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0,0,0,0.8);
    border: 2px solid #e50914;
}

.film-karti img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    display: block;
}

/* KART BİLGİLERİ - HOVER'DA KAYARAK GELİR */
.film-bilgi {
    padding: 15px;
    background: #181818;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-sizing: border-box;
}

.film-karti:hover .film-bilgi {
    transform: translateY(0);
}

.film-bilgi h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
}

.film-bilgi p {
    font-size: 12px;
    color: #aaa;
    margin: 0;
}

/* PUAN ROZETİ */
.puan {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.7);
    color: #46d369;
    border: 1px solid #46d369;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 12px;
    z-index: 2;
    transition: 0.3s;
}

/* MODAL STİLLERİ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
}

.modal-icerik {
    background-color: #181818;
    margin: 5vh auto;
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(229, 9, 20, 0.3);
    position: relative;
    animation: modalAcil 0.5s ease;
    overflow: hidden;
}

@keyframes modalAcil {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.kapat-btn {
    color: #fff;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: 0.3s;
}

.kapat-btn:hover {
    background: #e50914;
    transform: rotate(90deg);
}

.modal-detay {
    display: flex;
    flex-wrap: wrap;
}

#modal-resim {
    width: 350px;
    height: 100%;
    object-fit: cover;
}

.modal-yazi {
    flex: 1;
    padding: 30px;
    color: #fff;
}

.modal-yazi h2 {
    font-size: 2.5rem;
    margin-top: 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.tarih {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 10px;
}

.puan-rozet {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}

.modal-yazi h3 {
    color: #e50914;
    margin-top: 20px;
    font-size: 1.2rem;
}

#video-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .logo { font-size: 2rem; }
    .modal-detay { flex-direction: column; }
    #modal-resim { width: 100%; height: 300px; }
    .modal-yazi { padding: 20px; }
    .modal-yazi h2 { font-size: 1.8rem; }
}

footer {
    text-align: center;
    padding: 40px;
    color: #555;
    font-size: 0.9rem;
    border-top: 1px solid #222;
    margin-top: 50px;
}

.modal-yazi h2 {
    margin-top: 0;
    color: #e50914;
}

.tarih {
    color: #aaa;
    font-size: 14px;
}

.puan-rozet {
    display: inline-block;
    background-color: #f39c12;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 15px;
}

.modal-yazi h3 {
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .modal-detay {
        flex-direction: column;
    }
    #modal-resim {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* ALT BİLGİ */
footer {
    text-align: center;
    padding: 20px;
    color: #777;
    margin-top: 50px;
}

/* GÖREV 4: YUKARI ÇIK BUTONU (KONUMU YUKARI ALINDI) */
.yukari-cik {
    position: fixed;
    bottom: 100px; /* Biraz daha yukarı alındı */
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #e50914;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1500;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.6);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.yukari-cik:hover {
    background-color: #b20710;
    transform: translateY(-5px);
    opacity: 1;
}

/* DAHA FAZLA FİLM YÜKLE BUTONU STİLİ */
.daha-fazla-container {
    text-align: center;
    margin: 50px 0;
    padding: 20px 0;
}

#daha-fazla-btn {
    background-color: #e50914; /* Netflix kırmızısı */
    color: white;
    border: 2px solid #e50914;
    padding: 15px 45px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    display: inline-block;
    letter-spacing: 1px;
}

#daha-fazla-btn:hover {
    background-color: #b20710;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
}

/* GÖREV 6: BÜTÇE STİLİ */
.butce-bilgi {
    color: #f39c12;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 5px;
}