﻿.botc-stat-tabs {
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.botc-stat-tabcontent {
    padding-top: 14px;
}

.botc-stat-hero {
    text-align: center;
    margin: 14px 0 18px;
}

.botc-stat-hero-title {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: .2px;
}

.botc-stat-hero-sub {
    margin-top: 4px;
    color: rgba(0,0,0,.55);
    font-size: .95rem;
}

.botc-stat-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    padding: 14px 14px 8px;
    box-shadow: 0 8px 22px rgba(0,0,0,.04);
    margin-bottom: 14px;
}

.botc-stat-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.botc-stat-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.botc-stat-table thead th {
    font-size: .85rem;
    color: rgba(0,0,0,.55);
    font-weight: 700;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

/* IMPORTANT: one clean separator line (no double / crooked lines) */
.botc-stat-table tbody td {
    border-top: 0;
}

.botc-stat-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,.06);
}

    .botc-stat-table tbody tr:last-child {
        border-bottom: 0;
    }

.botc-stat-player {
    display: flex;
    align-items: center;
    gap: 10px;
}

.botc-stat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,.10);
    background: #fff;
}

.botc-stat-name {
    font-weight: 700;
}

.botc-stat-rate {
    font-variant-numeric: tabular-nums;
}

.botc-stat-card .form-label {
    font-weight: 700;
}

/* ===== Podium (Top 3) styling ===== */

:root {
    --lb-x: 32px; /* X = normal avatar size */
    --icon-x: 32px; /* base icon size */
}

.botc-podium td {
    vertical-align: middle;
}

/* Row heights (bigger only for top3) */
.botc-podium--1 td {
    padding-top: 16px;
    padding-bottom: 16px;
}

.botc-podium--2 td {
    padding-top: 14px;
    padding-bottom: 14px;
}

.botc-podium--3 td {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Podium avatar: square + colored frame */
.botc-avatar-podium {
    object-fit: cover;
    background: #fff;
    border: 2px solid rgba(0,0,0,.12);
    border-radius: 14px;
}

/* 1st = 6X, 2nd = 4X, 3rd = 2X */
.botc-podium--1 .botc-avatar-podium {
    width: calc(var(--lb-x) * 6);
    height: calc(var(--lb-x) * 6);
    border-radius: 18px;
}

.botc-podium--2 .botc-avatar-podium {
    width: calc(var(--lb-x) * 4);
    height: calc(var(--lb-x) * 4);
    border-radius: 16px;
}

.botc-podium--3 .botc-avatar-podium {
    width: calc(var(--lb-x) * 2);
    height: calc(var(--lb-x) * 2);
    border-radius: 14px;
}

.botc-avatar-podium--gold {
    border-color: rgba(212,175,55,.95);
    box-shadow: 0 8px 20px rgba(212,175,55,.16);
}

.botc-avatar-podium--silver {
    border-color: rgba(184,184,184,.95);
    box-shadow: 0 8px 20px rgba(184,184,184,.14);
}

.botc-avatar-podium--bronze {
    border-color: rgba(205,127,50,.95);
    box-shadow: 0 8px 20px rgba(205,127,50,.12);
}

/* Podium name colors + bigger name */
.botc-name-podium {
    font-weight: 900;
}

.botc-name-podium--big {
    font-size: 1.15rem;
}

.botc-name-podium--gold {
    color: #b88a13;
}

.botc-name-podium--silver {
    color: #6f6f6f;
}

.botc-name-podium--bronze {
    color: #9a5a1f;
}

/* Medal with centered number */
.botc-medal-wrap {
    display: grid;
    place-items: center;
    position: relative;
    width: 54px;
    height: 54px;
    line-height: 1;
}

.botc-podium--2 .botc-medal-wrap {
    width: 50px;
    height: 50px;
}

.botc-podium--3 .botc-medal-wrap {
    width: 46px;
    height: 46px;
}

.botc-medal-ico {
    font-size: 2.6rem;
    line-height: 1;
}

.botc-podium--2 .botc-medal-ico {
    font-size: 2.4rem;
}

.botc-podium--3 .botc-medal-ico {
    font-size: 2.2rem;
}

.botc-medal-num {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.2rem;
    color: #111;
    text-shadow: 0 1px 0 rgba(255,255,255,.65);
}

.botc-medal-wrap--gold .botc-medal-ico {
    color: #d4af37;
}

.botc-medal-wrap--silver .botc-medal-ico {
    color: #b8b8b8;
}

.botc-medal-wrap--bronze .botc-medal-ico {
    color: #cd7f32;
}

/* ===== Center numeric columns (header + body) ===== */
.botc-stat-table thead th.text-center,
.botc-stat-table tbody td.text-center {
    text-align: center;
}

/* ===== Top3 icon stats (cup/stadium/donut) ===== */

.botc-tone {
    --tone: rgba(0,0,0,.55);
}

.botc-tone--gold {
    --tone: rgba(212,175,55,.92);
}

.botc-tone--silver {
    --tone: rgba(184,184,184,.95);
}

.botc-tone--bronze {
    --tone: rgba(205,127,50,.95);
}

/* Stat container sizes: row1=3X, row2=2X, row3=1.5X */
.botc-iconstat {
    position: relative;
    display: grid;
    place-items: center;
    margin: 0 auto;
}

.botc-podium--1 .botc-iconstat {
    width: calc(var(--icon-x) * 3);
    height: calc(var(--icon-x) * 3);
}

.botc-podium--2 .botc-iconstat {
    width: calc(var(--icon-x) * 2);
    height: calc(var(--icon-x) * 2);
}

.botc-podium--3 .botc-iconstat {
    width: calc(var(--icon-x) * 1.5);
    height: calc(var(--icon-x) * 1.5);
}

/* Big icon (image) */
.botc-iconstat-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: .95;
    z-index: 1;
    filter: grayscale(1) brightness(0.25) contrast(1.2);
}

