/* ========== СТИЛИ ДЛЯ СТРАНИЦЫ СТАТЕЙ ========== */

/* Hero */
.articles-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.articles-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.articles-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 40px;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

.hero-stat span {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

/* Статья недели */
.featured-article {
    padding: 60px 20px;
    background: white;
    position: relative;
}

.featured-label {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--dark);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: var(--shadow);
    z-index: 2;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto 0;
    background: var(--light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    align-items: center;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    min-height: 400px;
}

.featured-content {
    padding: 40px 40px 40px 0;
}

.featured-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tag-nutrition {
    background: #FFE66D;
    color: #333;
}

.tag-health {
    background: #FF6B6B;
    color: white;
}

.tag-behavior {
    background: #4ECDC4;
    color: white;
}

.tag-care {
    background: #A8E6CF;
    color: #333;
}

.tag-adaptation {
    background: #DDA0DD;
    color: white;
}

.tag-seasonal {
    background: #87CEEB;
    color: #333;
}

.featured-content h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.featured-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.meta-item {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Фильтры */
.filters-section {
    padding: 40px 20px;
    background: var(--light);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filters-wrapper {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-btn {
    padding: 12px 25px;
    border: 2px solid transparent;
    background: white;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Сетка статей */
.articles-grid-section {
    padding: 60px 20px;
    background: var(--light);
}

.articles-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.article-card-new {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    opacity: 1;
    transform: scale(1);
}

.article-card-new:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.article-card-new.large {
    grid-column: span 2;
}

.article-card-new.hidden {
    display: none;
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.article-card-new.large .card-image {
    height: 300px;
}

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

.article-card-new:hover .card-image img {
    transform: scale(1.1);
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cat-nutrition { background: #FFE66D; color: #333; }
.cat-health { background: #FF6B6B; color: white; }
.cat-behavior { background: #4ECDC4; color: white; }
.cat-care { background: #A8E6CF; color: #333; }
.cat-adaptation { background: #DDA0DD; color: white; }
.cat-seasonal { background: #87CEEB; color: #333; }

.card-body {
    padding: 25px;
}

.card-body h3 {
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-body p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.read-time {
    color: var(--gray);
    font-size: 0.9rem;
}

.likes {
    color: var(--primary);
    font-weight: 600;
}

/* Популярные теги */
.tags-section {
    padding: 80px 20px;
    background: white;
}

.tags-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--dark);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.tag-pill {
    padding: 10px 20px;
    background: var(--light);
    border-radius: 50px;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.tag-pill:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Совет дня */
.tip-section {
    padding: 60px 20px;
    background: var(--light);
}

.tip-card {
    display: flex;
    gap: 30px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--secondary) 0%, #45B7AA 100%);
    padding: 40px;
    border-radius: 20px;
    color: white;
    box-shadow: var(--shadow-hover);
}

.tip-icon {
    font-size: 4rem;
    min-width: 80px;
    text-align: center;
}

.tip-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.tip-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .article-card-new.large {
        grid-column: span 1;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-image img {
        min-height: 300px;
    }

    .featured-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .articles-masonry {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .articles-hero h1 {
        font-size: 2rem;
    }

    .featured-label {
        position: static;
        display: inline-block;
        margin-bottom: 20px;
        transform: none;
    }

    .tip-card {
        flex-direction: column;
        text-align: center;
    }

    .filters-wrapper {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card-new {
    animation: fadeInUp 0.6s ease forwards;
}

.article-card-new:nth-child(2) { animation-delay: 0.1s; }
.article-card-new:nth-child(3) { animation-delay: 0.2s; }
.article-card-new:nth-child(4) { animation-delay: 0.3s; }
.article-card-new:nth-child(5) { animation-delay: 0.4s; }
.article-card-new:nth-child(6) { animation-delay: 0.5s; }