/* ============================================
   매거진 리스트 페이지
   레퍼런스: ownist.kr/blog (클린·미니멀)
============================================ */

.magazine-page {
    background: #fff;
    color: #222;
    font-family: 'NanumSquare', 'Nanum Gothic', sans-serif;
    padding: 80px 0 120px;
    min-height: 70vh;
}

.magazine-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.magazine-header {
    text-align: center;
    margin-bottom: 60px;
}

.magazine-header h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #111;
    margin-bottom: 12px;
}

.magazine-header .lead {
    font-size: 16px;
    color: #888;
    line-height: 1.6;
}

/* 카드 그리드 */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 32px;
}

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

.magazine-card:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.magazine-card .thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f1f1;
    margin-bottom: 16px;
}

.magazine-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.magazine-card:hover .thumb img {
    transform: scale(1.04);
}

.magazine-card .thumb.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 14px;
}

.magazine-card .meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.magazine-card h2 {
    font-size: 19px;
    font-weight: 700;
    color: #111;
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.magazine-card p.summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 빈 상태 */
.magazine-empty {
    text-align: center;
    padding: 100px 0;
    color: #aaa;
    font-size: 16px;
}

/* 페이지네이션 */
.magazine-pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.magazine-pagination .pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.magazine-pagination .page-item {
    display: inline-block;
}

.magazine-pagination .page-link,
.magazine-pagination .page-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    background: #fff;
    transition: all .15s ease;
}

.magazine-pagination .page-link:hover {
    border-color: #111;
    color: #111;
}

.magazine-pagination .page-item.active .page-link,
.magazine-pagination .page-item.active span {
    background: #111;
    border-color: #111;
    color: #fff;
}

.magazine-pagination .page-item.disabled .page-link,
.magazine-pagination .page-item.disabled span {
    color: #ccc;
    cursor: not-allowed;
    background: #fafafa;
}

/* 태블릿 */
@media (max-width: 1024px) {
    .magazine-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 24px;
    }
    .magazine-header h1 { font-size: 36px; }
}
