/* TORO247 - the A-Z drawer / sports menu (#sidebar) in the canvas language (TORO-SHAPES.md). */
/* shell.css places the drawer (position, transform, left); nothing here moves it. The lean is
   drawn by ::before layers and leaf buttons only: #sidebar and its rows stay straight boxes.
   `#sidebar` in every selector: style.css styles these rows under ids (#sidebar-top-leagues,
   #sidebar-frequent-list, the casino world's #sidebar-slots-cats). */

/* ---- The panel: the header's bar, a teal edge on its open side ---------------------------- */
html.toro #sidebar { background: var(--t-bar); padding: 14px 14px 28px; }
html.toro #sidebar.open { box-shadow: inset -2px 0 0 var(--t-teal), var(--shadow-drawer); }
html.toro #sidebar :is(.sidebar-section, .sb-group-live) { margin: 0 0 22px; padding: 0; border: 0; }

/* Section titles: the canvas's teal italic upper case, a size down. */
html.toro #sidebar :is(.sidebar-heading, .sb-live-heading, .sidebar-subheading) {
    padding: 0 4px 10px;
    background: none;
    font-family: var(--t-font-head);
    font-style: italic;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.1;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--t-teal);
}
html.toro #sidebar .sidebar-subheading { font-size: 13px; }
html.toro #sidebar .sidebar-subheading:not(:first-child) { padding-top: 10px; }
html.toro #sidebar .sidebar-heading::after { content: none; }   /* the casino world's hairline */

/* ---- Quick nav: a leaning tab group of icons, the current one teal ------------------------ */
html.toro #sidebar .sidebar-quicknav { position: relative; isolation: isolate; gap: 4px; margin: 0 4px 22px; padding: 5px 12px; border: 0; }
html.toro #sidebar .sq-btn { position: relative; isolation: isolate; height: 44px; border-radius: 5px; background: none; color: var(--t-text-2); }
html.toro #sidebar .sq-btn svg { width: 24px; height: 24px; }
html.toro #sidebar .sq-btn:hover { background: none; color: var(--t-teal); }
html.toro #sidebar .sq-btn.active { color: var(--t-on-teal); }

/* ---- A-Z / Popullore: the canvas's tab group, the current tab teal ------------------------ */
html.toro #sidebar .sidebar-sort { position: relative; isolation: isolate; gap: 6px; margin: 0 4px 22px; padding: 6px 12px; background: none; border: 0; }
html.toro #sidebar .sidebar-sort-btn {
    min-height: 40px;
    padding: 0 10px;
    border-radius: 5px;
    transform: var(--t-lean);
    color: var(--t-text-2);
    font-family: var(--t-font);
    font-style: italic;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
}
html.toro #sidebar .sidebar-sort-btn:hover { background: var(--bg-hover); color: var(--t-teal); }
html.toro #sidebar .sidebar-sort-btn.active { background: var(--t-teal); color: var(--t-on-teal); }
html.toro #sidebar .sidebar-sort-btn.active:hover { background: var(--t-teal-neon); }

/* The groups' and icons' leaning grounds. */
html.toro #sidebar :is(.sidebar-quicknav, .sidebar-sort)::before,
html.toro #sidebar .sq-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 10px;
    background: var(--t-card);
    transform: var(--t-lean);
    pointer-events: none;
}
html.toro #sidebar .sq-btn::before { border-radius: 5px; background: transparent; transition: background-color .15s; }
html.toro #sidebar .sq-btn:hover::before { background: var(--bg-hover); }
html.toro #sidebar .sq-btn.active::before { background: var(--t-teal); }

/* ---- The rows: the canvas's leaning rows ("Ndeshjet e sotme") on --t-card -----------------
   Every list in the drawer: live sports, all sports, popular leagues, frequent, Popular mode,
   the casino and exchange links (sports world), the slots categories (casino world), the
   sports' sub-items. The casino world's product tiles stay casino.css's. The ::before is the
   leaning ground (it also replaces the corner bands' wedges). */
