﻿/* ================================
   logilogo UI — User Info Component
   Glassmorphic container, compact logout icon, fully responsive
   ================================ */

/* Root variables (unique to this component) */
:root {
    --logilogo-primary: linear-gradient(135deg, #28a745, #43e97b);
    --logilogo-primary-hover: linear-gradient(135deg, #1e7e34, #38f9d7);
    --logilogo-danger: linear-gradient(135deg, #ff4d4d, #d93636);
    --logilogo-danger-hover: linear-gradient(135deg, #e60000, #b30000);
    --logilogo-glass: rgba(255, 255, 255, 0.75);
    --logilogo-glass-dark: rgba(255, 255, 255, 0.85);
    --logilogo-border: rgba(255, 255, 255, 0.4);
    --logilogo-shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
    --logilogo-shadow-medium: 0 18px 40px rgba(0, 0, 0, 0.12);
    --logilogo-shadow-hover: 0 25px 60px rgba(0, 0, 0, 0.18);
    --logilogo-radius-pill: 60px;
    --logilogo-radius-md: 16px;
    --logilogo-transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* User info container – glassmorphic, rounded, responsive */
.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: var(--logilogo-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--logilogo-border);
    border-radius: var(--logilogo-radius-md);
    padding: 6px 16px;
    box-shadow: var(--logilogo-shadow-soft);
    transition: var(--logilogo-transition);
    width: 100%;
}

    .user-info:hover {
        box-shadow: var(--logilogo-shadow-medium);
    }


/* Username – clean, readable */
.username {
    font-weight: 600;
    font-size: 0.95rem;
    color: darkblue;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Logout button – compact icon button (power symbol) */
.logout-btn {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--logilogo-transition);
    color: #666;
    font-size: 1.2rem;
    flex-shrink: 0;
}

    /* Icon inside button – using Font Awesome or fallback SVG */
    .logout-btn i,
    .logout-btn svg {
        width: 20px;
        height: 20px;
        display: block;
    }

    /* Hover effect – glassmorphic background */
    .logout-btn:hover {
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(4px);
        transform: translateY(-2px);
        color: #dc3545;
    }

/* ===== RESPONSIVE ===== */
/* Tablet: adjust sizes */
@media (max-width: 768px) {
    .user-info {
        padding: 5px 12px;
    }

    .username {
        font-size: 0.9rem;
    }

    .logout-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* Mobile: stack vertically, but keep button compact */
@media (max-width: 480px) {
    .user-info {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 12px;
    }

    .username {
        white-space: normal;
        text-align: center;
        margin-bottom: 8px;
    }

    .logout-btn {
        width: 100%;
        border-radius: var(--logilogo-radius-md);
        background: rgba(255, 255, 255, 0.5);
        color: #dc3545;
    }

        .logout-btn:hover {
            background: var(--logilogo-danger);
            color: white;
            transform: translateY(-2px);
        }
}

/* Very small screens (≤360px) */
@media (max-width: 360px) {
    .user-info {
        padding: 10px;
    }

    .username {
        font-size: 0.85rem;
    }
}
