/* ==========================================
   Modern Header Styles - NetFix
   ========================================== */

:root {
    --primary-color: #00C9A7;
    --primary-dark: #00B08C;
    --secondary-color: #2D3436;
    --text-color: #636E72;
    --white: #FFFFFF;
}


/* Modern Header */

.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header-logo img {
    height: 20px;
    width: auto;
}

.header-logo span {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary-color);
}

.header-logo span span {
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-login {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-login-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-login-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-register {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 201, 167, 0.3);
}

.language-dropdown {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.language-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-dropdown:hover .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu a {
    display: block;
    padding: 12px 25px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.language-menu a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--secondary-color);
    cursor: pointer;
}


/* Mobile Menu - Override */

#wrapper .mv-mobile-menu,
.mv-mobile-menu,
.mobile-menu,
#mobile-menu {
    display: none !important;
}

.mobile-menu-toggle {
    display: flex !important;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(5px);
    z-index: 9999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-menu-panel {
    position: fixed !important;
    top: 0 !important;
    right: -320px !important;
    width: 320px !important;
    max-width: 85% !important;
    height: 100% !important;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    z-index: 10000 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
    padding: 0 !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5) !important;
}

.mobile-menu-panel.active {
    right: 0 !important;
}

.mobile-menu-header {
    background: rgba(0, 201, 167, 0.1);
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00C9A7, #00B08C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.mobile-menu-user-info h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.mobile-menu-user-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: #00C9A7;
    transform: rotate(90deg);
}


/* RTL Support for mobile menu close button */

[dir="rtl"] .mobile-menu-close {
    right: auto;
    left: 20px;
}


/* Mobile Navigation */

.mobile-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.mobile-nav-section {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 20px;
    margin-bottom: 8px;
}

.mobile-language {
    display: flex;
    gap: 10px;
    padding: 0 20px;
    margin-bottom: 10px;
}

.mobile-language a {
    flex: 1;
    justify-content: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-language a:hover {
    background: rgba(0, 201, 167, 0.2);
    border-color: var(--primary-color);
    color: white;
}

.mobile-language a.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.mobile-menu-logo {
    margin-bottom: 0;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-logo img {
    height: 17px;
}

.mobile-nav {
    padding: 15px 0;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #00C9A7;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-nav a:hover {
    background: rgba(0, 201, 167, 0.1);
    color: #00C9A7;
    padding-right: 25px;
}

.mobile-nav a:hover::before {
    transform: scaleY(1);
}

.mobile-nav a i {
    width: 24px;
    text-align: center;
    color: #00C9A7;
    font-size: 18px;
}

.mobile-nav .active {
    background: white !important;
    color: #00C9A7;
}

.mobile-nav .active i {
    color: #00C9A7;
}

.mobile-nav-section {
    padding: 10px 20px 5px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 20px;
}

.mobile-nav .logout-link {
    color: #e74c3c;
}

.mobile-nav .logout-link i {
    color: #e74c3c;
}

.mobile-nav .logout-link:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.mobile-language {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
}

.mobile-language a {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-language a:hover,
.mobile-language a.active {
    background: #00C9A7;
}

.mobile-menu-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.mobile-menu-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin: 0;
}

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

.mobile-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-buttons .btn-login,
.mobile-buttons .btn-register {
    text-align: center;
    justify-content: center;
}


/* Copyright */

.copyright {
    background: #1A1B2F;
    text-align: center;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

.copyright a {
    color: var(--primary-color);
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}


/* Main Content Padding */

.main-content {
    padding-top: 80px;
}


/* Dropdown Menu */

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 10px;
}

.dropdown-item {
    padding: 10px 20px;
    border-radius: 5px;
    color: var(--secondary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--primary-color);
    color: var(--white);
}


/* Responsive */

@media (min-width: 992px) {
    /* Show notification dropdown on desktop */
    .notification-dropdown {
        display: block !important;
    }
}

@media (max-width: 991px) {
    .main-nav,
    .header-actions .dropdown,
    .user-menu,
    .header-actions .btn-login,
    .language-dropdown {
        display: none !important;
    }
    .notification-dropdown {
        display: flex !important;
    }
    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(0, 201, 167, 0.1);
        border-radius: 8px;
        color: var(--primary-color) !important;
    }
    .mobile-toggle:hover {
        background: var(--primary-color);
        color: white !important;
    }
    .header-actions {
        gap: 10px;
    }
    /* Ensure mobile menu panel shows properly */
    .mobile-menu-panel {
        display: block !important;
    }
    /* RTL Support for mobile menu */
    [dir="rtl"] .mobile-menu-panel {
        right: auto !important;
        left: -320px !important;
    }
    [dir="rtl"] .mobile-menu-panel.active {
        left: 0 !important;
        right: auto !important;
    }
}

@media (max-width: 576px) {
    .header-inner {
        height: 70px;
    }
    .header-logo img {
        height: 18px;
    }
    .header-logo span {
        font-size: 20px;
    }
}