/* ========================================
   NEXTSET - ARTICLES LISTING PAGE
   ======================================== */

.articles-page {
    width: 100%;
    min-height: 70vh;
    overflow: hidden;
}

/* ========================================
   HERO SECTION
   ======================================== */
.articles-hero {
    background: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-lightest);
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: #666;
    line-height: 1.6;
}

/* ========================================
   ARTICLES SECTION CONTAINER
   ======================================== */
.articles-section {
    padding: 4rem 0;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========================================
   CATEGORY FILTER
   ======================================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.filter-group label {
    font-size: var(--fs-tiny);
    font-weight: 500;
    color: var(--gray);
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: var(--fs-small);
    font-family: inherit;
    color: var(--black);
    cursor: pointer;
    min-width: 160px;
    transition: border-color var(--transition-base);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ========================================
   ARTICLES GRID LAYOUT
   ======================================== */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.article-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 8px var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--border);
    box-shadow: 0 8px 25px var(--shadow-lg);
}

/* Article Image */
.article-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
    overflow: hidden;
    background-color: var(--border-light);
}

.article-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--border) 100%);
    font-size: 4rem;
}

/* Category Badge */
.category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--fs-tiny);
    font-weight: 600;
    text-transform: capitalize;
    z-index: 1;
    box-shadow: 0 2px 8px var(--shadow-md);
}

/* Article Content */
.article-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-title a {
    color: var(--black);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.article-excerpt {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

/* Article Meta - Mobile First */
.article-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    font-size: var(--fs-small);
}

.meta-left,
.meta-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.author,
.date {
    color: var(--gray);
}

.separator {
    color: var(--gray-lighter);
}

.likes,
.views {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gray);
}

.likes .icon-small,
.views .icon-small {
    margin-top: -1px;
}

.heart,
.eye {
    font-size: 1.1rem;
}

/* Read More Button - extends btn-primary from general.css */
a.read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 1.75rem;
    background: var(--primary);
    color: var(--white) !important;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    align-self: flex-start;
    border: 2px solid transparent;
}

a.read-more:hover {
    background: var(--secondary);
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* No Articles */
.no-articles {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
    font-size: var(--fs-h3);
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Extra Small Mobile (< 480px) */
@media screen and (max-width: 479px) {
    .articles-hero {
        padding: 3rem 0.75rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.95rem;
    }
}

/* Mobile (480px - 768px) */
@media screen and (min-width: 480px) and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* Tablet (769px+) */
@media screen and (min-width: 769px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .articles-hero {
        padding: 5rem 2rem;
    }

    /* Desktop layout for meta */
    .article-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
    }
}

/* Desktop (1025px+) */
@media screen and (min-width: 1025px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }

    .articles-section {
        padding: 5rem 0;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}
