/* ==========================================================================
   Oscar Studio — blog index page styles
   Shared layout (header, footer, buttons, pill, .page-hero, .section,
   .cta-band) comes from the global rssite.css.
   ========================================================================== */

/* Filters
   ------------------------------------------------------------------------ */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding-bottom: 56px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 56px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--line);
    color: var(--text-2);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}

.filter-chip:hover {
    border-color: var(--navy-800);
}

.filter-chip.active {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: #fff;
}

/* Featured post
   ------------------------------------------------------------------------ */
.featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 56px;
    margin-bottom: 56px;
}

.featured-cover {
    height: 320px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .85);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 20px;
    text-align: center;
    padding: 0 24px;
}

.featured-tag {
    display: inline-flex;
    background: var(--surface);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}

.featured h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.2;
}

.featured p {
    color: var(--text-2);
    font-size: 15.5px;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--text-3);
}

.post-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-3);
}

/* Post grid
   ------------------------------------------------------------------------ */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.post-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(11, 42, 74, .08);
    border-color: var(--blue-500);
}

.post-cover {
    height: 170px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-size: 13px;
    text-align: center;
    padding: 0 16px;
}

.post-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.post-tag {
    display: inline-flex;
    width: fit-content;
    background: var(--surface);
    color: var(--text-2);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
}

.post-card h3 {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.35;
}

.post-excerpt {
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.6;
    flex: 1;
}

.empty-state {
    display: none;
    text-align: center;
    padding: 60px 0;
    color: var(--text-2);
    font-size: 15px;
}

.empty-state.visible {
    display: block;
}

/* Newsletter
   ------------------------------------------------------------------------ */
.newsletter {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 48px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 72px;
}

.newsletter h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.newsletter p {
    font-size: 14px;
    color: var(--text-2);
    max-width: 380px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.newsletter-form input {
    border: 1.5px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 12px 18px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    width: 230px;
    background: #fff;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--blue-500);
}

/* Override global .cta-band top margin to match blog rhythm */
.template-blogindexpage .cta-band {
    margin-top: 72px;
}

/* Responsive
   ------------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .featured {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .featured-cover {
        height: 220px;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .newsletter {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 28px;
    }

    .newsletter-form {
        width: 100%;
    }

    .newsletter-form input {
        flex: 1;
        width: auto;
    }
}

@media (max-width: 560px) {
    .filters {
        gap: 8px;
    }

    .filter-chip {
        font-size: 13px;
        padding: 8px 14px;
    }

    .newsletter-form {
        flex-direction: column;
    }
}
