/* Articles Page Specific Styles */

.page-header {
    text-align: center;
    padding: 5rem 0 3rem;
}

.page-header h2 {
    font-size: 3rem;
    font-family: var(--font-serif);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-color-muted);
    max-width: 600px;
    margin: 0 auto;
}

.article-categories {
    margin-bottom: 3rem;
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 auto;
    max-width: 800px;
}

.category-btn {
    background: none;
    border: 2px solid var(--text-color-muted);
    color: var(--text-color);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.category-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem 0 5rem;
}

.article-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-content p {
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

.article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.1);
}

.article-category.tech {
    background-color: rgba(58, 134, 255, 0.2);
    color: #3a86ff;
}

.article-category.thoughts {
    background-color: rgba(238, 82, 83, 0.2);
    color: #ee5253;
}

.article-category.science {
    background-color: rgba(46, 213, 115, 0.2);
    color: #2ed573;
}

.article-category.life {
    background-color: rgba(255, 159, 67, 0.2);
    color: #ff9f43;
}

/* Animation for article cards */
.articles-grid .article-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation delay for cards */
.articles-grid .article-card:nth-child(1) { animation-delay: 0.1s; }
.articles-grid .article-card:nth-child(2) { animation-delay: 0.2s; }
.articles-grid .article-card:nth-child(3) { animation-delay: 0.3s; }
.articles-grid .article-card:nth-child(4) { animation-delay: 0.4s; }
.articles-grid .article-card:nth-child(5) { animation-delay: 0.5s; }
.articles-grid .article-card:nth-child(6) { animation-delay: 0.6s; }
.articles-grid .article-card:nth-child(7) { animation-delay: 0.7s; }
.articles-grid .article-card:nth-child(8) { animation-delay: 0.8s; }
.articles-grid .article-card:nth-child(9) { animation-delay: 0.9s; }

/* Responsive Design */
@media (max-width: 1024px) {
    .page-header h2 {
        font-size: 2.5rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 4rem 0 2rem;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
    
    .category-filters {
        gap: 0.8rem;
    }
    
    .category-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header h2 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .category-filters {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
        justify-content: flex-start;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
} 