/* Authentication UI for wakeai.app header and chat widget */

/* Header sign-in link */
.wake-signin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-medium);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.wake-signin-link:hover {
    color: var(--primary-blue);
}

.wake-signin-link i {
    font-size: 1.15rem;
}

/* Header profile (logged-in state) */
.wake-profile-menu {
    display: none;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
}

.wake-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    object-fit: cover;
}

.wake-username {
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.9rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sign-out dropdown */
.wake-profile-menu .wake-signout {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 0.5rem;
    white-space: nowrap;
    font-size: 0.85rem;
    color: var(--text-medium);
    z-index: 1001;
}

.wake-profile-menu .wake-signout span {
    display: block;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-md);
}

.wake-profile-menu:hover .wake-signout {
    display: block;
}

.wake-signout:hover {
    color: #ef4444;
}

/* Mobile: hide username text */
@media (max-width: 768px) {
    .wake-username {
        display: none;
    }
}
