/*
Theme Name: Netflix Clone
Author: Vathana
Description: A dark-mode, streaming-focused custom theme.
Version: 1.0
*/

body {
    background-color: #141414; /* Netflix dark background */
    color: #e5e5e5;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    padding: 20px 4%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 10%, rgba(0,0,0,0));
    position: fixed;
    width: 100%;
    z-index: 100;
}

.brand-logo {
    color: #e50914; /* Netflix Red */
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.movie-container {
    padding: 100px 4% 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.movie-card img {
    width: 100%;
    aspect-ratio: 2 / 3; /* Forces standard vertical movie poster dimensions */
    object-fit: cover; /* Crops the image proportionally instead of stretching it */
    border-radius: 4px;
    display: block;
}

.movie-card:hover {
    transform: scale(1.05); /* The signature pop-out effect */
}

.movie-card img {
    width: 100%;
    border-radius: 4px;
}

/* Horizontal Slider Styles */
.genre-row {
    margin-bottom: 40px;
    padding-left: 4%;
}

.genre-title {
    color: #e5e5e5;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.slider-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 20px; /* Space for hover effect */
    scroll-behavior: smooth;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.slider-container::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.slider-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Update movie card for slider */
.slider-container .movie-card {
    flex: 0 0 200px; /* Fixed width, won't shrink */
    transition: transform 0.3s ease;
}

.slider-container .movie-card:hover {
    transform: scale(1.1);
    z-index: 2;
}