/* tint icons by podium tone */
.botc-tone--gold .botc-iconstat-img {
    filter: grayscale(1) brightness(0.25) contrast(1.2) sepia(1) saturate(6) hue-rotate(10deg);
}

.botc-tone--silver .botc-iconstat-img {
    filter: grayscale(1) brightness(0.55) contrast(1.1);
}

.botc-tone--bronze .botc-iconstat-img {
    filter: grayscale(1) brightness(0.25) contrast(1.2) sepia(1) saturate(6) hue-rotate(335deg);
}

/* Cup & Stadium are icon-only */
.botc-cup, .botc-stadium {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

    /* ===========================
   ICON BADGE (cup/stadium)
   - number stays same size
   - badge grows for 2+ digits
   =========================== */
    .botc-cup .botc-iconstat-num,
    .botc-stadium .botc-iconstat-num {
        position: absolute;
        left: 50%;
        bottom: 8%;
        transform: translateX(-50%);
        display: grid;
        place-items: center;
        z-index: 2;
        /* number stays fixed size */
        font-weight: 900;
        font-variant-numeric: tabular-nums;
        font-size: .85rem;
        line-height: 1;
        color: #111;
        text-shadow: 0 1px 0 rgba(255,255,255,.55);
        /* base circle size */
        height: 28%;
        min-width: 28%;
        border-radius: 999px;
        /* grow horizontally if 2+ digits (no font shrink) */
        padding: 0 .35em;
        background: var(--tone);
        border: 1px solid rgba(0,0,0,.10);
    }

/* row3: slightly smaller so it doesn't dominate */
.botc-podium--3 .botc-cup .botc-iconstat-num,
.botc-podium--3 .botc-stadium .botc-iconstat-num {
    height: 30%;
    min-width: 30%;
    font-size: .78rem;
    padding: 0 .30em;
}

/* ===== Donut for winrate (THIN ring) ===== */
.botc-donut {
    border-radius: 50%;
    background: conic-gradient(var(--tone) var(--p), rgba(124, 76, 170, .25) 0);
    box-shadow: 0 10px 20px rgba(0,0,0,.06);
    position: relative;
}

    /* thin ring like before */
    .botc-donut::after {
        content: "";
        position: absolute;
        inset: 14%;
        border-radius: 50%;
        background: #fff;
        border: 1px solid rgba(0,0,0,.08);
        z-index: 1;
    }

/* Donut text: NO background, 2 lines, always inside */
.botc-donut-num,
.botc-donut-pct {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    line-height: 1;
    font-weight: 900;
    color: #111;
    text-align: center;
    pointer-events: none;
    background: none;
    border: 0;
    padding: 0;
    text-shadow: 0 1px 0 rgba(255,255,255,.65);
}

.botc-donut-num {
    top: 40%;
}

.botc-donut-pct {
    top: 57%;
}

/* sizes per row: safe so it doesn't touch the ring */
.botc-podium--1 .botc-donut-num {
    font-size: .90rem;
}

.botc-podium--1 .botc-donut-pct {
    font-size: .72rem;
}

.botc-podium--2 .botc-donut-num {
    font-size: .74rem;
}

.botc-podium--2 .botc-donut-pct {
    font-size: .62rem;
}

.botc-podium--3 .botc-donut-num {
    font-size: .68rem;
}

.botc-podium--3 .botc-donut-pct {
    font-size: .58rem;
}

/* =========================================
   "Най-ефективни" (Top 3)
   - Donut (efficiency) = size of avatar (6X/4X/2X)
   - Stadium remains normal icon size (3X/2X/1.5X)
   ========================================= */

/* special class on donut only in "Най-ефективни" */
.botc-donut-eff {
    /* keeps donut thin ring + inner text rules from .botc-donut */
}

/* donut = avatar size */
.botc-podium--1 .botc-donut-eff {
    width: calc(var(--lb-x) * 6);
    height: calc(var(--lb-x) * 6);
}

.botc-podium--2 .botc-donut-eff {
    width: calc(var(--lb-x) * 4);
    height: calc(var(--lb-x) * 4);
}

.botc-podium--3 .botc-donut-eff {
    width: calc(var(--lb-x) * 2);
    height: calc(var(--lb-x) * 2);
}

/* keep inner hole proportional so text never hits the ring, even when huge */
.botc-donut-eff::after {
    inset: 14%;
}

/* scale donut text for the bigger donut (so it looks “premium”) */
.botc-podium--1 .botc-donut-eff .botc-donut-num {
    font-size: 1.15rem;
}

.botc-podium--1 .botc-donut-eff .botc-donut-pct {
    font-size: .92rem;
}

.botc-podium--2 .botc-donut-eff .botc-donut-num {
    font-size: .95rem;
}

.botc-podium--2 .botc-donut-eff .botc-donut-pct {
    font-size: .78rem;
}

.botc-podium--3 .botc-donut-eff .botc-donut-num {
    font-size: .82rem;
}

.botc-podium--3 .botc-donut-eff .botc-donut-pct {
    font-size: .68rem;
}
