/* ============================================
   ADMIN ÉVÉNEMENTS — Liste + toggle visibilité
   ============================================ */

.admin-events-list {
    display: grid;
    gap: var(--space-md);
}

.admin-event-row {
    background: white;
    border-radius: 12px;
    padding: var(--space-md) var(--space-lg);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--color-sand-dark);
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: var(--space-md);
    align-items: center;
}

.admin-event-row.is-visible { border-left-color: #16a34a; }
.admin-event-row.is-hidden { border-left-color: #94a3b8; opacity: 0.85; }

.admin-event-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--color-sand);
    flex-shrink: 0;
}

.admin-event-info { min-width: 0; }
.admin-event-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-charcoal);
    margin: 0 0 4px;
    letter-spacing: 0.5px;
}
.admin-event-meta {
    color: var(--color-gray);
    font-size: 0.82rem;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-event-stats {
    text-align: right;
    font-size: 0.82rem;
    color: var(--color-gray);
}
.admin-event-stats strong {
    display: block;
    color: var(--color-charcoal);
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

/* Switch on/off */
.admin-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
    flex-shrink: 0;
}
.admin-switch input {
    opacity: 0; width: 0; height: 0;
}
.admin-switch-slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #94a3b8;
    transition: .25s;
    border-radius: 32px;
}
.admin-switch-slider::before {
    position: absolute;
    content: '';
    height: 24px; width: 24px;
    left: 4px; bottom: 4px;
    background: white;
    transition: .25s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.admin-switch input:checked + .admin-switch-slider {
    background: linear-gradient(135deg, #15803d, #16a34a);
}
.admin-switch input:checked + .admin-switch-slider::before {
    transform: translateX(24px);
}
.admin-switch input:disabled + .admin-switch-slider {
    opacity: 0.5;
    cursor: wait;
}

@media (max-width: 640px) {
    .admin-event-row {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "thumb info switch"
            "stats stats stats";
        gap: 10px;
        padding: 12px;
    }
    .admin-event-thumb { grid-area: thumb; width: 44px; height: 44px; }
    .admin-event-info { grid-area: info; }
    .admin-event-stats { grid-area: stats; text-align: left; padding-top: 6px; border-top: 1px dashed #f0ebe2; }
    .admin-switch { grid-area: switch; }
    .admin-event-name { font-size: 1rem; }
    .admin-event-meta { font-size: 0.75rem; }
}
