/* ===== EDITORIAL BROWSE PAGE STYLES ===== */
/* Used by /browse/{slug} pages with rich editorial content */

.editorial-browse-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ── Hero Section ──────────────────────────────────────── */
.category-hero {
    margin-bottom: 2.5rem;
}

.category-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: #fff;
}

.category-hero .lead {
    font-size: 1.15rem;
    color: #ccc;
    max-width: 820px;
    line-height: 1.7;
}

/* ── Intro & Subcategory Blocks ────────────────────────── */
.category-intro,
.subcategory-block {
    margin-bottom: 3rem;
}

.category-intro h2,
.subcategory-block h2 {
    font-size: 1.6rem;
    font-weight: 700;
    border-left: 4px solid #22c55e;
    padding-left: 0.75rem;
    margin-bottom: 1.25rem;
    color: #fff;
}

.category-intro p,
.subcategory-block > p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

/* ── Stat Bar ──────────────────────────────────────────── */
.stat-bar {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: #111;
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    margin: 1rem 0 2rem;
}

.stat-bar .stat {
    text-align: center;
    min-width: 100px;
}

.stat-bar .stat .num {
    font-size: 1.4rem;
    font-weight: 800;
    color: #22c55e;
}

.stat-bar .stat .label {
    font-size: 0.72rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Provider Card ─────────────────────────────────────── */
.provider-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.15s ease;
}

.provider-card:hover {
    border-color: #333;
}

.provider-card.highlight-partner {
    border-color: #22c55e;
    background: #0f1f14;
}

.provider-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.provider-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
}

.provider-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.provider-header h3 a {
    color: #22c55e;
    text-decoration: none;
}

.provider-header h3 a:hover {
    text-decoration: underline;
}

.provider-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0 0.4rem;
    color: #a3e635;
}

.provider-card p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.provider-card ul {
    padding-left: 1.25rem;
    color: #bbb;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.provider-card ul li {
    margin-bottom: 0.25rem;
}

.provider-card ul li strong {
    color: #e5e5e5;
}

/* ── Tags ──────────────────────────────────────────────── */
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.tag {
    background: #1f2d1f;
    color: #86efac;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid #22c55e44;
}

/* ── CTA Box ───────────────────────────────────────────── */
.cta-box {
    background: linear-gradient(135deg, #0f2a14, #1a3a1f);
    border: 1px solid #22c55e;
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin-top: 2rem;
}

.cta-box h3 {
    color: #86efac;
    margin-bottom: 0.5rem;
}

.cta-box p {
    color: #bbb;
    margin-bottom: 0;
}

/* ── FAQ Block ─────────────────────────────────────────── */
.faq-block {
    margin-top: 3rem;
}

.faq-block h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #fff;
    border-left: 4px solid #22c55e;
    padding-left: 0.75rem;
}

.faq-item {
    border-bottom: 1px solid #2a2a2a;
    padding: 1rem 0;
}

.faq-item h4 {
    color: #e5e5e5;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.faq-item p {
    color: #aaa;
    line-height: 1.7;
    margin: 0;
}

/* ── Buyer's Guide Tables ──────────────────────────────── */
.editorial-browse-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
}

.editorial-browse-page th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: #1a1a1a;
    color: #b3b3b3;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #2a2a2a;
}

.editorial-browse-page td {
    padding: 0.65rem 1rem;
    color: #ccc;
    border-bottom: 1px solid #1e1e1e;
    font-size: 0.9rem;
}

.editorial-browse-page tr:hover td {
    background: #1a1a1a;
}

/* ── Trends List ───────────────────────────────────────── */
.editorial-browse-page ol {
    padding-left: 1.25rem;
    color: #ccc;
    line-height: 1.8;
}

.editorial-browse-page ol li {
    margin-bottom: 0.75rem;
}

.editorial-browse-page ol li strong {
    color: #e5e5e5;
}

/* ── Disclaimer ────────────────────────────────────────── */
.editorial-browse-page > p:last-child em,
.editorial-browse-page > p:last-of-type em {
    color: #666;
    font-size: 0.8rem;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    .category-hero h1 {
        font-size: 1.6rem;
    }

    .category-hero .lead {
        font-size: 1rem;
    }

    .stat-bar {
        gap: 1rem;
        padding: 0.75rem;
    }

    .stat-bar .stat {
        min-width: 80px;
    }

    .stat-bar .stat .num {
        font-size: 1.1rem;
    }

    .provider-card {
        padding: 1.25rem;
    }

    .provider-header {
        flex-wrap: wrap;
    }

    .provider-header h3 {
        font-size: 1.05rem;
    }

    .subcategory-block h2 {
        font-size: 1.3rem;
    }

    .editorial-browse-page table {
        font-size: 0.8rem;
    }

    .editorial-browse-page th,
    .editorial-browse-page td {
        padding: 0.5rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .category-hero h1 {
        font-size: 1.35rem;
    }

    .stat-bar {
        flex-direction: column;
        align-items: center;
    }

    .stat-bar .stat {
        min-width: unset;
        width: 100%;
    }

    .provider-logo {
        width: 40px;
        height: 40px;
    }
}
