/* Auth UI Styles */

.auth-container {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.auth-container.visible {
    opacity: 1;
    visibility: visible;
}

.auth-provider {
    position: relative;
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.auth-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.auth-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.auth-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.auth-name {
    font-weight: 500;
}

.auth-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.auth-container:hover .auth-dropdown,
.auth-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.auth-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.auth-dropdown-item.logout {
    color: #ff6b6b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4px;
    padding-top: 14px;
}

/* Touch device support - use click to toggle instead of hover */
@media (hover: none) and (pointer: coarse) {
    .auth-container:hover .auth-dropdown,
    .auth-dropdown:hover {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }

    .auth-dropdown.open {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    .auth-dropdown-item {
        padding: 14px 20px;
        font-size: 16px;
    }

    .auth-btn {
        padding: 10px 18px;
    }
}
