/* /assets/css/style.css */
:root {
    --primary: #E50914; /* Netflix Red */
    --dark-bg: #141414;
    --light-bg: #ffffff;
    --text-dark: #333333;
    --text-light: #f5f5f5;
    --nav-dark: #000000;
    --nav-light: #f8f9fa;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--text-dark);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--light-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
}

/* Desktop Menu */
.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--primary); }

.btn-login {
    background-color: var(--primary);
    color: white !important;
    padding: 8px 15px;
    border-radius: 4px;
}

/* Mobile Hamburger Icon (Hidden on Desktop) */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-dark);
}

/* --- Responsive Mobile Menu --- */
@media screen and (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-links {
        display: none; /* Hidden by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Below navbar */
        left: 0;
        background-color: var(--light-bg);
        box-shadow: 0 4px 4px rgba(0,0,0,0.1);
        padding: 20px 0;
    }

    .nav-links.active { display: flex; } /* JavaScript toggles this */

    .nav-links a {
        margin: 10px 0;
        font-size: 18px;
    }
}

/* --- Hero Section with Faded Overlay --- */
.hero {
    height: 80vh;
    /* Gradient overlay + Image */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.4)), url('../images/system/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h1 { font-size: 3rem; margin-bottom: 10px; }
.hero p { font-size: 1.2rem; margin-bottom: 20px; }

.btn-cta {
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: inline-block;
}

/* --- Latest Content Grid --- */
.latest-section {
    padding: 50px 5%;
    background-color: #f9f9f9;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.content-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.content-card:hover { transform: translateY(-5px); }

.card-image {
    width: 100%;
    height: 350px; /* Standard poster height */
    background-color: #ddd;
    object-fit: cover;
}

.card-info { padding: 15px; }
.card-title { font-weight: bold; margin-bottom: 5px; font-size: 1.1rem; }
.card-meta { color: #666; font-size: 0.9rem; }
.tag {
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* --- Admin Login --- */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f2f5;
}
.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}
.form-group { margin-bottom: 15px; text-align: left; }
.form-control { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }