﻿
/* ============================================
       User Auth Section - Premium Design
       ============================================ */
.user-auth-wrapper {
    display: flex;
    justify-content: flex-end;
    padding: 8px 0;
}

/* حالت مهمان (ورود/عضویت) */
.user-guest {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 8px 18px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
}

    .user-guest i {
        font-size: 24px;
        color: white;
        opacity: 0.9;
    }

.btn-login,
.btn-register {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-login {
    background: rgba(255,255,255,0.15);
}

    .btn-login:hover {
        background: rgba(255,255,255,0.3);
        color: white;
        text-decoration: none;
        transform: translateX(-2px);
    }

.btn-register {
    background: #48bb78;
}

    .btn-register:hover {
        background: #38a169;
        color: white;
        text-decoration: none;
        transform: translateX(-2px);
    }

.divider {
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
}

/* حالت لاگین شده */
.user-logged-in {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.95);
    padding: 6px 12px 6px 6px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.3);
}

.user-avatar-mini {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

    .user-avatar-mini i {
        font-size: 24px;
        color: white;
    }

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.user-greeting {
    font-size: 1.5rem;
    color: #718096;
    font-weight: 400;
}

.user-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

    .user-name:hover {
        color: #667eea;
        text-decoration: none;
    }

.btn-logout {
    width: 36px;
    height: 36px;
    background: #fff5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e53e3e;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 5px;
}

    .btn-logout i {
        font-size: 18px;
    }

    .btn-logout:hover {
        background: #e53e3e;
        color: white;
        transform: rotate(90deg);
    }

/* ریسپانسیو */
@@media (max-width: 768px) {
    .user-auth-wrapper {
        justify-content: center;
        margin: 10px 0;
    }

    .user-name {
        max-width: 100px;
    }

    .user-guest {
        padding: 6px 12px;
    }

    .btn-login,
    .btn-register {
        font-size: 0.9rem;
        padding: 4px 10px;
    }
}

@@media (max-width: 480px) {
    .user-logged-in {
        padding: 4px 8px 4px 4px;
    }

    .user-avatar-mini {
        width: 35px;
        height: 35px;
    }

    .user-name {
        max-width: 80px;
    }

    .btn-logout {
        width: 32px;
        height: 32px;
    }
}


