/* Modern Header Styles - Extracted from _Layout.cshtml */

.modern-header {
    background: #1E140C;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    width: 100%;
}

.modern-header-content {
    max-width: 100%;
    margin: 0;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.modern-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #C49A6C 0%, #D1A76F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.modern-logo:hover {
    transform: scale(1.05);
}

.modern-logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.modern-logo i {
    font-size: 28px;
    background: linear-gradient(135deg, #D1A76F 0%, #C49A6C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modern-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.modern-nav a {
    text-decoration: none;
    color: #CBBFAD;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.modern-nav a:hover {
    background: linear-gradient(135deg, rgba(196, 154, 108, 0.1) 0%, rgba(184, 149, 106, 0.1) 100%);
    color: #C49A6C;
    transform: translateY(-1px);
}

.modern-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-action-btn {
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    background: none;
    cursor: pointer;
    color: #CBBFAD;
}

.modern-action-btn:hover {
    background: #3B2A1A;
    color: #C49A6C;
    transform: translateY(-2px);
}

.modern-action-btn.primary {
    background: linear-gradient(135deg, #C49A6C 0%, #D1A76F 100%);
    color: white;
}

.modern-action-btn.primary:hover {
    box-shadow: 0 8px 25px rgba(196, 154, 108, 0.4);
    transform: translateY(-2px);
}

.modern-user-menu {
    position: relative;
}

.modern-user-btn {
    padding: 8px 16px;
    border-radius: 12px;
    background: #3B2A1A;
    border: 2px solid #C49A6C;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #CBBFAD;
}

.modern-user-btn:hover {
    border-color: #C49A6C;
    box-shadow: 0 4px 15px rgba(196, 154, 108, 0.2);
}

.modern-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C49A6C 0%, #D1A76F 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.modern-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(61, 40, 23, 0.15);
    min-width: 220px;
    padding: 8px;
    display: none;
    animation: dropdownSlide 0.3s ease-out;
}

.modern-dropdown.show {
    display: block;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.modern-dropdown-item:hover {
    background: linear-gradient(135deg, rgba(196, 154, 108, 0.1) 0%, rgba(184, 149, 106, 0.1) 100%);
    color: #C49A6C;
}

.modern-dropdown-divider {
    height: 1px;
    background: #C49A6C;
    margin: 8px 0;
}

.language-switcher {
    padding: 8px 14px;
}

.language-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.language-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.language-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #f8f9fa;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-btn:hover {
    background: #e9ecef;
    border-color: #C49A6C;
    transform: translateY(-1px);
}

.language-btn.active {
    background: linear-gradient(135deg, #C49A6C 0%, #D1A76F 100%);
    color: white;
    border-color: #C49A6C;
    box-shadow: 0 2px 8px rgba(196, 154, 108, 0.3);
}

.language-btn .flag-icon {
    font-size: 16px;
}

@media (max-width: 768px) {

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        background: transparent;
        border: none;
        /* Removed border as requested */
        color: #CBBFAD;
        cursor: pointer;
        font-size: 24px;
        /* Slightly larger */
        transition: all 0.3s ease;
        margin-right: 15px;
        order: -1;
    }

    .mobile-menu-btn:hover {
        color: #C49A6C;
        /* Removed background on hover too for cleaner look */
        transform: scale(1.1);
    }

    /* Mobile Navigation Dropdown */
    .modern-nav {
        display: none;
        /* Hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1E140C;
        /* Dark background */
        flex-direction: column;
        padding: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        border-top: 1px solid rgba(196, 154, 108, 0.2);
        animation: slideDown 0.3s ease-out;
        z-index: 1001;
        /* Ensure on top */
    }

    .modern-nav.show {
        display: flex;
    }

    .modern-nav li {
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        /* Separator */
    }

    .modern-nav a {
        width: 100%;
        display: flex;
        align-items: center;
        padding: 18px 25px;
        /* Comfortable touch target */
        background: transparent;
        justify-content: flex-start;
        border-radius: 0;
        /* Full width */
        font-size: 16px;
    }

    .modern-nav a:hover {
        background: rgba(196, 154, 108, 0.1);
        transform: none;
        /* No movement on mobile list */
        color: #C49A6C;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Adjust header layout for mobile */
    .modern-header-content {
        padding: 0 20px;
        height: 70px;
        /* Fixed height for consistency */
        min-height: 0;
        flex-wrap: nowrap;
        /* Prevent wrapping */
        gap: 15px;
        justify-content: space-between;
    }

    /* Move logo to left, menu button to right or vice versa. 
       Let's put Menu Button Left, Logo Center, Actions Right */

    .modern-logo {
        display: none;
        /* Hidden on mobile as requested */
        font-size: 20px;
        flex: 1;
        min-width: 0;
        order: 0;
        justify-content: center;
        /* Center logo text/icon on mobile */
    }

    .modern-logo span {
        display: inline-block;
        /* Show text on mobile? User didn't specify, but looks better if space allows. Or hide if too crowded. */
    }

    .modern-nav-container {
        order: 3;
        width: auto;
        position: static;
        /* Let the nav absolute position be relative to header parent */
    }

    .language-btn {
        padding: 10px 12px;
        min-height: 44px;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .modern-header-content {
        padding: 0 10px;
    }

    .modern-logo {
        font-size: 18px;
    }

    .modern-logo img {
        height: 60px;
    }

    .modern-action-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .modern-chat-button {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }

    .modern-chat-button i {
        font-size: 24px;
    }
}