/**
 * Copyright © Inn. All rights reserved.
 * Inn_HeaderActions - Styles
 */

/* ============================================ */
/* HEADER ACTIONS WRAPPER                      */
/* ============================================ */

.header-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    height: 100%;
}

.header-actions-wrapper > * {
    display: flex;
    align-items: center;
}

/* ============================================ */
/* USER DROPDOWN                                */
/* ============================================ */

.header-user-dropdown {
    position: relative;
    display: inline-block;
}

.header-user-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    height: 32px;
    width: 32px;
}

.header-user-trigger:hover {
    color: #1d71b8;
    transform: scale(1.1);
}

.header-user-trigger.active {
    color: #1d71b8;
}

.header-user-trigger i {
    font-size: 32px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.header-user-trigger:hover i {
    transform: scale(1.05);
}

.user-name-mobile {
    display: none;
    font-family: 'Onest', sans-serif; /* @mainfont */
    font-size: 14px;
    font-weight: 500;
}

/* ============================================ */
/* DROPDOWN MENU                                */
/* ============================================ */

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    min-width: 280px;
    background: #1A1A1A;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    border: 1px solid #333333;
}

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

/* No animation for reduced motion preference */
.user-dropdown-menu.no-animation {
    transition: none;
}

/* ============================================ */
/* DROPDOWN HEADER                              */
/* ============================================ */

.user-dropdown-menu .dropdown-header {
    padding: 20px;
    border-bottom: 1px solid #333333;
    background: linear-gradient(135deg, #212121 0%, #1A1A1A 100%);
}

.user-dropdown-menu .welcome-text {
    display: block;
    font-size: 12px;
    color: #999999;
    margin-bottom: 4px;
    font-family: 'Poppins', sans-serif;
}

.user-dropdown-menu .customer-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

/* ============================================ */
/* DROPDOWN LINKS                               */
/* ============================================ */

.user-dropdown-menu .dropdown-links {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.user-dropdown-menu .dropdown-links li {
    margin: 0;
}

.user-dropdown-menu .dropdown-links li.divider {
    height: 1px;
    background: #333333;
    margin: 8px 0;
}

.user-dropdown-menu .dropdown-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.user-dropdown-menu .dropdown-links a:hover {
    background: #2a2a2a;
    color: #1d71b8;
}

.user-dropdown-menu .dropdown-links a:focus {
    outline: 2px solid #1d71b8;
    outline-offset: -2px;
}

.user-dropdown-menu .dropdown-links a i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.user-dropdown-menu .dropdown-links .logout-link {
    color: #ff6b6b;
}

.user-dropdown-menu .dropdown-links .logout-link:hover {
    background: #2a1f1f;
    color: #ff4444;
}

/* ============================================ */
/* RESPONSIVE DESIGN                            */
/* ============================================ */

/* Tablet */

/* Focus Visible (modern browsers) */
.header-user-trigger:focus-visible {
    outline: 2px solid #1d71b8;
    outline-offset: 2px;
}

/* Header Search Trigger */
.header-search-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 32px;
    height: 32px;
    width: 32px;
    padding: 0;
    transition: all 0.3s ease;
}

.header-search-trigger:hover {
    color: #1d71b8 !important;
    transform: scale(1.1);
}

.header-search-trigger i {
    line-height: 1;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .header-actions-wrapper {
        gap: 10px;
    }
    
    .header-user-trigger,
    .header-search-trigger {
        height: 28px;
        width: 28px;
    }
    
    .header-user-trigger i,
    .header-search-trigger i {
        font-size: 28px !important;
    }
    
    .user-dropdown-menu {
        position: fixed;
        right: 10px;
        left: auto;
        min-width: 280px;
        max-width: calc(100vw - 20px);
        top: 70px;
        transform: translateY(0);
    }
    
    .user-dropdown-menu.active {
        transform: translateY(0);
    }
    
    .user-dropdown-menu .dropdown-header {
        padding: 15px;
    }
    
    .user-dropdown-menu .dropdown-links a {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Very Small Mobile (< 360px) */
@media (max-width: 359px) {
    .header-actions-wrapper {
        gap: 8px;
    }
    
    .user-dropdown-menu {
        right: 5px;
        min-width: calc(100vw - 10px);
    }
}
