/* PropFirmMap Score Badge Styles */

/* ── Card badge (firm index cards) ── */
.pfm-score-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6453CA 0%, #7A95F8 100%);
    box-shadow: 0 2px 8px rgba(100, 83, 202, 0.35);
    z-index: 2;
}

.pfm-score-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.pfm-score-label {
    font-size: 9px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-top: 2px;
}

/* ── Detail page badge ── */
.pfm-score-badge-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6453CA 0%, #7A95F8 100%);
    box-shadow: 0 2px 10px rgba(100, 83, 202, 0.3);
    min-width: 56px;
}

.pfm-score-value-lg {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.pfm-score-label-sm {
    font-size: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-top: 3px;
}

/* ── Score bar (used in Top Rated section) ── */
.pfm-score-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.pfm-score-bar {
    flex-grow: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    overflow: hidden;
}

.pfm-score-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #6453CA 0%, #7A95F8 100%);
    transition: width 0.6s ease;
}

.pfm-score-inline {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    min-width: 32px;
    text-align: right;
}

/* ── Top Rated card on homepage ── */
.top-rated-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-rated-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.top-rated-card .firm-logo-sm {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
}

.top-rated-card .firm-name {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.top-rated-card .firm-name:hover {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.top-rated-rank {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    min-width: 20px;
}

/* ── Responsive ── */
@media (max-width: 576px) {
    .pfm-score-badge {
        padding: 4px 8px;
    }

    .pfm-score-value {
        font-size: 15px;
    }

    .pfm-score-label {
        font-size: 8px;
    }

    .pfm-score-badge-detail {
        padding: 6px 8px;
    }

    .pfm-score-value-lg {
        font-size: 18px;
    }
}
