/* ============================================
   Account Menu Shortcode Styles
   ============================================ */

.uptix-account-menu {
    position: relative;
    display: inline-block;
}

/* Login Button */
.uptix-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.uptix-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.uptix-login-btn i {
    font-size: 16px;
}

/* User Header */
.uptix-header__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    color: #e2e8f0;
}

.uptix-header__user:hover {
    background: rgba(15, 23, 42, 0.9);
    color: white;
}

.uptix-account-menu.active .uptix-header__user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.uptix-account-menu.active .uptix-header__user .uptix-avatar {
    border-color: white;
}

.uptix-header__name {
    font-weight: 500;
    font-size: 14px;
    color: #e2e8f0;
}

.uptix-account-menu.active .uptix-header__name {
    color: white;
}

.uptix-header__user i {
    font-size: 12px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.uptix-account-menu.active .uptix-header__user i {
    color: white;
    transform: rotate(180deg);
}

/* Avatar */
.uptix-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.uptix-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uptix-avatar--lg {
    width: 56px;
    height: 56px;
    font-size: 20px;
}

/* Dropdown Menu */
.uptix-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.uptix-account-menu.active .uptix-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.uptix-dropdown-header {
    padding: 20px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.uptix-dropdown-user-info {
    flex: 1;
    min-width: 0;
}

.uptix-dropdown-user-name {
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uptix-dropdown-user-email {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uptix-dropdown-user-company {
    font-size: 12px;
    color: #00d2ff;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.uptix-dropdown-user-company i {
    font-size: 11px;
    opacity: 0.8;
}

.uptix-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0;
}

.uptix-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.uptix-dropdown-item:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #00d2ff;
    text-decoration: none;
}

.uptix-dropdown-item i {
    font-size: 16px;
    width: 18px;
    text-align: center;
}

.uptix-dropdown-item--danger {
    color: #ef4444;
}

.uptix-dropdown-item--danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
    .uptix-dropdown-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        width: calc(100vw - 40px);
        max-width: 320px;
    }
    
    .uptix-account-menu.active .uptix-dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
    
    .uptix-header__name {
        display: none;
    }
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.uptix-account-menu.active .uptix-dropdown-menu {
    animation: slideDown 0.3s ease;
}
