/**
 * Event-Furs – Frontend: Event-Übersicht
 * Datei: /frontend/assets/css/frontend-events.css
 */

/* =========================
   Grundlayout
========================= */

.frontend-events {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;

    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================
   HERO
========================= */

.frontend-events-hero {
    padding: 3rem 1.5rem 2.5rem;
    background: radial-gradient(
        700px 260px at 50% 0%,
        rgba(120, 64, 255, 0.28),
        transparent 70%
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.frontend-section-header {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.frontend-section-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.frontend-section-header p {
    color: rgba(210, 212, 225, 0.85);
}

/* =========================
   Event Grid
========================= */

.frontend-events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

/* =========================
   Event Card
========================= */

.frontend-event-card {
    width: 100%;

    display: grid;
    grid-template-columns: 320px 1fr;
    grid-template-areas:
        "info details"
        "status actions";

    background: linear-gradient(
        180deg,
        rgba(22, 26, 42, 0.85),
        rgba(14, 16, 24, 0.85)
    );

    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;

    padding: 24px 28px;
    gap: 18px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.frontend-event-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(120, 64, 255, 0.25);
    border-color: rgba(120, 64, 255, 0.45);
}

/* =========================
   INFO
========================= */

.frontend-event-header {
    grid-area: info;
    display: flex;
    flex-direction: column;
    gap: 6px;

    padding-right: 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.frontend-event-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

.frontend-event-meta {
    font-size: 0.95rem;
    color: rgba(200, 202, 215, 0.85);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* =========================
   STATUS
========================= */

.frontend-event-status {
    grid-area: status;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.status-open .status-dot { background: #4dffb3; }
.status-planned .status-dot { background: #ffd966; }
.status-closed .status-dot { background: #ff8c8c; }
.status-past .status-dot { background: #999999; }

/* =========================
   ACTIONS
========================= */

.frontend-event-actions {
    grid-area: actions;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

/* =========================
   Buttons
========================= */

.frontend-button {
    padding: 11px 20px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.15s ease;
}

.frontend-button.primary {
    background: rgba(120, 64, 255, 0.35);
    color: #fff;
}

.frontend-button.primary:hover {
    background: rgba(120, 64, 255, 0.5);
}

.frontend-button.secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.frontend-button.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* =========================
   Archiv – Toggle (FINAL)
========================= */

.frontend-events-archive {
    max-width: 1400px;
    margin: 3.5rem auto 3rem;
    padding: 0 1.5rem;

    display: flex;
    justify-content: center;
}

.frontend-events-archive-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 20px;
    border-radius: 999px;

    font-size: 0.95rem;
    font-weight: 500;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(220, 222, 235, 0.9);

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.frontend-events-archive-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.frontend-events-archive-toggle::after {
    content: "▾";
    font-size: 0.8rem;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.frontend-events-archive-toggle.open::after {
    transform: rotate(180deg);
}

/* =========================
   Archiv – Karten
========================= */

.frontend-events-grid.archived {
    width: 100%;
}

.frontend-events-grid.archived .frontend-event-card {
    opacity: 0.65;
}

.frontend-events-grid.archived .frontend-event-card:hover {
    opacity: 0.85;
}

/* =========================
   Mobile
========================= */

@media (max-width: 900px) {
    .frontend-event-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "info"
            "status"
            "actions";
    }

    .frontend-event-header {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding-bottom: 12px;
    }

    .frontend-event-actions {
        justify-content: flex-start;
    }
}
