.magazines-page {
    padding-top: 50px;
    padding-bottom: 80px;
}

.magazines-header {
    text-align: center;
    margin-bottom: 50px;
}

.magazines-header h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 800;
}

.magazines-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.magazines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.magazine-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f1f5f9;
}

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

.magazine-thumb {
    height: 380px;
    background: #f8fafc;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.magazine-thumb i, .magazine-thumb svg {
    font-size: 80px;
    color: #cbd5e1;
}

.magazine-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.view-btn {
    padding: 12px 24px;
    background: #2563eb;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    pointer-events: none;
}

.magazine-info {
    padding: 20px;
}

.magazine-info h3 {
    font-size: 1.25rem;
    color: #1e293b;
    margin: 0;
    font-weight: 700;
}

.no-magazines {
    text-align: center;
    padding: 80px 20px;
    background: #f8fafc;
    border-radius: 20px;
    grid-column: 1 / -1;
}

.no-magazines p {
    color: #64748b;
    font-size: 1.2rem;
}

/* Flipbook Viewer Styles */
.viewer-container {
    width: 100%;
    height: 90vh;
    background: #333;
}

.viewer-header {
    background: #1e293b;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
