/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif; /* A modern, clean font */
    background-color: #1a1a1a; /* Dark background */
    color: #e0e0e0; /* Light text color */
    line-height: 1.6;
}

/* Header Styles */
header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1f1f1f, #2c2c2c); /* Subtle gradient */
    border-bottom: 2px solid #333; /* A slight separator */
    margin-bottom: 40px;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
    color: #fff;
}

header p {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Search and Controls */
.controls-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 15px 25px;
    font-size: 1.1rem;
    background-color: #2c2c2c;
    border: 1px solid #3a3a3a;
    border-radius: 50px; /* Pill-shaped input */
    color: #e0e0e0;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: #666;
}

.search-input:focus {
    border-color: #00aaff;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.2);
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.sort-dropdown-container {
    display: flex;
    align-items: center;
    gap: 10px;
    /* border: 3px solid white; */
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

label {
    font-size: 1rem;
    color: #e0e0e0;
}

#sort-dropdown {
    padding: 10px 15px;
    font-size: 1rem;
    background-color: #2c2c2c;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#sort-dropdown:hover {
    border-color: #00aaff;
}

/* Filter Buttons */
.filter-btn {
    padding: 12px 25px;
    font-size: 1rem;
    background-color: #3a3a3a;
    color: #fff;
    border: none;
    border-radius: 50px; /* Pill-shaped buttons */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: #00aaff; /* Vibrant accent on hover */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.2);
}

/* Movie List Styles */
.movie-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.movie-card {
    background-color: #2c2c2c;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Deeper shadow */
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #333;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: #00aaff;
}

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

.movie-info {
    padding: 20px;
    text-align: center;
}

.movie-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 600;
}

.movie-info p {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin: 4px 0;
}

.movie-info p:first-of-type {
    font-weight: bold;
    color: #e0e0e0;
}

/* Footer Styles */
footer {
    background-color: #1f1f1f;
    color: #b0b0b0;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    border-top: 1px solid #333;
}

.social-links {
    margin-top: 15px;
    font-size: 0; /* to remove space between inline-block elements */
}

.social-icon {
    display: inline-block;
    color: #b0b0b0;
    text-decoration: none;
    margin: 0 12px;
    font-size: 1.5rem; /* Larger icons */
    transition: color 0.3s;
}

.social-icon:hover {
    color: #00aaff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .controls-container {
        flex-direction: column;
    }

    .filter-controls {
        flex-direction: column;
        align-items: center;
    }

    .search-input {
        max-width: 100%;
    }

    .movie-list {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}