/* ============================================================
   mod_article_grid — List Layout
   Horizontal cards: image left, content right
   ============================================================ */

.mag-list-wrapper {
    width: 100%;
}

.mag-list {
    display: flex;
    flex-direction: column;
    gap: var(--mag-gap, 24px);
}

/* --- List Card --- */
.mag-list-card {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    border-radius: var(--mag-radius, 12px);
    background: #fff;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

/* --- Image Column --- */
.mag-list-card__image-link {
    display: block;
    flex-shrink: 0;
    width: 33%;
    min-height: 180px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.mag-list-card__image-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #f1f5f9;
}

.mag-list-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.4s ease;
}

/* Image hover effects (reuse from base) */
.mag-img-hover--zoom:hover .mag-list-card__image {
    transform: scale(1.06);
}

.mag-img-hover--brighten:hover .mag-list-card__image {
    filter: brightness(1.12);
}

/* Featured badge on image */
.mag-list-card .mag-card__badge--featured {
    top: 10px;
    right: 10px;
}

/* --- Content Column --- */
.mag-list-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 28px;
    gap: 6px;
    min-width: 0;
    background: #f5f6f8;
}

/* Top row: category + meta */
.mag-list-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mag-list-card__category {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    border-radius: 5px;
    background: var(--mag-accent);
    color: #fff;
}

.mag-list-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}

.mag-list-card__author::after {
    content: '·';
    margin-left: 4px;
    color: #cbd5e1;
}

/* Title */
.mag-list-card__title {
    margin: 4px 0 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.mag-list-card__title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mag-list-card__title a:hover {
    color: var(--mag-accent);
}

/* Intro text */
.mag-list-card__intro {
    margin: 2px 0 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #64748b;
}

/* Event date (plain text, not a pill) */
.mag-list-card__event-date {
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    margin-top: 2px;
}

/* Custom fields row */
.mag-list-card__fields {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

/* Footer / read more */
.mag-list-card__footer {
    margin-top: auto;
    padding-top: 10px;
}

/* --- Card style variants (reuse from base) --- */
.mag-list-card.mag-card--elevated {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.mag-list-card.mag-card--bordered {
    box-shadow: none;
    border: 1px solid #e2e8f0;
}

.mag-list-card.mag-card--flat {
    box-shadow: none;
    background: #f8fafc;
}

/* Featured accent */
.mag-list-card--featured.mag-card--elevated {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06),
                0 4px 12px rgba(0, 0, 0, 0.06),
                inset 4px 0 0 0 var(--mag-accent);
}

.mag-list-card--featured.mag-card--bordered {
    border-left: 3px solid var(--mag-accent);
}

.mag-list-card--featured.mag-card--flat {
    border-left: 3px solid var(--mag-accent);
}

/* --- Hover effects --- */
.mag-list-card.mag-hover--lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mag-list-card.mag-hover--grow:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.mag-list-card.mag-hover--glow:hover {
    box-shadow: 0 0 0 3px rgba(var(--mag-accent-rgb), 0.25),
                0 4px 20px rgba(var(--mag-accent-rgb), 0.15);
}

/* --- Divider between cards (optional subtle separator) --- */
.mag-list-card + .mag-list-card {
    position: relative;
}

/* --- Responsive: stack on mobile --- */
@media (max-width: 768px) {
    .mag-list-card {
        flex-direction: column;
    }

    .mag-list-card__image-link {
        width: 100%;
        min-height: 0;
        aspect-ratio: 16 / 9;
        position: relative;
    }

    .mag-list-card__image-wrap {
        position: absolute;
        inset: 0;
    }

    .mag-list-card__body {
        padding: 16px 18px 18px;
    }

    .mag-list-card__title {
        font-size: 1.05rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .mag-list-card__image-link {
        width: 25%;
        min-height: 160px;
    }

    .mag-list-card__body {
        padding: 18px 22px;
    }
}

/* --- Focus / Accessibility --- */
.mag-list-card:focus-within {
    outline: 2px solid var(--mag-accent);
    outline-offset: 2px;
}

.mag-list-card__title a:focus-visible {
    outline: 2px solid var(--mag-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* --- Print --- */
@media print {
    .mag-list-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    .mag-list-card__image-link {
        width: 150px;
        min-height: 100px;
    }
}

/* --- Dark mode --- */