html.toro :is(#sidebar:not([data-world="casino"]) .sidebar-item, #sidebar #sidebar-slots-cats .sidebar-item, #sidebar .sidebar-subitem) {
    position: relative;
    isolation: isolate;
    gap: 12px;
    box-sizing: border-box;
    width: auto;
    min-height: 44px;
    height: auto;
    margin: 0 0 6px;
    padding: 6px 14px;
    border: 0;
    border-radius: 5px;
    background: none;
    box-shadow: none;
    color: var(--t-text);
    font-family: var(--t-font);
    font-size: 15px;
    font-weight: 600;
    font-style: normal;
    text-transform: none;
    transition: color .15s;
}
html.toro :is(#sidebar:not([data-world="casino"]) .sidebar-item, #sidebar #sidebar-slots-cats .sidebar-item, #sidebar .sidebar-subitem)::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 5px;
    background: var(--t-card);
    transform: var(--t-lean);
    pointer-events: none;
    transition: background-color .15s;
}
html.toro :is(#sidebar:not([data-world="casino"]) .sidebar-item, #sidebar #sidebar-slots-cats .sidebar-item, #sidebar .sidebar-subitem):hover { background: none; color: var(--t-teal); }
html.toro :is(#sidebar:not([data-world="casino"]) .sidebar-item, #sidebar #sidebar-slots-cats .sidebar-item, #sidebar .sidebar-subitem):hover::before { background: var(--bg-hover); }
html.toro :is(#sidebar:not([data-world="casino"]) .sidebar-item, #sidebar #sidebar-slots-cats .sidebar-item, #sidebar .sidebar-subitem).active { background: none; box-shadow: none; color: var(--t-on-teal); font-weight: 700; }
html.toro :is(#sidebar:not([data-world="casino"]) .sidebar-item, #sidebar #sidebar-slots-cats .sidebar-item, #sidebar .sidebar-subitem).active::before { background: var(--t-teal); }

/* Icons: the sport pictures (white) go dark on the teal row; the drawn ones are teal. */
html.toro #sidebar :is(.sport-svg-icon, .sidebar-freq-ico) { flex: none; width: 20px; height: 20px; opacity: 1; }
html.toro #sidebar .sidebar-item.active :is(.sport-svg-icon, .sidebar-freq-ico, .slots-cat-ico) { filter: brightness(0); }
html.toro #sidebar .sidebar-item > svg { width: 20px; height: 20px; color: var(--t-teal); }
html.toro #sidebar .sidebar-item.active > svg { color: currentColor; }
html.toro #sidebar #sidebar-slots-cats { padding: 0; gap: 0; }   /* the rows' own 6px apart, as everywhere */

/* Popular leagues: the country small over the league, the flag kept. */
html.toro #sidebar .sidebar-top-league-country { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--t-muted); }
html.toro #sidebar .sidebar-top-league .sidebar-league-name { line-height: 1.2; }
html.toro #sidebar .sidebar-item.active .sidebar-top-league-country { color: inherit; opacity: .75; }

/* Counts: a teal tab badge (.t-badge), dark on the teal row. The on-air waves go: the
   "Live tani" title above says it, the count's title keeps "n live". */
html.toro #sidebar .sb-live-waves { display: none; }
html.toro #sidebar .sidebar-item :is(.sb-live-num, .sidebar-count-badge) {
    min-width: 0;
    padding: 1px 7px;
    border: 0;
    border-radius: 4px;
    background: var(--t-teal);
    color: var(--t-on-teal);
    font-family: var(--t-font);
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}
html.toro #sidebar .sidebar-item.active :is(.sb-live-num, .sidebar-count-badge) { background: var(--t-on-teal); color: var(--t-teal); }

/* ---- A sport's sub-items (LIVE, in 3 / 8 hours, today ... leagues) ------------------------ */
html.toro #sidebar #sidebar-sports-list .sidebar-item.has-submenu { padding-right: 52px; }   /* room for the caret */
html.toro #sidebar .sidebar-item-row > .sidebar-submenu-toggle {
    right: 6px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 5px;
    background: none;
    color: var(--t-muted);
}
html.toro #sidebar .sidebar-submenu-toggle svg { width: 18px; height: 18px; }
html.toro #sidebar .sidebar-item-row > .sidebar-submenu-toggle:hover { background: none; color: var(--t-teal); }
html.toro #sidebar .sidebar-item-row > .sidebar-item.active + .sidebar-submenu-toggle { color: var(--t-on-teal); }

html.toro #sidebar .sidebar-submenu { padding: 0 0 6px 18px; }
html.toro #sidebar #sidebar-sports-list .sidebar-subitem { min-height: 40px; margin: 0 0 5px; padding: 4px 14px; gap: 10px; color: var(--t-text-2); font-size: 14px; }
html.toro #sidebar #sidebar-sports-list .sidebar-subitem::before { background: rgba(var(--bg-secondary-rgb), .55); }
html.toro #sidebar .sidebar-subitem svg { order: 2; flex: none; width: 16px; height: 16px; margin-left: auto; color: var(--t-teal); }
html.toro #sidebar .sidebar-subitem .sub-icon-live circle { fill: var(--t-teal); }
html.toro #sidebar .sidebar-subitem.active svg { color: currentColor; }
html.toro #sidebar .sidebar-subitem.active .sub-icon-live circle { fill: currentColor; }

html.toro #sidebar .sidebar-loading { padding: 10px 4px; color: var(--t-muted); }

/* ---- Live now on a live match (#LM from 960px, js/sidebar-inplay.js) ----------------------
   The same pieces: a teal title, a deep search well, the canvas's tabs, leaning rows; the
   leagues as plain labels (no sport tint), the match on screen teal. */
html.toro #sidebar .sip-head { padding: 0 4px 10px; }
html.toro #sidebar .sip-title { font-family: var(--t-font-head); font-style: italic; font-weight: 800; font-size: 15px; letter-spacing: .01em; color: var(--t-teal); }
html.toro #sidebar .sip-dot { background: var(--t-teal); }
html.toro #sidebar .sip-total { font-size: 12px; color: var(--t-muted); }
html.toro #sidebar .sip-search { height: 40px; margin: 0 0 12px; border: 1px solid var(--t-raised); border-radius: 5px; background: var(--t-deep); color: var(--t-text); font-size: 14px; }
html.toro #sidebar .sip-search:focus { border-color: var(--t-teal); }
html.toro #sidebar .sip-bar { gap: 8px; margin: 0 4px 14px; }
html.toro #sidebar .sip-sort { gap: 6px; }
html.toro #sidebar :is(.sip-sort-btn, .sip-fold-btn) { min-height: 40px; border: 0; border-radius: 5px; background: var(--t-card); color: var(--t-text-2); transform: var(--t-lean); }
html.toro #sidebar .sip-fold-btn { width: 40px; }
html.toro #sidebar .sip-sort-btn { font-style: italic; font-weight: 700; font-size: 14px; text-transform: uppercase; }
html.toro #sidebar :is(.sip-sort-btn, .sip-fold-btn:not(:disabled)):hover { background: var(--bg-hover); color: var(--t-teal); }
html.toro #sidebar .sip-sort-btn.is-on { background: var(--t-teal); color: var(--t-on-teal); }

html.toro #sidebar :is(.sip-sport, .sip-row) { position: relative; isolation: isolate; margin: 0 0 6px; border: 0; border-radius: 5px; background: none; color: var(--t-text); }
html.toro #sidebar :is(.sip-sport, .sip-row)::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 5px;
    background: var(--t-card);
    transform: var(--t-lean);
    pointer-events: none;
}
html.toro #sidebar :is(.sip-sport, .sip-row):hover { background: none; }
html.toro #sidebar :is(.sip-sport, .sip-row):hover::before { background: var(--bg-hover); }
html.toro #sidebar .sip-sport { min-height: 44px; padding: 0 14px; font-style: italic; font-size: 15px; font-weight: 800; letter-spacing: .01em; }
html.toro #sidebar .sip-sport-ico { width: 20px; height: 20px; }
html.toro #sidebar .sip-sport-count { padding: 1px 7px; border-radius: 4px; background: var(--t-teal); color: var(--t-on-teal); font-size: 12px; font-weight: 700; font-style: normal; letter-spacing: 0; }
html.toro #sidebar .sip-league { min-height: 40px; margin: 0 0 4px; padding: 0 14px; border: 0; border-radius: 5px; background: none; }
html.toro #sidebar .sip-league:hover { background: var(--bg-hover); }
html.toro #sidebar .sip-league-name { font-size: 12px; color: var(--t-text-2); }
html.toro #sidebar .sip-league-count { color: var(--t-muted); }
html.toro #sidebar .sip-row.is-current { background: none; color: var(--t-on-teal); }
html.toro #sidebar .sip-row.is-current::before { background: var(--t-teal); }
html.toro #sidebar .sip-row.is-current :is(.sip-clock, .sip-cap, .sip-star) { color: inherit; }
html.toro #sidebar .sip-match { min-height: 44px; padding: 4px 0 4px 14px; font-size: 13px; }
html.toro #sidebar .sip-clock { font-style: italic; color: var(--t-teal); }
html.toro #sidebar .sip-clock.is-break { color: var(--t-muted); }
html.toro #sidebar .sip-star { flex-basis: 40px; }
html.toro #sidebar .sip-star.is-on { color: var(--t-teal); }
html.toro #sidebar :is(.sip-search, .sip-sort-btn, .sip-fold-btn, .sip-sport, .sip-league, .sip-match, .sip-star):focus-visible { outline-color: var(--t-teal-neon); }

/* ---- Focus: the canvas's ring ------------------------------------------------------------- */
html.toro #sidebar :is(.sidebar-item, .sidebar-subitem, .sq-btn, .sidebar-sort-btn, .sidebar-submenu-toggle):focus-visible {
    outline: 2px solid var(--t-teal-neon);
    outline-offset: 2px;
}
