/* Marco Gala Agenda - Carré-style layout */

.mga-agenda {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Filter bar */
.mga-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.mga-filter {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 2px solid rgba(255,255,255,0.4);
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mga-filter:hover {
    border-color: #fff;
    color: #fff;
}

.mga-filter--active {
    background: #fff;
    border-color: #fff;
    color: #d73f40;
}

.mga-filter--active:hover {
    background: #fff;
    border-color: #fff;
    color: #d73f40;
}

/* Filter read more link */
.mga-filter-info {
    margin-bottom: 1.5rem;
    opacity: 1 !important;
    visibility: visible !important;
}

.mga-filter-readmore {
    margin-top: 0.5rem;
}

.mga-btn--readmore {
    display: inline-block !important;
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.6);
    text-decoration: none !important;
    transition: all 0.2s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.mga-btn--readmore:hover {
    background: #fff;
    color: #d73f40 !important;
}

/* Month title */
.mga-month-title {
    font-size: 2rem;
    font-weight: 300;
    text-transform: lowercase;
    color: #1a1a1a;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.mga-month-title span {
    font-weight: 300;
    opacity: 0.5;
}

/* Event row */
.mga-event {
    display: flex;
    align-items: stretch;
    background: #fff;
    margin-bottom: 1px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
    min-height: 120px;
}

.mga-event:hover {
    background-color: #fafafa;
}

/* Event image */
.mga-event__image {
    flex: 0 0 220px;
    width: 220px;
    min-height: 120px;
    background-color: #ddd;
    display: block;
    text-decoration: none;
    overflow: hidden;
    position: relative;
}

.mga-event__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.mga-event:hover .mga-event__image img {
    transform: scale(1.05);
}

/* Event content */
.mga-event__content {
    flex: 1;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.mga-event__date a {
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
    text-transform: lowercase;
}

.mga-event__date a:hover {
    color: #555;
}

.mga-event__title {
    margin: 0.25rem 0 0.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.mga-event__title a {
    color: #1a1a1a;
    text-decoration: none;
}

.mga-event__title a:hover {
    color: #d73f40;
}

.mga-event__subtitle a {
    font-size: 0.85rem;
    color: #999;
    text-decoration: none;
}

.mga-event__subtitle a:hover {
    color: #555;
}

/* Action buttons */
.mga-event__actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 1rem 1.25rem;
    gap: 0.5rem;
    min-width: 160px;
}

.mga-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mga-btn--primary {
    background-color: #d73f40;
    border-color: #d73f40;
    color: #fff;
}

.mga-btn--primary:hover {
    background-color: #b82e2f;
    border-color: #b82e2f;
    color: #fff;
}

.mga-btn--secondary {
    background-color: transparent;
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.mga-btn--secondary:hover {
    background-color: #1a1a1a;
    color: #fff;
}

/* No events message */
.mga-no-events {
    text-align: center;
    padding: 3rem;
    color: #888;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mga-event {
        flex-direction: column;
    }

    .mga-event__image {
        flex: none;
        width: 100%;
        height: 200px;
        position: relative;
    }

    .mga-event__content {
        padding: 1rem;
    }

    .mga-event__actions {
        flex-direction: row;
        padding: 0 1rem 1rem;
        min-width: 0;
    }

    .mga-btn {
        flex: 1;
    }

    .mga-month-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .mga-agenda {
        padding: 0 10px;
    }

    .mga-event__actions {
        flex-direction: column;
    }
}
