/**
 * Module_M02.css — Signal Alerts: User Watchlist
 * Независимый UI-компонент M-02
 * Edge Alignment: left 20px, width calc(100% - 40px)
 */

.module-m02 {
    position: absolute;
    left: 20px;
    width: calc(100% - 40px);
    min-height: 120px;
    background: #242A38;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.module-m02-title {
    position: absolute;
    top: 12px;
    left: 16px;
    font-size: 13px;
    font-weight: 700;
    color: #AEAFB0;
}

/* Горизонтальный скролл — micro-component (Flexbox) */
.module-m02-scroll {
    position: absolute;
    top: 40px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-end;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.module-m02-scroll::-webkit-scrollbar {
    height: 4px;
}

.module-m02-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
}

.module-m02-scroll::-webkit-scrollbar-thumb {
    background: rgba(117, 99, 70, 0.4);
    border-radius: 2px;
}

.module-m02-user {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.module-m02-avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.module-m02-avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1D2232;
    border: none;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.06), 0 0 6px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #64748B;
    animation: float 3s ease-in-out infinite;
}

.module-m02-avatar-wrap.status-active .module-m02-avatar {
    border: none;
    box-shadow: 0 0 0 2px #242A38, 0 0 12px 2px rgba(255, 140, 0, 0.6);
    animation: float 3s ease-in-out infinite, module-m02-glow 1.5s ease-in-out infinite alternate;
}

.module-m02-avatar-wrap.status-active::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 0deg, rgba(255, 140, 0, 0.8), rgba(255, 69, 0, 0.8), rgba(255, 140, 0, 0.8));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: orbit-ring-spin 2.5s linear infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes orbit-ring-spin {
    to { transform: rotate(360deg); }
}

@keyframes module-m02-glow {
    from {
        box-shadow: 0 0 0 2px #242A38, 0 0 8px 2px rgba(255, 140, 0, 0.4);
    }
    to {
        box-shadow: 0 0 0 2px #242A38, 0 0 16px 3px rgba(255, 100, 50, 0.7);
    }
}

.module-m02-status-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #242A38;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.module-m02-avatar-wrap.status-active .module-m02-status-icon {
    display: flex;
}

.module-m02-name {
    position: relative;
    margin-top: 6px;
    font-size: 8px;
    color: #AEAFB0;
    text-align: center;
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
