/* ========================================================================
   LAYOUT USER STYLES
   Extracted from _LayoutUser.cshtml inline <style> for browser caching
   ======================================================================== */

/* CSS Reset */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #0f0f0f;
    color: #ffffff;
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding-top: 80px;
}

.wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

.premium-movie-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 5px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Netflix Style Navigation */
.netflix-nav {
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 100%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0;
    backdrop-filter: blur(10px);
}

    .netflix-nav.scrolled {
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    }

    .netflix-nav .navbar-brand {
        font-size: 2rem;
        font-weight: 900;
        color: #e50914 !important;
        letter-spacing: -1px;
        transition: transform 0.3s ease;
    }

        .netflix-nav .navbar-brand:hover {
            transform: scale(1.05);
        }

    .netflix-nav .nav-link {
        color: #e5e5e5 !important;
        font-size: 0.95rem;
        font-weight: 500;
        padding: 0.5rem 1rem !important;
        transition: all 0.2s ease;
        position: relative;
        white-space: nowrap !important;
    }

        .netflix-nav .nav-link:hover, .netflix-nav .nav-link.active {
            color: #ffffff !important;
        }

        .netflix-nav .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%) scaleX(0);
            width: 80%;
            height: 2px;
            background: #e50914;
            transition: transform 0.3s ease;
        }

        .netflix-nav .nav-link:hover::after, .netflix-nav .nav-link.active::after {
            transform: translateX(-50%) scaleX(1);
        }

    .netflix-nav .dropdown-menu {
        background-color: rgba(20, 20, 20, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 0.5rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        animation: fadeIn 0.2s ease;
    }

    .netflix-nav .dropdown-item {
        color: #e5e5e5;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        transition: all 0.2s ease;
        font-size: 0.9rem;
    }

        .netflix-nav .dropdown-item:hover {
            background-color: rgba(229, 9, 20, 0.2);
            color: #ffffff;
            transform: translateX(5px);
        }

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Search Container */
.search-container {
    position: relative;
    margin-right: 1rem;
}

    .search-container form {
        display: flex;
        align-items: center;
        background: rgba(0, 0, 0, 0.75);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        overflow: hidden;
        transition: all 0.3s ease;
    }

        .search-container form:focus-within {
            border-color: #e50914;
            box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
        }

    .search-container input {
        background: transparent;
        border: none;
        color: white;
        padding: 0.6rem 1rem;
        width: 250px;
        outline: none;
        font-size: 0.95rem;
    }

        .search-container input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

    .search-container button {
        background: none;
        border: none;
        color: #e5e5e5;
        padding: 0.6rem 1rem;
        cursor: pointer;
        transition: color 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

        .search-container button:hover {
            color: #e50914;
        }

/* Search Suggestions Box */
.suggestions-box {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-top: 8px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s ease;
}

    .suggestion-item:last-child {
        border-bottom: none;
    }

    .suggestion-item:hover {
        background: rgba(229, 9, 20, 0.1);
        color: white;
    }

    .suggestion-item img {
        width: 40px;
        height: 60px;
        object-fit: cover;
        border-radius: 4px;
        margin-right: 15px;
    }

.suggestions-box::-webkit-scrollbar {
    width: 6px;
}

.suggestions-box::-webkit-scrollbar-track {
    background: transparent;
}

.suggestions-box::-webkit-scrollbar-thumb {
    background: #e50914;
    border-radius: 3px;
}

.mega-menu {
    min-width: 800px;
    columns: 4;
    column-gap: 1rem;
    padding: 1rem !important;
}

/* Footer Styles */
.netflix-footer {
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(15,15,15,0.95) 0%, #0a0a0a 100%);
    color: #b3b3b3;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(229, 9, 20, 0.3);
    width: 100%;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h5 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.5rem;
}

    .footer-section h5::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background: #e50914;
    }

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-section ul li {
        margin-bottom: 0.8rem;
    }

        .footer-section ul li a {
            color: #b3b3b3;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            display: inline-block;
        }

            .footer-section ul li a:hover {
                color: #e50914;
                transform: translateX(5px);
            }

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

    .social-links a {
        color: white;
        font-size: 1.5rem;
        transition: all 0.3s ease;
        opacity: 0.8;
    }

        .social-links a:hover {
            color: #e50914;
            opacity: 1;
            transform: translateY(-3px);
        }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b3b3b3;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

    .footer-bottom-links a {
        color: #b3b3b3;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .footer-bottom-links a:hover {
            color: #e50914;
        }

.payment-methods {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
    color: #b3b3b3;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================================================================== */
/* DISCLAIMER MODAL STYLES                                                 */
/* ======================================================================== */
body.cf-disclaimer-open {
    overflow: hidden;
}
.cf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.cf-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.cf-modal-content {
    background: #111111;
    border: 1px solid rgba(229, 9, 20, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(229, 9, 20, 0.15);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cf-modal-overlay.active .cf-modal-content {
    transform: scale(1);
}
.cf-modal-icon {
    font-size: 2.5rem;
    color: #e50914;
    margin-bottom: 15px;
}
.cf-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}
.cf-modal-body {
    max-height: min(52vh, 420px);
    overflow-y: auto;
    padding-right: 4px;
}

.cf-modal-body p {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 15px;
}
.cf-modal-body strong {
    color: #ffffff;
}
.cf-modal-body .highlight-text {
    color: #ffd700;
    font-weight: 600;
    background: rgba(255, 215, 0, 0.08);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #ffd700;
    margin-bottom: 15px;
}
.btn-cf-primary {
    background: #e50914;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}
.btn-cf-primary:hover {
    background: #ff1e27;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
}
.btn-cf-primary:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .search-container input {
        width: 150px;
    }

        .search-container input:focus {
            width: 200px;
        }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .mega-menu {
        min-width: 300px;
        columns: 2;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .search-container {
        width: 100%;
        margin: 0.5rem 0;
    }

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