/* --- EVENT GRID STYLES --- */
.event-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.event-card {
    background: linear-gradient(145deg, var(--bg-card), #2a2a2a);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fade-in-up 0.4s ease-out backwards;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0.8;
}

.event-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03));
    pointer-events: none;
}

/* Event Types Colors */
.event-card.event-join::before { background: #4ade80; box-shadow: 0 0 10px rgba(74, 222, 128, 0.3); }
.event-card.event-leave::before { background: #f87171; box-shadow: 0 0 10px rgba(248, 113, 113, 0.3); }
.event-card.event-msg::before { background: #60a5fa; box-shadow: 0 0 10px rgba(96, 165, 250, 0.3); }
.event-card.event-del::before { background: #fb923c; box-shadow: 0 0 10px rgba(251, 146, 60, 0.3); }

.event-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-main);
    transition: transform 0.3s;
}

.event-card:hover .event-icon {
    transform: scale(1.1) rotate(5deg);
}

.event-join .event-icon { color: #4ade80; background: rgba(74, 222, 128, 0.05); }
.event-leave .event-icon { color: #f87171; background: rgba(248, 113, 113, 0.05); }
.event-msg .event-icon { color: #60a5fa; background: rgba(96, 165, 250, 0.05); }
.event-del .event-icon { color: #fb923c; background: rgba(251, 146, 60, 0.05); }

.event-content {
    flex: 1;
}

.event-content h3 {
    margin: 8px 0 8px 0;
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.event-trigger-code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    color: #a0a0a0;
    background: rgba(0,0,0,0.3);
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.event-badges {
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
}

.event-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.event-actions button {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 1rem;
}

.event-actions button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    transform: translateY(-2px);
}

.event-actions button.edit:hover {
    color: var(--primary);
    background: rgba(255, 215, 0, 0.1);
}

.event-actions button.delete:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
