/* Best Category Page Styles */

/* Navigation - Ensure consistent with other pages */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--background-white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 40px;
    width: auto;
}

.tagline {
    margin-left: 15px;
    padding-left: 15px;
    border-left: 2px solid var(--primary-light);
    color: var(--text-light);
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Mobile hamburger menu override - REQUIRED per docs/solutions */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    nav.nav-open .nav-links {
        display: flex;
    }
}

/* Page Header */
.best-category-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 1rem;
    scroll-margin-top: calc(var(--nav-height, 84px) + 1rem);
}

.best-category-header h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--neutral-900);
    margin-bottom: 0.75rem;
}

.best-category-intro {
    font-size: 1.1rem;
    color: var(--neutral-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.best-category-disclaimer {
    font-size: 0.85rem;
    color: var(--neutral-400);
    line-height: 1.5;
    border-left: 3px solid var(--neutral-200);
    padding-left: 1rem;
    margin: 0;
}

/* Ranked Card List */
.best-category-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 1.5rem 2rem;
}

.ranked-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: none;
}

.ranked-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.ranked-card:hover {
    box-shadow: var(--shadow-md);
}

.card-rank {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    min-width: 2.5rem;
    text-align: center;
    padding-top: 0.2rem;
}

.card-details {
    flex: 1;
    min-width: 0;
}

.card-name {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin: 0 0 0.5rem 0;
}

.card-rate-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.rate-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.cash-equiv {
    display: inline-block;
    background: var(--accent-warning);
    color: var(--neutral-800);
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.portal-tag {
    display: inline-block;
    background: var(--neutral-200);
    color: var(--neutral-600);
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.annual-fee {
    color: var(--neutral-500);
    font-size: 0.9rem;
}

.card-review {
    color: var(--neutral-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
}

.caveat.point-value {
    display: inline;
    color: var(--accent-warning);
    font-weight: 500;
}

.apply-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.apply-link:hover {
    border-bottom-color: var(--primary-color);
}

.apply-link i {
    margin-left: 0.3rem;
    font-size: 0.75rem;
}

/* How We Rank */
.how-we-rank {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    scroll-margin-top: calc(var(--nav-height, 84px) + 1rem);
}

.how-we-rank h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--neutral-800);
    margin-bottom: 0.75rem;
}

.how-we-rank p {
    color: var(--neutral-600);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.how-we-rank a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.how-we-rank a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.best-category-faq {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    scroll-margin-top: calc(var(--nav-height, 84px) + 1rem);
}

.best-category-faq h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--neutral-800);
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin: 0 0 0.4rem 0;
}

.faq-item p {
    color: var(--neutral-600);
    line-height: 1.7;
    margin: 0;
}

/* CTA Section */
.best-category-cta {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.best-category-cta h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--neutral-800);
    margin-bottom: 0.75rem;
}

.best-category-cta p {
    color: var(--neutral-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.best-category-cta .cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.85rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background 0.2s;
    min-height: 44px;
    min-width: 44px;
}

.best-category-cta .cta-button:hover {
    background: var(--primary-dark);
}

/* Related Categories */
.related-categories {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.related-categories h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--neutral-800);
    margin-bottom: 1rem;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.related-link {
    display: inline-block;
    background: var(--background-white);
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--neutral-200);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.related-link:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .best-category-header h1 {
        font-size: 1.6rem;
    }

    .ranked-card {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.25rem;
    }

    .card-rank {
        font-size: 1.2rem;
        text-align: left;
        min-width: auto;
    }

    .card-rate-info {
        gap: 0.4rem;
    }

    .rate-badge,
    .cash-equiv,
    .portal-tag {
        font-size: 0.8rem;
    }

    .related-links {
        flex-direction: column;
    }

    .related-link {
        width: 100%;
        justify-content: center;
    }
}
