/* Shared user menu styles for Netsuke AI */

.user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.user-menu-trigger {
    all: unset;
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background 0.2s;
    border-radius: 4px;
    box-sizing: border-box;
}

.user-menu-trigger:hover {
    background: #f5f5f5;
}

.user-email {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 20px;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: #666;
    border-radius: 1px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 200px;
    z-index: 1000;
}

.user-dropdown.open {
    display: block;
}

.user-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    text-align: left;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.user-dropdown-item:hover {
    background: #f8f9fa;
}

.user-dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.user-dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

/* Language menu styles */
.language-menu-item {
    position: relative;
    cursor: pointer;
}

.language-menu-item .current-language {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-menu-item .chevron {
    font-size: 12px;
    transition: transform 0.2s;
    display: inline-block;
}

.language-menu-item.expanded .chevron {
    transform: rotate(90deg);
}

.user-language-options {
    display: none;
    flex-direction: column;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}

.language-menu-item.expanded .user-language-options {
    display: flex;
}

.language-option-item {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: none;
    border: none;
    text-align: left;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.language-option-item:hover {
    background: #f8f9fa;
}

.language-option-item.active {
    background: #e8f0fe;
    color: #1a73e8;
    font-weight: 500;
}

.auth-prompt {
    display: flex;
    align-items: center;
}

.register-btn {
    background: #4285f4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.register-btn:hover {
    background: #1a73e8;
}