/* ============================================================================
   magazine-pro.css — 러너온 매거진 (2026-05-27)

   참고: Tracksmith Journal, On Stories, Nike Run Club journal
   ============================================================================ */

.mz { color: var(--ro-text); }
.mz__container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
}

/* ── 헤더 ───────────────────────────────────────────────────────────── */
.mz__header {
    padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 56px);
    background: linear-gradient(180deg, var(--ro-bg) 0%, var(--ro-surface) 100%);
    border-bottom: 1px solid var(--ro-border);
}
.mz__eyebrow {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--ro-primary-50, rgba(34,197,94,0.10));
    color: var(--ro-primary-700);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.mz__title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin: 0 0 16px;
    color: var(--ro-text);
}
.mz__lede {
    font-size: clamp(15px, 1.6vw, 18px);
    line-height: 1.65;
    color: var(--ro-text-sub);
    max-width: 640px;
    margin: 0;
}

/* ── 카테고리 허브 ──────────────────────────────────────────────────── */
.mz__hubs {
    padding: clamp(36px, 5vw, 56px) 0 clamp(36px, 5vw, 56px);
    background: var(--ro-surface);
    border-bottom: 1px solid var(--ro-border);
}
.mz__hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 720px) {
    .mz__hub-grid { grid-template-columns: repeat(3, 1fr); }
}

.mz-hub {
    position: relative;
    display: block;
    padding: 28px 26px 28px;
    background: var(--ro-bg);
    border: 1px solid var(--ro-border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--ro-text);
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 240ms;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.mz-hub::after {
    content: '';
    position: absolute;
    inset: -50% -20% auto auto;
    width: 220px; height: 220px;
    border-radius: 50%;
    opacity: 0.10;
    transition: opacity 240ms, transform 240ms;
    pointer-events: none;
}
.mz-hub--primary::after { background: var(--ro-primary-500); }
.mz-hub--accent::after  { background: var(--ro-accent-500,  #6366f1); }
.mz-hub--success::after { background: var(--ro-success-500, #10b981); }

.mz-hub:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
}
.mz-hub:hover::after { opacity: 0.16; transform: scale(1.08); }
.mz-hub.is-active {
    border-color: var(--ro-text);
    box-shadow: 0 0 0 1px var(--ro-text);
}

.mz-hub__tagline {
    font-size: 12px;
    font-weight: 700;
    color: var(--ro-text-sub);
    letter-spacing: 0.02em;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.mz-hub__name {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 10px;
    color: var(--ro-text);
}
.mz-hub__desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ro-text-sub);
    margin: 0;
    flex: 1;
}
.mz-hub__arrow {
    position: absolute;
    right: 22px;
    bottom: 22px;
    font-size: 22px;
    font-weight: 900;
    color: var(--ro-text);
    transition: transform 240ms;
}
.mz-hub:hover .mz-hub__arrow { transform: translateX(4px); }

/* ── 글 목록 ────────────────────────────────────────────────────────── */
.mz__list { padding: clamp(40px, 6vw, 64px) 0 80px; }

.mz__list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ro-border);
}
.mz__list-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ro-text);
}
.mz__list-count {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--ro-bg);
    color: var(--ro-text-sub);
    border: 1px solid var(--ro-border);
}

.mz__filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mz__chip {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--ro-border);
    background: var(--ro-bg);
    color: var(--ro-text-sub);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 160ms;
}
.mz__chip:hover { color: var(--ro-text); border-color: var(--ro-text-sub); }
.mz__chip.is-active {
    background: var(--ro-text);
    color: var(--ro-surface);
    border-color: var(--ro-text);
}

/* 카드 그리드 — Tracksmith 식 큰 커버 */
.mz__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(18px, 2vw, 28px);
}
@media (min-width: 600px) {
    .mz__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
    .mz__grid { grid-template-columns: repeat(3, 1fr); }
}

.mz-card {
    display: block;
    background: var(--ro-surface);
    border: 1px solid var(--ro-border);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ro-text);
    transition: transform 240ms, box-shadow 240ms;
}
.mz-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}
.mz-card__cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ro-bg);
}
.mz-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 320ms;
}
.mz-card:hover .mz-card__cover img { transform: scale(1.04); }
.mz-card__cover--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ro-primary-50, rgba(34,197,94,0.10)), var(--ro-bg));
    color: var(--ro-primary-700);
    font-weight: 800;
    letter-spacing: -0.01em;
    font-size: 18px;
}
.mz-card__body { padding: 18px 18px 20px; }
.mz-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 11.5px;
    color: var(--ro-text-sub);
}
.mz-card__cat {
    font-weight: 800;
    color: var(--ro-primary-700);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.mz-card__title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: var(--ro-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mz-card__summary {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ro-text-sub);
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mz-card__foot {
    display: flex;
    gap: 6px;
    font-size: 12px;
    color: var(--ro-text-sub);
}

/* 빈 상태 */
.mz__empty {
    text-align: center;
    padding: 80px 20px;
    border: 1px dashed var(--ro-border);
    border-radius: 18px;
    background: var(--ro-surface);
}
.mz__empty h3 { font-size: 18px; margin: 0 0 6px; color: var(--ro-text); font-weight: 800; }
.mz__empty p  { font-size: 13.5px; color: var(--ro-text-sub); margin: 0; }

/* 페이지네이션 */
.mz__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
    font-size: 13px;
    color: var(--ro-text-sub);
}
.mz__pagination a {
    color: var(--ro-text);
    padding: 8px 16px;
    border: 1px solid var(--ro-border);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: border-color 160ms;
}
.mz__pagination a:hover { border-color: var(--ro-text-sub); }

/* 다크모드 */
[data-theme="dark"] .mz-card,
html[data-theme="dark"] .mz-card { background: var(--ro-surface); }
[data-theme="dark"] .mz-hub::after,
html[data-theme="dark"] .mz-hub::after { opacity: 0.18; }
[data-theme="dark"] .mz-hub:hover::after,
html[data-theme="dark"] .mz-hub:hover::after { opacity: 0.28; }
