/* ========================================
   Калачинск Онлайн - Страница новостей
   Page-specific styles
   ======================================== */

/* Breadcrumb */
.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.news-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.news-breadcrumb a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.news-breadcrumb .separator {
    color: var(--text-light);
    font-size: 0.8rem;
}

.news-breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* Page Container */
.news-page-container {
    margin-bottom: 3rem;
}

.news-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

/* Layout */
.news-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 24px;
    align-items: start;
}

/* Filter Section */
.news-filter-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--border-color);
    background: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
}

.news-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-card-image {
    width: 280px;
    flex-shrink: 0;
    background: var(--bg-light);
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    display: block;
}

.news-image-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 100%);
}

.news-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.news-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.news-card-title a:hover {
    color: var(--primary-color);
}

.news-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.news-read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.news-read-more:hover {
    color: var(--primary-hover);
}

.news-views {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

/* Empty State */
.news-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    color: var(--text-light);
}

/* Pagination */
.news-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--border-color);
    background: white;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Sidebar */
.news-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-afisha-block {
    width: 330px;
    height: 644px;
    background: white;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.afisha-label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    z-index: 5;
    pointer-events: none;
}

.afisha-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    z-index: 1;
}

.afisha-slide.active {
    opacity: 1;
    z-index: 2;
}

.afisha-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.afisha-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    cursor: pointer;
}

.afisha-dots {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.afisha-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.afisha-dot:hover {
    background: white;
}

.afisha-dot.active {
    background: white;
    width: 18px;
    border-radius: 3px;
}

.afisha-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #60A5FA);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.afisha-content i {
    opacity: 0.6;
}

.afisha-content p {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.afisha-content small {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        position: static;
    }
    
    .sidebar-afisha-block {
        width: 100%;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .news-page-title {
        font-size: 1.5rem;
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .news-card-image {
        width: 100%;
    }
    
    .news-card-image img,
    .news-image-placeholder {
        min-height: 200px;
    }
    
    .news-filter-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        text-align: center;
    }
    
    .sidebar-afisha-block {
        height: 300px;
    }
}