/* =============================================
   BROKER MANAGER — Frontend Styles
   VirginiaUpdate.com / BrokerChooser style
   ============================================= */

/* ── Card ── */
.bm-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    transition: box-shadow .2s, transform .2s;
}
.bm-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    transform: translateY(-2px);
}
.bm-card.bm-featured {
    border: 2px solid #2271b1;
    background: linear-gradient(180deg, #f0f6fc 0%, #fff 60px);
}

/* badges */
.bm-badge-featured,
.bm-badge-editors,
.bm-badge-award {
    position: absolute;
    top: -1px; right: 16px;
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
}
.bm-badge-featured { background: #2271b1; color: #fff; }
.bm-badge-editors  { background: #7c3aed; color: #fff; top: -1px; right: 120px; }
.bm-badge-award    { background: #d97706; color: #fff; top: -1px; right: 220px; }

/* card header */
.bm-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}
.bm-card-logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 6px;
}
.bm-logo-placeholder {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, #1e3a8a, #2271b1);
    border-radius: 8px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.bm-card-info h3 {
    margin: 0 0 4px;
    font-size: 18px;
}
.bm-card-info h3 a {
    color: #1d2327;
    text-decoration: none;
}
.bm-card-info h3 a:hover { color: #2271b1; }
.bm-tagline {
    margin: 0 0 8px;
    font-size: 13px;
    color: #6b7280;
}

/* stars */
.bm-stars-display {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 18px;
}
.bm-star.full  { color: #f59e0b; }
.bm-star.half  { color: #f59e0b; opacity: .5; }
.bm-star.empty { color: #d1d5db; }
.bm-stars-display strong {
    margin-left: 6px;
    font-size: 14px;
    color: #1d2327;
}

/* meta row */
.bm-card-meta {
    display: flex;
    gap: 24px;
    padding: 12px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 14px;
}
.bm-meta-item { display: flex; flex-direction: column; }
.bm-meta-label {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.bm-meta-val {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}

/* pros list */
.bm-pros-list {
    list-style: none;
    padding: 0; margin: 0 0 16px;
}
.bm-pros-list li {
    font-size: 13px;
    color: #374151;
    padding: 3px 0;
}

/* buttons */
.bm-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.bm-btn-review,
.bm-btn-visit {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}
.bm-btn-review {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}
.bm-btn-review:hover { background: #e5e7eb; }
.bm-btn-visit {
    background: #2271b1;
    color: #fff;
}
.bm-btn-visit:hover { background: #1e5f96; }
.bm-btn-large { padding: 14px 28px; font-size: 16px; }

/* ── Broker List ── */
.bm-broker-list { position: relative; }
.bm-list-rank {
    position: absolute;
    left: -36px; top: 32px;
    background: #1d2327;
    color: #fff;
    width: 26px; height: 26px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
@media (max-width: 600px) { .bm-list-rank { display: none; } }

/* ── Rating Box ── */
.bm-rating-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}
.bm-rating-box-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 20px;
    color: #1d2327;
}
.bm-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.bm-rating-row.bm-overall {
    background: #f0f6fc;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
}
.bm-rating-label {
    width: 200px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
}
.bm-rating-bar-wrap {
    flex: 1;
    background: #f3f4f6;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}
.bm-rating-bar {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #3b82f6);
    border-radius: 4px;
    transition: width .5s ease;
}
.bm-rating-score {
    font-size: 13px;
    font-weight: 700;
    color: #2271b1;
    min-width: 40px;
    text-align: right;
}

/* ── Pros & Cons ── */
.bm-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}
.bm-pros-box, .bm-cons-box {
    padding: 20px;
    border-radius: 10px;
}
.bm-pros-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.bm-cons-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.bm-pros-box h4 { color: #15803d; margin: 0 0 12px; }
.bm-cons-box h4 { color: #b91c1c; margin: 0 0 12px; }
.bm-pros-box ul, .bm-cons-box ul {
    list-style: none;
    padding: 0; margin: 0;
}
.bm-pros-box li, .bm-cons-box li {
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,.05);
}
@media (max-width: 600px) {
    .bm-pros-cons { grid-template-columns: 1fr; }
}

/* ── Compare Table ── */
.bm-compare-wrap { overflow-x: auto; margin: 24px 0; }
.bm-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.bm-compare-table th,
.bm-compare-table td {
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    text-align: center;
}
.bm-compare-table th {
    background: #1d2327;
    color: #fff;
    font-size: 13px;
}
.bm-compare-table td:first-child {
    text-align: left;
    background: #f9fafb;
    font-weight: 600;
}
.bm-compare-table tr:nth-child(even) td { background: #f9fafb; }
.bm-compare-cta-row td { background: #f0f6fc !important; }

/* ── CTA Box ── */
.bm-cta-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f0f6fc;
    border: 2px solid #2271b1;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
    flex-wrap: wrap;
}
.bm-cta-logo { max-height: 48px; max-width: 120px; object-fit: contain; }
.bm-cta-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bm-cta-info strong { font-size: 16px; color: #1d2327; }
.bm-cta-rating, .bm-cta-dep, .bm-cta-users {
    font-size: 12px;
    color: #6b7280;
}
.bm-cta-disclaimer {
    width: 100%;
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
    text-align: center;
}

/* ── Widget ── */
.bm-widget-list { list-style: none; padding: 0; margin: 0; }
.bm-widget-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}
.bm-widget-rank {
    font-size: 11px;
    font-weight: 800;
    color: #9ca3af;
    min-width: 22px;
}
.bm-widget-logo {
    width: 32px; height: 32px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 2px;
}
.bm-widget-info { flex: 1; }
.bm-widget-info a { font-size: 13px; font-weight: 600; color: #1d2327; text-decoration: none; display: block; }
.bm-widget-info a:hover { color: #2271b1; }
.bm-widget-rating { font-size: 11px; color: #f59e0b; }
.bm-widget-visit {
    font-size: 11px;
    font-weight: 700;
    color: #2271b1;
    text-decoration: none;
    border: 1px solid #2271b1;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
.bm-widget-visit:hover { background: #2271b1; color: #fff; }
