/* ===========================
   Google Font
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===========================
   Reset
=========================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#0F172A;
    color:#fff;
    line-height:1.6;
}

/* ===========================
   Navbar
=========================== */

.navbar{
    position:sticky;
    top:0;
    z-index:1000;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
    background:rgba(15,23,42,.95);
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(255,255,255,.08);
}

.logo{
    font-size:1.6rem;
    font-weight:700;
}

.nav-links{
    display:flex;
    list-style:none;
    gap:30px;
}

.nav-links a{
    color:white;
    text-decoration:none;
    transition:.3s;
}

.nav-links a:hover{
    color:#38BDF8;
}

.profile img{
    width:45px;
    height:45px;
    border-radius:50%;
    border:2px solid #F59E0B;
}

/* ===========================
   Hero
=========================== */

.hero{
    min-height:90vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:40px;
    background:
        linear-gradient(rgba(15,23,42,.8),
        rgba(15,23,42,.9)),
        url("https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?auto=format&fit=crop&w=1600&q=80");
    background-size:cover;
    background-position:center;
}

.hero-content{
    max-width:700px;
}

.hero h1{
    font-size:3.4rem;
    margin-bottom:20px;
}

.hero p{
    font-size:1.1rem;
    color:#cbd5e1;
    margin-bottom:35px;
}

.hero-btn{
    display:inline-block;
    padding:15px 35px;
    background:#F59E0B;
    color:#fff;
    text-decoration:none;
    border-radius:40px;
    font-weight:600;
    transition:.3s;
}

.hero-btn:hover{
    background:#d97706;
    transform:translateY(-3px);
}

/* ===========================
   Form
=========================== */

.preferences{
    padding:80px 8%;
}

.form-card{
    max-width:850px;
    margin:auto;
    background:rgba(30,41,59,.9);
    padding:35px;
    border-radius:20px;
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
    box-shadow:0 10px 30px rgba(0,0,0,.4);
}

.form-card h2{
    text-align:center;
    margin-bottom:30px;
}

.form-group{
    margin-bottom:25px;
}

.form-group label{
    display:block;
    margin-bottom:10px;
    font-weight:500;
}

select,
input[type=range]{
    width:100%;
    padding:12px;
    border:none;
    border-radius:10px;
    background:#334155;
    color:white;
}

.radio-group,
.checkbox-group{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
}

.radio-group label,
.checkbox-group label{
    display:flex;
    align-items:center;
    gap:8px;
    background:#334155;
    padding:10px 15px;
    border-radius:10px;
    cursor:pointer;
}

.find-btn{
    width:100%;
    padding:16px;
    border:none;
    border-radius:12px;
    background:#F59E0B;
    color:white;
    font-size:1rem;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.find-btn:hover{
    background:#d97706;
    transform:translateY(-2px);
}

/* ===========================
   Loading
=========================== */

.loading{
    text-align:center;
    padding:60px;
}

.hidden{
    display:none;
}

.spinner{
    width:60px;
    height:60px;
    margin:auto;
    border:6px solid rgba(255,255,255,.2);
    border-top:6px solid #F59E0B;
    border-radius:50%;
    animation:spin 1s linear infinite;
    margin-bottom:20px;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

/* ===========================
   Results
=========================== */

.results{
    padding:80px 8%;
}

.results h2{
    margin-bottom:40px;
    text-align:center;
}

.movie-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
}

.movie-card{
    background:#1E293B;
    border-radius:18px;
    overflow:hidden;
    transition:.35s;
    box-shadow:0 12px 30px rgba(0,0,0,.3);
}

.movie-card:hover{
    transform:translateY(-10px);
    box-shadow:0 15px 35px rgba(56,189,248,.25);
}

.movie-card img{
    width:100%;
    height:380px;
    object-fit:cover;
}

.movie-info{
    padding:20px;
}

.movie-info h3{
    margin-bottom:12px;
}

.badges{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:15px;
}

.badges span{
    background:#334155;
    padding:5px 12px;
    border-radius:20px;
    font-size:.8rem;
}

.movie-info p{
    color:#cbd5e1;
    margin-bottom:20px;
    min-height:80px;
}

.buttons{
    display:flex;
    gap:10px;
}

.details,
.save{
    flex:1;
    border:none;
    border-radius:10px;
    padding:12px;
    cursor:pointer;
    transition:.3s;
}

.details{
    background:#38BDF8;
    color:#fff;
}

.details:hover{
    background:#0ea5e9;
}

.save{
    background:#F59E0B;
    color:#fff;
}

.save:hover{
    background:#d97706;
}

/* ===========================
   Empty State
=========================== */

.empty-state{
    text-align:center;
    padding:60px;
    color:#cbd5e1;
}

.empty-state h2{
    font-size:4rem;
}

/* ===========================
   Footer
=========================== */

footer{
    margin-top:80px;
    padding:40px 8%;
    background:#111827;
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:30px;
}

footer h3{
    margin-bottom:10px;
}

footer p{
    color:#94A3B8;
}

footer a{
    display:block;
    color:#94A3B8;
    text-decoration:none;
    margin-bottom:8px;
}

footer a:hover{
    color:#38BDF8;
}

/* ===========================
   Responsive
=========================== */

@media(max-width:992px){

    .hero h1{
        font-size:2.6rem;
    }

    .navbar{
        flex-direction:column;
        gap:20px;
    }

}

@media(max-width:768px){

    .nav-links{
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero{
        min-height:70vh;
    }

    .hero h1{
        font-size:2rem;
    }

    .hero p{
        font-size:1rem;
    }

    .buttons{
        flex-direction:column;
    }

}

@media(max-width:480px){

    .form-card{
        padding:25px;
    }

    .radio-group,
    .checkbox-group{
        flex-direction:column;
    }

    .hero-btn,
    .find-btn{
        width:100%;
    }

}