/* איפוס בסיסי */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {

    height: 100%;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    background: url('https://res.cloudinary.com/ddja5g5wa/image/upload/v1765882413/bgam_d0gaka.png') no-repeat center center fixed;

    background-size: cover;

    color: #000;

    overflow-x: hidden;

}



body {

    padding-top: 80px;

    background-color: #f0f2f5;

}


nav {
    background: #1e293b;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: white;
}

    nav > a {
        color: white;
        font-weight: bold;
        font-size: 1.8rem;
        text-decoration: none;
    }

    nav div {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
        margin-top: 0;
    }

    nav a {
        color: #cbd5e1;
        text-decoration: none;
        font-size: 1.5rem;
    }

        nav a:hover {
            color: #3b82f6;
        }

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: black;
}

.mood-box {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    text-align: center;
}

    .mood-box h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

.input-box {
    width: 100%;
    max-width: 600px;
    padding: 15px 20px;
    font-size: 1.2rem;
    border: 2px solid #2563eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: #333;
}

    .input-box:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.7);
        background: #f9fafb;
    }

.btn-primary {
    margin-top: 20px;
    width: 100%;
    max-width: 600px;
    padding: 16px;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

    .btn-primary:hover {
        background: linear-gradient(90deg, #2563eb, #1d4ed8);
        transform: translateY(-3px);
    }

.recommendations-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.movie-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

    .movie-card:hover {
        transform: scale(1.05);
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    }

    .movie-card img {
        width: 100%;
        height: 400px;
        object-fit: cover;
        border-bottom: 1px solid #ddd;
    }

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e293b;
}

.card-text {
    font-size: 1rem;
    color: #475569;
    margin-bottom: 15px;
    flex-grow: 1;
}

iframe {
    width: 100%;
    height: 230px;
    border: none;
    border-radius: 0 0 15px 15px;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1e293b;
    color: white;
    padding: 10px 0;
}


/* רספונסיביות */

@media (min-width: 601px) and (max-width: 1024px) {
    nav {
        flex-wrap: nowrap;
        padding: 1rem 1.5rem;
    }

    nav div {
        gap: 8px;
    }
    
    body {
        padding-top: 80px;
    }

    .mood-box {
        padding: 30px;
    }
    
    .mood-box h1 {
        font-size: 1.75rem;
    }
    
    .input-box, .btn-primary {
        max-width: 500px; 
    }

    .recommendations-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .movie-card img {
        height: 350px;
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        padding: 0.5rem 1rem;
        align-items: flex-start;
    }
    
    nav > a {
        margin-bottom: 0.5rem;
    }

    nav div {
        width: 100%;
        justify-content: space-between;
        gap: 0;
        margin-top: 0;
    }

    nav a {
        font-size: 1rem;
        padding: 0.5rem 0.5rem;
    }

    body {
        padding-top: 95px; 
    }

    .mood-box {
        padding: 20px;
    }

    .mood-box h1 {
        font-size: 1.5rem;
    }

    .input-box {
        padding: 10px 15px;
        font-size: 1rem;
    }

    .btn-primary {
        padding: 12px;
        font-size: 1.1rem;
    }

    .recommendations-row {
        grid-template-columns: 1fr;
    }

    .movie-card img {
        height: 250px;
    }
    
    footer {
        font-size: 12px;
        padding: 8px 0;
    }
}