/**
 * Slottsgården – Custom Styles
 */

/* ─── Events Archive ─── */

.events-archive-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.events-archive-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 40px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

.event-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.event-card:hover {
    transform: translateY(-4px);
}

.event-card__image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    background: #f0f0f0;
}

.event-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-card__image--placeholder {
    width: 100%;
    height: 100%;
    background: #ddd;
}

.event-card__dates {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.event-card__date-badge {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
    line-height: 1.3;
}

.event-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 12px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.events-archive-empty {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    padding: 60px 20px;
}

/* ─── Single Event ─── */

.single-event__wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.single-event__past-notice {
    background: #fff8e1;
    border-left: 4px solid #f9a825;
    padding: 20px 24px;
    margin-bottom: 30px;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.single-event__past-notice a {
    color: #f9a825;
    font-weight: 600;
    text-decoration: underline;
}

.single-event__image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.single-event__image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-event__title {
    font-size: 2rem;
    margin-bottom: 20px;
}

.single-event__dates {
    margin-bottom: 30px;
}

.single-event__dates h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.single-event__dates ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-event__dates li {
    padding: 6px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
}

.single-event__date--past {
    color: #999;
    text-decoration: line-through;
}

.single-event__date-passed {
    font-size: 0.8rem;
    color: #999;
    margin-left: 8px;
}

.single-event__content {
    font-size: 1rem;
    line-height: 1.7;
}
