/**
 * Стили для новостей
 */

/* Стили для новостей в стиле киносайтов */
.news-section {
    margin: 4rem 0;
}

.section-news {
    position: relative;
    overflow: hidden;
    background: #F7F9FA;
    padding: 5rem 0;
}

.section-news .container {
    position: relative;
    z-index: 4;
}

.section-news .section-header,
.section-news .news-grid {
    position: relative;
    z-index: 5;
}

/* Боковой текст для секции новостей */
.news-section-side-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    max-width: none;
    height: auto;
    z-index: 2; /* За карточками (карточки имеют z-index: 3) */
    pointer-events: none;
    display: none;
    visibility: hidden;
    margin-left: calc(-50vw + 50%);
}

@media (min-width: 1024px) {
    .news-section-side-text {
        display: block;
        visibility: visible;
    }
}

.news-section-text-slide {
    position: absolute;
    top: 0;
    pointer-events: none;
    max-width: 400px;
    min-width: 250px;
    opacity: 1;
    visibility: visible;
}

.news-section-text-slide[data-text-index="0"],
.news-section-text-slide[data-text-index="2"] {
    left: 2rem;
    text-align: left;
    padding-right: 1rem;
}

.news-section-text-slide[data-text-index="1"],
.news-section-text-slide[data-text-index="3"] {
    right: 2rem;
    text-align: right;
    padding-left: 1rem;
    left: auto;
}

@media (min-width: 1400px) {
    .news-section-text-slide[data-text-index="0"],
    .news-section-text-slide[data-text-index="2"] {
        left: calc((100vw - 1140px) / 2 - 400px);
    }
    
    .news-section-text-slide[data-text-index="1"],
    .news-section-text-slide[data-text-index="3"] {
        right: calc((100vw - 1140px) / 2 - 400px);
    }
}

.news-section-side-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 0.5);
}

.news-section-side-excerpt {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.4);
}

.news-filters-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e2e8f0;
    color: #64748b;
    background: white;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-block;
}

.filter-btn:hover {
    border-color: var(--color-primary-dark);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(86, 36, 208, 0.2);
}

.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(86, 36, 208, 0.3);
}

.filter-select {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.news-breadcrumbs-actions {
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.news-breadcrumbs ol li a {
    transition: color 0.2s ease;
}

.news-breadcrumbs ol li a:hover {
    color: var(--color-primary);
}

.news-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 600;
}

.share-btn:hover {
    background: #f8fafc;
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.share-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.share-btn-vk {
    border-color: #0077FF;
}

.share-btn-vk:hover {
    background: #0077FF;
    border-color: #0077FF;
}

.share-btn-vk:hover svg {
    fill: white !important;
}

.share-btn-telegram {
    border-color: #0088CC;
}

.share-btn-telegram:hover {
    background: #0088CC;
    border-color: #0088CC;
}

.share-btn-telegram:hover svg {
    fill: white !important;
}

.share-btn-twitter {
    border-color: #1DA1F2;
}

.share-btn-twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
}

.share-btn-twitter:hover svg {
    fill: white !important;
}

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

.news-card {
    display: block;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 3;
}

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

.news-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8fafc;
}

.news-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.news-card:hover .news-card-image::before {
    opacity: 1;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.news-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 3rem;
}

.news-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.news-card-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(37, 99, 235, 0.95);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-content h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    color: #1e293b;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-content p {
    margin: 0 0 1rem 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
    font-size: 0.875rem;
    margin-top: auto;
}

.news-card-meta svg {
    width: 16px;
    height: 16px;
}

.news-views {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

@media (max-width: 1023px) {
    .news-section-side-text {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .news-breadcrumbs-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .news-breadcrumbs ol {
        font-size: 0.8125rem;
    }
    
    .news-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .news-share-buttons {
        gap: 0.5rem;
    }
    
    .share-btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .news-card-image {
        height: 220px;
    }
    
    .news-filters-bar {
        gap: 0.75rem;
    }
    
    .filter-btn,
    .filter-select {
        font-size: 0.875rem;
        padding: 0.4rem 1rem;
    }
}



