/*--------------------------------------------------------------
Events Page Styles
--------------------------------------------------------------*/

/* Calendar */
.events-calendar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 3rem;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.calendar-nav {
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.calendar-nav:hover {
    background: #e8554e;
    color: #fff;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.weekday {
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: #666;
    padding: 0.5rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.875rem;
    color: #333;
    transition: all 0.2s ease;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.past {
    color: #ccc;
}

.calendar-day.today {
    background: #f0f0f0;
    font-weight: bold;
}

.calendar-day.has-event {
    background: #e8554e;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.calendar-day.has-event:hover {
    background: #d04440;
    transform: scale(1.1);
}

/* Category colors for calendar */
.calendar-day.category-weinlese {
    background: #8b5cf6;
}

.calendar-day.category-weinprobe {
    background: #722f37;
}

.calendar-day.category-workshop {
    background: #059669;
}

.calendar-day.category-versammlung {
    background: #2563eb;
}

.calendar-day.category-fest {
    background: #f59e0b;
}

/* Events List */
.events-list {
    display: grid;
    gap: 1.5rem;
}

.event-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #e8554e;
}

.event-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.event-card.highlight {
    animation: pulse 0.5s ease-in-out 3;
    border-left-color: #f59e0b;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    50% {
        box-shadow: 0 4px 20px rgba(232, 85, 78, 0.4);
    }
}

/* Category border colors */
.event-card[data-category="weinlese"] {
    border-left-color: #8b5cf6;
}

.event-card[data-category="weinprobe"] {
    border-left-color: #722f37;
}

.event-card[data-category="workshop"] {
    border-left-color: #059669;
}

.event-card[data-category="versammlung"] {
    border-left-color: #2563eb;
}

.event-card[data-category="fest"] {
    border-left-color: #f59e0b;
}

.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #e8554e;
    color: #fff;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
}

.event-date-badge .day {
    font-size: 1.75rem;
    font-weight: bold;
    line-height: 1;
}

.event-date-badge .month {
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.event-date-badge .year {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Date badge colors by category */
.event-card[data-category="weinlese"] .event-date-badge {
    background: #8b5cf6;
}

.event-card[data-category="weinprobe"] .event-date-badge {
    background: #722f37;
}

.event-card[data-category="workshop"] .event-date-badge {
    background: #059669;
}

.event-card[data-category="versammlung"] .event-date-badge {
    background: #2563eb;
}

.event-card[data-category="fest"] .event-date-badge {
    background: #f59e0b;
}

.event-details {
    flex: 1;
}

.event-details h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    color: #333;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.event-meta p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-meta i {
    color: #e8554e;
}

.event-details .description {
    color: #555;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.category-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: #f0f0f0;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-tag.category-weinlese {
    background: #ede9fe;
    color: #7c3aed;
}

.category-tag.category-weinprobe {
    background: #fce7f3;
    color: #722f37;
}

.category-tag.category-workshop {
    background: #d1fae5;
    color: #047857;
}

.category-tag.category-versammlung {
    background: #dbeafe;
    color: #1d4ed8;
}

.category-tag.category-fest {
    background: #fef3c7;
    color: #b45309;
}

.no-events {
    text-align: center;
    padding: 3rem;
    background: #f9fafb;
    border-radius: 8px;
    color: #666;
}

/* Seats Information */
.event-details .seats {
    margin: 0 0 1rem;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.event-details .seats i {
    color: #e8554e;
}

.seats-status {
    font-weight: 600;
    margin-left: 0.25rem;
}

.seats-status.seats-full {
    color: #dc2626;
}

.seats-status.seats-limited {
    color: #f59e0b;
}

.seats-status.seats-available {
    color: #059669;
}

/* Responsive */
@media (max-width: 640px) {
    .event-card {
        flex-direction: column;
        gap: 1rem;
    }

    .event-date-badge {
        flex-direction: row;
        gap: 0.5rem;
        min-width: auto;
        padding: 0.75rem 1rem;
    }

    .event-date-badge .day {
        font-size: 1.25rem;
    }

    .event-date-badge .month {
        margin-top: 0;
    }

    .event-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .calendar-day {
        font-size: 0.75rem;
    }
}

