/* Articles Page Styles */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

/* Hero Section */
.articles-hero {
    background: var(--navbar-gradient);
    color: var(--navbar-text);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.articles-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.articles-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out;
}

.articles-hero h1 i {
    margin-right: 15px;
    color: var(--warning-color);
}

.articles-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Main Container */
.articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: var(--secondary-bg);
    min-height: 60vh;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Article Cards */
.article-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
    animation: fadeInUp 0.6s ease-out;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-color-dark);
}

.article-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid var(--border-color);
}

.article-header h2 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
}

.article-header h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-header h2 a:hover {
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-meta i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.article-content {
    padding: 20px 25px;
}

.article-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.article-footer {
    padding: 15px 25px 25px;
    border-top: 1px solid var(--border-color);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    padding: 20px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.pagination-btn:hover {
    background: var(--btn-primary-bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color-dark);
    color: var(--btn-primary-text);
    text-decoration: none;
}

.pagination-btn.prev {
    background: var(--btn-secondary-bg);
}

.pagination-btn.prev:hover {
    background: var(--btn-secondary-bg-hover);
    box-shadow: 0 5px 15px var(--shadow-color-dark);
}

.page-info {
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0 15px;
}

/* No Articles State */
.no-articles {
    text-align: center;
    padding: 80px 20px;
}

.no-articles-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-articles-content i {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: block;
}

.no-articles-content h2 {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.no-articles-content p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .articles-hero {
        padding: 40px 15px;
    }
    
    .articles-hero h1 {
        font-size: 2.2rem;
    }
    
    .articles-hero p {
        font-size: 1rem;
    }
    
    .articles-container {
        padding: 30px 15px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-card {
        margin-bottom: 0;
    }
    
    .article-header {
        padding: 20px 20px 15px;
    }
    
    .article-header h2 {
        font-size: 1.2rem;
    }
    
    .article-content {
        padding: 15px 20px;
    }
    
    .article-footer {
        padding: 15px 20px 20px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        border-radius: 15px;
    }
    
    .pagination-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .articles-hero h1 {
        font-size: 1.8rem;
    }
    
    .article-header h2 {
        font-size: 1.1rem;
    }
    
    .article-content p {
        font-size: 0.9rem;
    }
} 