/* Стили для списка новостей */
.news-list-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, #22009f, #000000, #d10000);
    min-height: 100vh;
}

/* Заголовок и фильтры */
.news-header {
    margin-bottom: 40px;
}

.header-content {
    text-align: center;
    margin-bottom: 30px;
}

.page-title {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.page-subtitle {
    color: #cccccc;
    font-size: 1.2rem;
    margin-bottom: 0;
}

.filters-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.filters-header {
    text-align: center;
    margin-bottom: 30px;
}

.filters-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.filters-subtitle {
    color: #cccccc;
    font-size: 1rem;
    margin: 0;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filters-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.filters-grid .filter-group {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label i {
    color: #4ecdc4;
    width: 16px;
}

.search-input,
.category-select,
.type-select,
.sort-select {
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    height: 42px;
    box-sizing: border-box;
}

.search-input:focus,
.category-select:focus,
.type-select:focus,
.sort-select:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
}

.search-input::placeholder {
    color: #aaaaaa;
}

.filter-group select option {
    background: #333333;
    color: #ffffff;
}

.filter-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.filter-btn {
    background: linear-gradient(45deg, #4ecdc4, #556270);
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: linear-gradient(45deg, #556270, #4ecdc4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.clear-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #4ecdc4;
    color: #4ecdc4;
    text-decoration: none;
}

.btn-advanced {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    border: 1px solid #4ecdc4;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-advanced:hover {
    background: rgba(78, 205, 196, 0.3);
    transform: translateY(-2px);
}

.btn-advanced.active {
    background: #4ecdc4;
    color: #ffffff;
}

/* Расширенные фильтры */
.advanced-filters {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.advanced-filters-content h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.advanced-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-control {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
}

.form-control::placeholder {
    color: #aaaaaa;
}

.filter-btn:hover,
.clear-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* Рекомендуемые новости */
.featured-section {
    margin-bottom: 50px;
}

.section-title {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.featured-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.featured-image {
    height: 200px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 20px;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.featured-category {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-date {
    color: #aaaaaa;
    font-size: 12px;
}

.featured-title {
    margin-bottom: 15px;
}

.featured-title a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.featured-title a:hover {
    color: #4ecdc4;
    text-decoration: none;
}

.featured-excerpt {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.featured-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #aaaaaa;
}

/* Основной список новостей */
.news-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.news-count {
    color: #aaaaaa;
    font-size: 14px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.news-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

/* Убираем стили для ссылки, так как теперь используем onclick */

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaaaaa;
    font-size: 2rem;
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.news-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 215, 0, 0.9);
    color: #000;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

.news-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 12px;
    color: #aaaaaa;
}

.news-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    margin-bottom: 15px;
}

.news-excerpt {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.news-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.views {
    color: #aaaaaa;
    font-size: 14px;
}

.read-more {
    color: #4ecdc4;
    font-weight: 600;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-link {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.page-link:hover {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.page-info {
    color: #cccccc;
    font-size: 14px;
    padding: 10px 15px;
}

/* Нет новостей */
.no-news {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.no-news-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-news h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.no-news p {
    color: #cccccc;
    margin-bottom: 25px;
}

/* Действия */
.news-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-admin {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
}

.btn-outline {
    background: transparent;
    color: #4ecdc4;
    border: 2px solid #4ecdc4;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: white;
}

.btn-outline:hover {
    background: #4ecdc4;
    color: white;
}

/* Адаптивность: на узких экранах фильтры переносятся */
@media (max-width: 1020px) {
    .filters-grid {
        flex-wrap: wrap;
    }
    .filters-grid .filter-group {
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .news-list-container {
        padding: 20px 15px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters-grid {
        flex-wrap: wrap;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .featured-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}
