/* User Dropdown Menu Styles - Similar to Currency Dropdown */

.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.user-menu-trigger:hover {
    color: #c0a47a;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    min-width: 160px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    margin: 5px 0 0 0;
    list-style: none;
    display: none;
    z-index: 1000;
    border: 1px solid #e0e0e0;
}

/* RTL/LTR positioning */
html[dir="ltr"] .user-dropdown {
    right: 0;
}

html[dir="rtl"] .user-dropdown {
    left: 0;
}

/* Show dropdown on hover - Simple approach */
.user-menu-container:hover .user-dropdown {
    display: block;
}

.user-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
    font-weight: 500;
}

.user-option:hover {
    background: #f8f8f8;
    color: #c0a47a;
    text-decoration: none;
}

.user-option svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* RTL text alignment */
html[dir="rtl"] .user-option {
    text-align: right;
    flex-direction: row-reverse;
}

html[dir="ltr"] .user-option {
    text-align: left;
}

/* Separator line between options */
.user-option + .user-option {
    border-top: 1px solid #f0f0f0;
}

/* Logout button styling */
.user-option button {
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    padding: 0;
    font: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
    font-weight: 500;
}

.user-option button:hover {
    background: #f8f8f8;
    color: #c0a47a;
}

/* RTL support for logout button */
html[dir="rtl"] .user-option button {
    text-align: right;
    flex-direction: row-reverse;
}
