/*
 * Root Child Theme — style.css
 * /wp-content/themes/root-child/style.css
 *
 * Theme Name: Root Child
 * Template:   root
 */

/* =====================================================
   РЕЙТИНГ БУКМЕКЕРОВ
   ===================================================== */

.bm-rating {
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.bm-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    margin-bottom: 6px;
    box-sizing: border-box;
    width: 100%;
    transition: box-shadow 0.2s ease;
}

.bm-row:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}

.bm-row--first {
    border: 2px solid #f0c040;
    background: linear-gradient(to right, #fffdf0, #ffffff);
}

.bm-row--top {
    border-color: #d0d8e8;
    background: #fafbff;
}

/* --- Номер --- */
.bm-num {
    flex: 0 0 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-num__medal {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}

.bm-num__medal--gold   { background: linear-gradient(135deg, #f9d423, #e8a000); color: #fff; box-shadow: 0 2px 5px rgba(240,170,0,0.35); }
.bm-num__medal--silver { background: linear-gradient(135deg, #d0d8e8, #9aa8bf); color: #fff; }
.bm-num__medal--bronze { background: linear-gradient(135deg, #e8b08a, #c07040); color: #fff; }

.bm-num__plain {
    font-size: 13px;
    font-weight: 700;
    color: #aab4c4;
}

/* --- Название + звёзды --- */
.bm-name {
    flex: 0 0 auto;
    min-width: 80px;
    max-width: 130px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bm-name__link {
    font-size: 14px;
    font-weight: 700;
    color: #1a2233;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.bm-name__link:hover { color: #1e73be; }

.bm-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.bm-star     { width: 11px; height: 11px; fill: #dde2ec; flex-shrink: 0; }
.bm-star--on { fill: #f5b300; }

.bm-stars__score {
    font-size: 11px;
    font-weight: 700;
    color: #f5b300;
    margin-left: 2px;
}

/* --- Бонус + badge: растягивается, текст переносится --- */
.bm-info {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.bm-badge {
    display: inline-block;
    padding: 2px 6px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    border-radius: 3px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.bm-bonus {
    font-size: 13px;
    font-weight: 600;
    color: #1a2233;
    /* разрешаем перенос слов */
    word-break: break-word;
    overflow-wrap: anywhere;
    min-width: 0;
}

/* --- Кнопки --- */
.bm-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    margin-left: 4px;
}

.bm-btn {
    display: block;
    padding: 6px 11px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    line-height: 1.3;
    box-sizing: border-box;
}

.bm-btn--outline {
    border: 1.5px solid #d0d8e8;
    color: #445566;
    background: #fff;
}

.bm-btn--outline:hover {
    border-color: #1e73be;
    color: #1e73be;
}

.bm-btn--primary {
    background: #1e73be;
    color: #fff;
    border: 1.5px solid transparent;
}

.bm-btn--primary:hover { background: #155a9a; }

.bm-row--first .bm-btn--primary {
    background: linear-gradient(135deg, #27ae60, #1e8a4a);
}

.bm-row--first .bm-btn--primary:hover {
    background: linear-gradient(135deg, #1e8a4a, #166638);
}

/* =====================================================
   АДАПТИВ
   ===================================================== */

@media (max-width: 480px) {
    .bm-row {
        flex-wrap: wrap;
        padding: 10px;
        gap: 6px;
    }

    .bm-name { flex: 1 1 auto; max-width: none; }

    .bm-info {
        flex: 0 0 100%;
        order: 3;
    }

    .bm-actions {
        flex: 0 0 100%;
        order: 4;
    }

    .bm-btn { flex: 1; text-align: center; }
}
