/* Magazine List Page Styles */

/* Page Banner */
.magazine-list.page-banner {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6741 100%);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.magazine-list.page-banner h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* Page Contents */
.magazine-list.page-contents {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Intro */
.magazine-intro {
    text-align: center;
    margin-bottom: 50px;
}

.magazine-intro p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Magazine Grid */
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* Magazine Card */
.magazine-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.magazine-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Magazine Cover */
.magazine-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f5f5f5;
}

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

.magazine-card:hover .magazine-cover img {
    transform: scale(1.05);
}

.magazine-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.magazine-card:hover .magazine-overlay {
    opacity: 1;
}

.view-text {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 12px 32px;
    border: 2px solid #fff;
    border-radius: 30px;
    transition: background 0.3s ease, color 0.3s ease;
}

.magazine-card:hover .view-text {
    background: #fff;
    color: #333;
}

/* Magazine Info */
.magazine-info {
    padding: 20px;
}

.magazine-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.magazine-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 6px;
}

.magazine-issue {
    color: #4a6741;
    font-weight: 500;
}

.magazine-date::before {
    content: '|';
    margin-right: 8px;
    color: #ddd;
}

.magazine-pages {
    font-size: 0.85rem;
    color: #aaa;
}

/* No Magazines */
.no-magazines {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}

.no-magazines p {
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .magazine-list.page-banner {
        min-height: 150px;
    }

    .magazine-list.page-banner h1 {
        font-size: 1.8rem;
    }

    .magazine-list.page-contents {
        padding: 40px 16px;
    }

    .magazine-intro {
        margin-bottom: 30px;
    }

    .magazine-intro p {
        font-size: 1rem;
    }

    .magazine-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .magazine-info {
        padding: 12px;
    }

    .magazine-title {
        font-size: 0.95rem;
    }

    .magazine-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        font-size: 0.8rem;
    }

    .magazine-date::before {
        display: none;
    }

    .magazine-pages {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .magazine-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .magazine-card {
        border-radius: 8px;
    }

    .magazine-info {
        padding: 10px;
    }

    .magazine-title {
        font-size: 0.85rem;
        -webkit-line-clamp: 1;
    }
}
