/* ===========================
   Articles Page Styles
   =========================== */

/* Articles header uses shared .page-hero styles from styles.css */

/* ===========================
   Hashtag Filter Section
   =========================== */

.articles-filter-section {
    background: var(--bg-secondary);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.hashtag-filter {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}


@media (max-width: 768px) {
    .hashtag-filter {
        gap: 0.75rem;
    }

    .hashtag-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

/* ===========================
   Articles Grid
   =========================== */

.articles-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    width: 100%;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
    border-color: var(--primary);
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}


.article-date {
    color: var(--text-tertiary);
    font-weight: 500;
}

.article-card .article-title {
    font-size: 1.375rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
    margin-top: 0 !important;
    display: block !important;
}

.article-card p,
.article-content p {
    font-size: 0.95rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.5 !important;
    margin-bottom: 0.5rem !important;
    flex-grow: 1 !important;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.75rem;
    color: var(--primary-hover);
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-card .article-title {
        font-size: 1.125rem !important;
    }

    .article-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .articles-section {
        padding: 2rem 0;
    }

    .article-content {
        padding: 1.25rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
