/**
 * Broker Alternatives Page Styles
 *
 * Only loaded on pages using template-broker-alternatives.php.
 * Colorblind-safe palette: blue (#2563eb) positive, orange (#ea580c) negative.
 */

/* Breadcrumbs */
.ba-breadcrumbs {
    background: #f9fafb;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.ba-breadcrumbs__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #9ca3af;
}

.ba-breadcrumbs__item + .ba-breadcrumbs__item::before {
    content: '\203A';
    margin: 0 8px;
    color: #d1d5db;
}

.ba-breadcrumbs__item a {
    color: #6b7280;
    text-decoration: none;
}

.ba-breadcrumbs__item a:hover {
    color: #2563eb;
}

/* Hero */
.ba-hero {
    padding: 32px 0 24px;
    border-bottom: 1px solid #e5e7eb;
}

.ba-hero__heading {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 8px;
    color: #1d2327;
}

.ba-hero__subtext {
    font-size: 16px;
    color: #646970;
    margin: 0;
    line-height: 1.5;
    max-width: 540px;
}

.ba-back-link {
    display: inline-block;
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    margin-bottom: 12px;
}

.ba-back-link:hover {
    text-decoration: underline;
}

/* Cards section */
.ba-cards {
    padding: 28px 0 40px;
}

.ba-cards__grid {
    max-width: 640px;
}

/* Individual card */
.ba-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 16px;
    background: #fff;
    transition: border-color 0.15s;
}

.ba-card:hover {
    border-color: #2563eb;
}

.ba-card__logo-wrap {
    flex-shrink: 0;
}

.ba-card__logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: contain;
    background: #f6f7f7;
}

.ba-card__body {
    flex: 1;
    min-width: 0;
}

.ba-card__name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #1d2327;
}

.ba-card__trust {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px;
}

.ba-card__sp {
    font-size: 14px;
    color: #3c434a;
    margin: 0 0 14px;
    line-height: 1.5;
}

.ba-card__cta {
    display: inline-block;
    background: #cd4a3b;
    color: #fff;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1375rem;
    transition: background 0.15s;
}

.ba-card__cta:hover {
    background: #2d2d2d;
    color: #fff;
}

.ba-card__rw {
    color: #9ca3af;
    font-size: 11px;
    margin: 8px 0 0;
    line-height: 1.4;
}

.ba-card__review {
    display: inline-block;
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    margin-left: 12px;
    vertical-align: middle;
    line-height: 40px;
}

.ba-card__review:hover {
    text-decoration: underline;
}

/* Skeleton loading */
.skeleton-box {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: ba-skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes ba-skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty state */
.ba-empty p {
    color: #646970;
    font-size: 15px;
    max-width: 480px;
}

/* Compare link */
.ba-compare {
    margin-top: 24px;
}

.ba-compare a {
    color: #2563eb;
    font-size: 15px;
    text-decoration: none;
}

.ba-compare a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 480px) {
    .ba-hero {
        padding: 24px 0 20px;
    }

    .ba-hero__heading {
        font-size: 22px;
    }

    .ba-card {
        flex-direction: column;
        gap: 12px;
    }

    .ba-card__cta {
        display: block;
        text-align: center;
        width: 100%;
        border-radius: 40px;
    }

    .ba-card__review {
        display: block;
        margin-left: 0;
        margin-top: 8px;
        line-height: 1.4;
        text-align: center;
    }
}
