/* Strength Compare Styles - thscore2 layout */

/* Main container */
.content.strength {
    background: #fff;
    padding: 10px 0;
    height: 365px;
}

/* Radar Chart Section */
.content.strength .radar {
    padding: 0;
    height: 100%;
}

.content.strength .radar .container {
    position: relative;
    max-width: 100%;
    padding: 0;
    margin: 0;
    height: 100%;
}

.content.strength .radar .home_score,
.content.strength .radar .guest_score {
    width: 64px;
    height: 64px;
    line-height: 64px;
    text-align: center;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.content.strength .radar .home_score {
    background: #D0471E;
    left: 40px;
}

.content.strength .radar .guest_score {
    background: #5A57F0;
    right: 40px;
}

.content.strength .radar .map {
    width: 100%;
    height: 100%;
    margin: 0;
}

/* Bar Section */
.content.strength .bar {
    padding: 10px;
}

/* Options/Tabs - thscore2 style: inline buttons */
.content.strength .bar .options {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    gap: 0;
    width: 100%;
}

.content.strength .bar .options span {
    display: contents;
}

.content.strength .bar .options li {
    flex: 1;
    padding: 5px 12px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-right: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.15s;
    white-space: nowrap;
    text-align: center;
}

.content.strength .bar .options li:first-child {
    border-radius: 3px 0 0 3px;
}

.content.strength .bar .options li:last-child {
    border-right: 1px solid #ddd;
    border-radius: 0 3px 3px 0;
}

.content.strength .bar .options li:hover {
    background: #e5e5e5;
}

.content.strength .bar .options li.on {
    background: var(--bs-primary, #3b7dd8);
    border-color: var(--bs-primary, #3b7dd8);
    color: #fff;
}

/* Compare Bar List */
.content.strength .fx-tb-a.compare {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content.strength .fx-tb-a.compare > li {
    margin-bottom: 3px;
}

/* Category headers - pill button centered */
.content.strength .fx-tb-a.compare > li.kind {
    background: #f5f5f5;
    padding: 3px 16px;
    margin: 8px auto 6px auto;
    font-weight: 600;
    color: #333;
    font-size: 13px;
    border-radius: 12px;
    display: inline-block;
    text-align: center;
    width: auto;
}

.content.strength .fx-tb-a.compare {
    text-align: center;
}

.content.strength .fx-tb-a.compare > li:not(.kind) {
    text-align: left;
}

/* Title row: [HomePercent%] [Title] [AwayPercent%] */
.content.strength .fx-tb-a.compare .fx-tb-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    padding: 0 2px;
}

.content.strength .fx-tb-a.compare .fx-tb-title.title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.content.strength .fx-tb-a.compare .fx-tb-title span {
    flex: 1;
    text-align: center;
}

.content.strength .fx-tb-a.compare .fx-tb-title span:first-child {
    text-align: left;
    flex: 0 0 auto;
}

.content.strength .fx-tb-a.compare .fx-tb-title span:last-child {
    text-align: right;
    flex: 0 0 auto;
}

/* Team colors */
.team-home-f {
    color: #D0471E !important;
    font-weight: 600;
}

.team-away-f {
    color: #5A57F0 !important;
    font-weight: 600;
}

/* Title bar: two spans side by side in .team-h1 */
.content.strength .fx-tb-a.compare .team-h1 {
    display: flex;
    height: 10px;
    overflow: hidden;
    width: 100%;
    background: transparent;
}

.content.strength .fx-tb-a.compare .team-h1 .bar_shade {
    height: 100%;
    transition: width 0.3s ease;
}

.content.strength .fx-tb-a.compare .team-h1 .home-bg.bar_shade {
    background: #D0471E;
}

.content.strength .fx-tb-a.compare .team-h1 .away-bg.bar_shade {
    background: #5A57F0;
}

/* Item row: [detail f-l] [fx-td-data home] [fx-td-data guest] [detail f-r] */
.content.strength .fx-tb-a.compare > li:not(.kind) {
    display: block;
}

/* Detail text */
.content.strength .fx-tb-a.compare .detail {
    display: inline-block;
    font-size: 13px;
    white-space: nowrap;
    width: 100px;
    vertical-align: middle;
}

.content.strength .fx-tb-a.compare .detail.f-l {
    color: #D0471E;
    text-align: left;
}

.content.strength .fx-tb-a.compare .detail.f-r {
    color: #5A57F0;
    text-align: right;
}

/* Bar containers: side by side */
.content.strength .fx-tb-a.compare .fx-td-data {
    display: inline-block;
    height: 14px;
    background: #eee;
    overflow: hidden;
    vertical-align: middle;
    width: calc(50% - 105px);
    direction: rtl;  /* Home bar grows from right to left */
}

.content.strength .fx-tb-a.compare .fx-td-data.guest {
    direction: ltr;  /* Away bar grows from left to right (normal) */
}

/* Bar shade fill */
.bar_shade {
    height: 100%;
    display: block;
    transition: width 0.3s ease;
}

.home-bg.bar_shade,
.home-bg {
    background: #D0471E;
}

.away-bg.bar_shade,
.away-bg {
    background: #5A57F0;
}

/* Survey/Tips Section */
.content.strength .survey {
    padding: 8px 10px;
    background: #fafafa;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.content.strength .survey .tips {
    font-size: 10px;
    color: #999;
}

/* Responsive */
@media (max-width: 991px) {
    .content.strength .radar .map {
        height: 180px;
    }

    .content.strength .bar .options li {
        padding: 6px 8px;
        font-size: 13px;
    }

    .content.strength .fx-tb-a.compare .detail {
        width: 85px;
        font-size: 12px;
    }

    .content.strength .fx-tb-a.compare .fx-td-data {
        width: calc(50% - 90px);
    }
}

@media (max-width: 767px) {
    .content.strength .bar .options {
        flex-wrap: wrap;
    }

    .content.strength .bar .options li {
        flex: 1 1 33.33%;
        text-align: center;
        border-radius: 0 !important;
        border-right: 1px solid #ddd !important;
        border-bottom: none;
    }

    .content.strength .bar .options li:nth-child(3n) {
        border-right: none !important;
    }

    .content.strength .bar .options li:nth-child(n+4) {
        border-top: 1px solid #ddd;
    }
}
