/**
 * GridActive Module - Active Users Display
 * Cyberpunk red/orange theme matching GridStream notifications
 * Version: 1.1.0
 */

/* ==========================================================================
   Module Container
   ========================================================================== */

.grid-active {
    background: linear-gradient(135deg, #1a0a0f 0%, #2a1520 100%);
    border: 2px solid transparent;
    border-image: linear-gradient(90deg, #e63946, #ff8a24) 1;
    border-radius: 20px 0 20px 0;
    padding: 20px;
    position: relative;
    overflow: hidden;
    width: 320px;
    max-width: 100%;
    color: #f8ecff;
}

/* Scanline effect */
.grid-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(230, 57, 70, 0.03) 0px,
        transparent 1px,
        transparent 2px,
        rgba(230, 57, 70, 0.03) 3px
    );
    pointer-events: none;
    z-index: 1;
}

.grid-active > * {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Header
   ========================================================================== */

.grid-active .hdr {
    position: relative;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #ff8a24;
    border-bottom: 2px solid rgba(230, 57, 70, 0.3);
    padding-bottom: 8px;
    margin-bottom: 15px;
    text-shadow: 0 0 12px rgba(255, 138, 36, 0.4);
    font-size: 16px;
}

/* ==========================================================================
   Users List
   ========================================================================== */

.grid-active .users {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    z-index: 1;
}

.grid-active .user {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: #ffeafc;
    background: rgba(26, 10, 15, 0.6);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-left: 3px solid #e63946;
    border-radius: 8px;
    padding: 10px 12px;
    transition: all 0.3s ease;
}

.grid-active .user:hover {
    background: rgba(42, 21, 32, 0.8);
    border-color: #ff8a24;
    border-left-color: #ff8a24;
    transform: translateX(3px);
}

/* ==========================================================================
   Avatar
   ========================================================================== */

.grid-active .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #0a0f1a;
    border: 2px solid #e63946;
    flex: 0 0 auto;
    box-shadow: 0 0 12px rgba(230, 57, 70, 0.3);
    position: relative;
}

.grid-active .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-active .avatar .placeholder {
    width: 100%;
    height: 100%;
    display: block;
    background: radial-gradient(circle at 30% 20%, rgba(230, 57, 70, 0.3), rgba(42, 21, 32, 0.8));
}

/* ==========================================================================
   User Info
   ========================================================================== */

.grid-active .name {
    font-weight: 700;
    color: #ffe1f4;
    letter-spacing: 0.02em;
    text-shadow: 0 0 10px rgba(255, 138, 36, 0.3);
    flex: 1;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.grid-active .empty {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px;
    opacity: 0.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.grid-active .foot {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(230, 57, 70, 0.2);
    text-align: right;
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: #999;
}

.grid-active .foot a {
    color: #ff8a24;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.3s ease;
}

.grid-active .foot a:hover {
    color: #ffd0e6;
    text-shadow: 0 0 10px rgba(255, 138, 36, 0.5);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .grid-active {
        width: 100%;
        border-radius: 10px;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.grid-active .user:focus {
    outline: 2px solid #ff8a24;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .grid-active,
    .grid-active .user {
        transition: none;
    }

    .grid-active::before {
        animation: none;
    }
}

