
.magazine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}

/* Карточка обложки — альбомная ориентация */
.cover {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(245, 190, 200, 0.15),
                0 4px 10px rgba(245, 190, 200, 0.08);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 220, 225, 0.3);
    backdrop-filter: blur(2px);
    position: relative;
}

.cover:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(235, 160, 180, 0.20),
                0 8px 20px rgba(235, 160, 180, 0.12);
    border-color: #fcd5d9;
}

/* Ссылка-обёртка для изображения — альбомное соотношение 4:3 */
.cover-img-link {
    display: block;
    width: 100%;
    padding-top: 75%;
    position: relative;
    background: #fce9ec;
    overflow: hidden;
}

.cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.cover:hover .cover-img {
    transform: scale(1.03);
}

/* Контент под картинкой */
.cover-content {
    padding: 1.2rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #fefaf9 100%);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cover-category {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #d68a8f;
    font-weight: 600;
    background: #fdf3f0;
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    align-self: flex-start;
    margin-bottom: 0.2rem;
    border: 1px solid #fde2e0;
}

.cover-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #3d2e2b;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0.1rem 0 0.1rem;
    
}

.cover-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #403432;
    margin: 0.1rem 0 0.3rem;
    font-weight: 350;
    opacity: 0.85;
    flex: 1;
}

/* ========== КНОПКА ========== */
.read-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.6rem 1.6rem;
    margin-top: 0.4rem;
    align-self: flex-start;

    /* Стили кнопки */
    font-size: 0.85rem;
    font-weight: 500;
    color: #8a5a5a;
    background: #fdf3f0;
    border: 1.5px solid #f5d0d0;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(245, 190, 200, 0.10);
}

/* Стрелка внутри кнопки */
.read-link::after {
    content: '→';
    transition: transform 0.3s ease;
    display: inline-block;
    font-size: 1.1rem;
    line-height: 1;
}

/* Ховер для кнопки */
.cover:hover .read-link {
    background: #ffffff;
    border-color: #d68a8f;
    color: #b05c5c;
    box-shadow: 0 4px 16px rgba(214, 138, 143, 0.25);
    transform: translateY(-1px);
}

.cover:hover .read-link::after {
    transform: translateX(5px);
}

/* Активное состояние (клик) */
.read-link:active {
    transform: scale(0.96) !important;
    box-shadow: 0 2px 8px rgba(214, 138, 143, 0.15);
}

/* Декоративная полоса внизу карточки */
.cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fadadd, #f5c6cb, #fadadd);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 0 0 28px 28px;
}

.cover:hover::after {
    opacity: 1;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .magazine-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    .cover-content {
        padding: 1rem 1.2rem 1.2rem;
    }
    .cover-title {
        font-size: 1.2rem;
    }
    .read-link {
        padding: 0.5rem 1.4rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .magazine-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }
    .cover-img-link {
        padding-top: 70%;
    }
    .read-link {
        padding: 0.5rem 1.2rem;
        font-size: 0.75rem;
        align-self: stretch;
        justify-content: center;
    }
}

/* ========== ЗАГЛУШКИ ========== */
.cover-title:empty::before {
    content: "—";
    color: #dbb6b6;
    font-weight: 300;
}

.cover-description:empty::before {
    content: "вдохновение & гармония";
    color: #dbb6b6;
    font-weight: 300;
    font-size: 0.85rem;
    opacity: 0.7;
}