:root {
    --bg-main: #1a1c2c;
    --bg-gradient: linear-gradient(135deg, #1a1c2c 0%, #4a192c 100%);
    --bg-card: rgba(20, 20, 23, 0.72);
    --accent: #ff4444;
    --accent-hover: #ff5f5f;
    --text-primary: #ffffff;
    --text-secondary: #c6c9d8;
    --border: rgba(255,255,255,0.12);
    --input-bg: rgba(0,0,0,0.55);
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- LINKS --- */
a {
    color: var(--text-primary);
    text-decoration: none;
    transition: 0.2s;
}
a:hover {
    color: var(--text-secondary);
}

/* --- NAVBAR (For pages outside Live TV) --- */
.navbar {
    background-color: transparent; /* Transparent background */
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute; /* Overlays on top of hero images */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.nav-brand img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

/* --- BUTTONS --- */
.btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
}
.btn-secondary:hover {
    background-color: rgba(255,255,255,0.2);
}

/* --- AUTH PAGES (Login / Register) --- */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(rgba(26,28,44,0.78), rgba(74,25,44,0.78)), url('../img/background.jpg'); /* Optional bg image */
    background-size: cover;
    background-position: center;
}

.auth-card {
    background-color: rgba(0, 0, 0, 0.75); /* Semi-transparent black */
    padding: 60px 68px 40px;
    border-radius: 4px;
    width: 100%;
    max-width: 450px;
    min-height: 500px;
    border: 1px solid var(--border);
}

.auth-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 28px;
}

/* --- FORMS --- */
.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-control {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: white;
    height: 50px;
    line-height: 50px;
    padding: 16px 20px 0; /* Space for floating label if used */
    font-size: 1rem;
}

.form-control::placeholder {
    color: #8c8c8c;
}

.form-control:focus {
    background: rgba(0,0,0,0.7);
    border-color: var(--accent);
    outline: none;
}

.submit-btn {
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    font-size: 1rem;
    border-radius: 4px;
    background: var(--accent);
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.auth-footer {
    margin-top: 16px;
    color: #a6a6a6;
    font-size: 1rem;
}
.auth-footer a {
    color: white;
}
.auth-footer a:hover {
    text-decoration: underline;
}

/* --- FLASH MESSAGES (Alerts) --- */
.alert-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 1000;
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-error, .alert-danger {
    background-color: #e87c03; /* Orange/Red warning */
}

.alert-success {
    background-color: #2ecc71;
}

.alert-info {
    background-color: #3498db;
}

/* --- FOOTER --- */
.site-footer {
    background: rgba(0,0,0,0.55);
    padding: 30px;
    margin-top: auto;
    color: #c6c9d8;
    font-size: 0.9em;
    text-align: center;
}

/* --- HOME PAGE (Index) STYLES --- */

.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* Centers content vertically */
    text-align: center;
    padding: 20px;
}

.brand-title {
    margin-bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.brand-logo {
    max-width: 800px; /* Limits logo size on big screens */
    width: 90%;       /* Responsive on mobile */
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1000px; /* Keeps buttons from getting too wide */
    padding: 0 20px;
}

.menu-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card); /* Dark glass */
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    text-decoration: none; /* Removes underline */
}

.menu-card:hover {
    background-color: var(--accent); /* Red on hover */
    color: white;
    transform: translateY(-5px); /* Pops up slightly */
    box-shadow: 0 10px 20px rgba(255, 68, 68, 0.35); /* Red glow */
    border-color: var(--accent);
}

/* Optional: Make the Login button distinct */
.login-highlight {
    border: 1px solid var(--accent);
}
/* ===========================
   MOBILE RESPONSIVENESS
   Global / Home / Auth
   =========================== */
@media (max-width: 768px) {
    body {
        min-height: 100vh;
        overflow-x: hidden;
    }

    .navbar {
        position: relative;
        padding: 14px 18px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .nav-brand img {
        height: 34px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .landing-container {
        min-height: auto;
        padding: 90px 14px 30px;
    }

    .brand-title {
        margin-bottom: 28px;
    }

    .brand-logo {
        width: 95%;
        max-width: 420px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0;
    }

    .menu-card {
        padding: 22px 18px;
        font-size: 1.15rem;
        border-radius: 12px;
    }

    .auth-container {
        padding: 20px;
        min-height: 100vh;
    }

    .auth-card {
        padding: 34px 24px 28px;
        min-height: auto;
        max-width: 100%;
    }

    .auth-card h2 {
        font-size: 1.7rem;
    }

    .site-footer {
        padding: 20px 14px;
    }
}