/* MPA Events */

/* Grid */
.mpa-events-grid {
    display: grid;
    gap: 20px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

.mpa-events-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Card (vertikal) */
.mpa-event-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mpa-event-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Featured image */
.mpa-event-image {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #f3f4f6;
    overflow: hidden;
}

.mpa-event-image img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover;
    display: block;
}

/* Body */
.mpa-event-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.mpa-event-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

/* Date badge (pill) */
.mpa-event-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #4665a3;
    background: #eef2fa;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.mpa-event-date-badge svg {
    flex-shrink: 0;
}

/* Butik badges */
.mpa-event-butiks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    align-items: flex-start;
}

.mpa-event-butik-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #4665a3;
    background: #eef2fa;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.mpa-event-butik-badge svg {
    flex-shrink: 0;
}

/* Info */
.mpa-event-info {
    flex: 1;
    margin-bottom: 16px;
}

.mpa-event-title {
    font-size: 18px !important;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
}

.mpa-event-excerpt {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* CTA */
.mpa-event-cta {
    margin-top: auto;
}

.mpa-event-btn {
    display: inline-block;
    background: #4665a3;
    color: #fff !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.mpa-event-btn:hover {
    background: #374f85;
    color: #fff !important;
}

/* No events */
.mpa-events-none {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #6b7280;
    text-align: center;
    padding: 40px 0;
}

/* Archive wrapper */
.mpa-events-archive {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* Archive title */
.mpa-events-archive-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 24px 0;
    color: #111827;
}

/* Filter chips */
.mpa-events-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.mpa-filter-chip {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #4665a3;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.mpa-filter-chip:hover {
    border-color: #4665a3;
    color: #4665a3;
}

.mpa-filter-chip.is-active {
    background: #4665a3;
    border-color: #4665a3;
    color: #fff;
}

/* Pagination */
.mpa-events-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.mpa-pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #111827 !important;
    background: #fff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.15s ease;
}

.mpa-pagination-link:hover {
    border-color: #4665a3;
    color: #4665a3 !important;
}

.mpa-pagination-link.is-active {
    background: #4665a3;
    border-color: #4665a3;
    color: #fff !important;
}

/* Single template */
.mpa-single-event {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #111827;
}

.mpa-single-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #4665a3;
    text-decoration: none;
    margin-bottom: 32px;
}

.mpa-single-back:hover {
    color: #374f85;
}

.mpa-single-header {
    margin-bottom: 32px;
}

.mpa-single-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #4665a3;
    background: #eef2fa;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
    margin-bottom: 16px;
}

.mpa-single-date-badge svg {
    flex-shrink: 0;
}

.mpa-single-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 8px 0;
    color: #111827;
}

.mpa-single-thumbnail {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
}

.mpa-single-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 400px;
}

/* Details grid */
.mpa-single-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.mpa-single-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mpa-single-detail-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.mpa-single-detail-value {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

/* Kommende datoer */
.mpa-single-upcoming {
    margin-bottom: 32px;
}

.mpa-single-upcoming-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 12px;
}

.mpa-single-upcoming-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mpa-single-upcoming-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #111827 !important;
    text-decoration: none;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.mpa-single-upcoming-link:hover {
    border-color: #4665a3;
    color: #4665a3 !important;
}

.mpa-single-upcoming-link svg {
    color: #4665a3;
    flex-shrink: 0;
}

/* Content */
.mpa-single-content {
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
}

.mpa-single-content p {
    margin: 0 0 16px 0;
}

/* Responsive */
@media (max-width: 900px) {
    .mpa-events-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mpa-single-title {
        font-size: 24px;
    }

    .mpa-events-archive-title {
        font-size: 24px;
    }

    .mpa-single-details {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .mpa-event-btn {
        display: block;
        text-align: center;
        width: 100%;
    }
}

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