/* news-list.css - ПОЛНАЯ ВЕРСИЯ */
:root {
    --primary: #ffcc00;
    --secondary: #ff9933;
    --accent: #00cc66;
    --dark: #0f1a2e;
    --dark-light: #1c2a3a;
    --text: #e0e0e0;
    --text-light: #bbb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(15, 20, 30, 0.95) 0%, rgba(26, 32, 44, 0.9) 100%);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 0;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #ffcc00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.news-stats {
    text-align: center;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* Content Section */
.content-section {
    padding: 2rem 0;
    background: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.news-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 204, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 204, 0, 0.3);
    box-shadow: 0 10px 30px rgba(255, 204, 0, 0.1);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    line-height: 1.4;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.news-title a:hover {
    color: #ffcc00;
}

.news-excerpt {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 5px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
}

.pagination a:hover {
    background: rgba(255, 204, 0, 0.1);
    border-color: rgba(255, 204, 0, 0.5);
    transform: translateY(-2px);
}

.pagination .current {
    background: rgba(255, 204, 0, 0.2);
    border-color: rgba(255, 204, 0, 0.5);
    font-weight: 600;
}

/* No News State */
.no-news {
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 204, 0, 0.1);
}

.no-news h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffcc00;
}

.no-news a {
    color: #ffcc00;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.no-news a:hover {
    color: #ffdd33;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .pagination {
        margin: 2rem 0;
        gap: 0.5rem;
    }
    
    .pagination a, .pagination span {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .news-image {
        height: 180px;
    }
    
    .no-news {
        padding: 2rem 1rem;
        margin: 0 0.5rem;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}