/**
 * EventHub Favorites Page - Styling
 *
 * Styles für die Favoriten-Übersichtsseite.
 *
 * @package EventHub
 * @since 1.0.0
 */

/* ==========================================================================
   Favoriten-Seite Layout
   ========================================================================== */

.eventhub-favorites-page__intro {
    color: var(--eventhub-color-text-muted, #666);
    margin-bottom: var(--eventhub-spacing-lg, 1.5rem);
}

/* ==========================================================================
   Ladeindikator
   ========================================================================== */

.eventhub-favorites-page__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--eventhub-spacing-xl, 2rem);
    min-height: 200px;
    color: var(--eventhub-color-text-muted, #666);
}

.eventhub-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--eventhub-color-border, #ddd);
    border-top-color: var(--eventhub-color-primary, #0073aa);
    border-radius: 50%;
    animation: eventhub-spin 0.8s linear infinite;
    margin-bottom: var(--eventhub-spacing-md, 1rem);
}

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

/* ==========================================================================
   Leerer Zustand
   ========================================================================== */

.eventhub-favorites-page__empty {
    text-align: center;
    padding: var(--eventhub-spacing-xl, 2rem);
    max-width: 500px;
    margin: 0 auto;
}

.eventhub-favorites-page__empty-icon {
    color: var(--eventhub-color-text-muted, #999);
    margin-bottom: var(--eventhub-spacing-lg, 1.5rem);
}

.eventhub-favorites-page__empty-icon svg {
    opacity: 0.5;
}

.eventhub-favorites-page__empty h2 {
    margin-bottom: var(--eventhub-spacing-md, 1rem);
    font-size: var(--eventhub-font-size-xl, 1.5rem);
}

.eventhub-favorites-page__empty p {
    color: var(--eventhub-color-text-muted, #666);
    margin-bottom: var(--eventhub-spacing-md, 1rem);
}

/* Button zum Event-Archiv */
.eventhub-button {
    display: inline-block;
    padding: var(--eventhub-spacing-sm, 0.5rem)
        var(--eventhub-spacing-lg, 1.5rem);
    background: var(--eventhub-color-primary, #0073aa);
    color: #fff;
    text-decoration: none;
    border-radius: var(--eventhub-border-radius, 4px);
    font-weight: 500;
    transition: background var(--eventhub-transition, 0.2s ease);
    margin-top: var(--eventhub-spacing-md, 1rem);
}

.eventhub-button:hover {
    background: var(--eventhub-color-primary-dark, #005a87);
    color: #fff;
}

/* ==========================================================================
   Hinweis für vergangene Events
   ========================================================================== */

.eventhub-favorites-page__past-notice {
    margin-top: var(--eventhub-spacing-lg, 1.5rem);
    padding: var(--eventhub-spacing-md, 1rem);
    background-color: #f9f9f9; /* Explizit heller Hintergrund, nicht als Variable */
    border-left: 3px solid var(--eventhub-color-primary, #0073aa);
    border-radius: var(--eventhub-border-radius, 4px);
    color: #333; /* Explizit dunkle Textfarbe */
}

.eventhub-favorites-page__past-notice p {
    margin: 0;
    font-size: var(--eventhub-font-size-sm, 0.875rem);
    color: inherit;
}

/* ==========================================================================
   Grid Anpassungen
   ========================================================================== */

.eventhub-favorites-page__grid {
    /* Nutzt das Standard eventhub-event-grid Layout */
}

/* Animation beim Entfernen */
.eventhub-favorites-page__grid .eventhub-event-card,
.eventhub-favorites-page__grid .eventhub-card-banner {
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}
