/**
 * OddsEkspert V2 - League Sidebar Styles
 *
 * Exact visual recreation of legacy oe-league-sidebar styles
 * using BEM naming convention with oev2- prefix
 */

/* ===========================================
   LEAGUE SIDEBAR
   =========================================== */

.oev2-league-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: sticky;
    top: 20px;
}

.oev2-league-sidebar__title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.oev2-league-sidebar__empty {
    color: #666;
    font-size: 14px;
}

/* ===========================================
   LEAGUE LIST
   =========================================== */

.oev2-league-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.oev2-league-sidebar__country-header {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 15px 0 8px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.oev2-league-sidebar__country-header:first-child {
    margin-top: 0;
}

.oev2-league-sidebar__country-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.oev2-league-sidebar__item {
    margin: 0;
}

.oev2-league-sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    text-decoration: none;
    color: #333;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.oev2-league-sidebar__link:hover {
    background: #f5f5f5;
}

.oev2-league-sidebar__item--active .oev2-league-sidebar__link {
    background: #007bff;
    color: #fff;
}

.oev2-league-sidebar__logo-wrapper {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.oev2-league-sidebar__logo {
    max-width: 24px;
    max-height: 24px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.oev2-league-sidebar__logo-placeholder {
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    border-radius: 4px;
}

.oev2-league-sidebar__name {
    font-size: 13px;
    font-weight: 500;
    line-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===========================================
   EXPAND/COLLAPSE SECTION
   =========================================== */

.oev2-league-sidebar__divider {
    border: none;
    border-top: 1px dashed #ddd;
    margin: 15px 0;
}

.oev2-league-sidebar__expand-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    margin: 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
}

.oev2-league-sidebar__expand-toggle:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.oev2-league-sidebar__expand-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.oev2-league-sidebar__expand-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.oev2-league-sidebar__expand-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform 0.2s ease;
}

.oev2-league-sidebar__expand-toggle[aria-expanded="true"] .oev2-league-sidebar__expand-icon {
    transform: rotate(180deg);
}

.oev2-league-sidebar__more-leagues {
    display: none;
    margin-top: 15px;
}

.oev2-league-sidebar__more-leagues--visible {
    display: block;
}

/* ===========================================
   PRIORITY SECTION HEADER
   =========================================== */

.oev2-league-sidebar__section-label {
    font-size: 10px;
    font-weight: 600;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 10px 0;
}

.oev2-league-sidebar__priority-section {
    margin-bottom: 0;
}

/* ===========================================
   RESPONSIVE ADJUSTMENTS
   =========================================== */

@media (max-width: 768px) {
    .oev2-league-sidebar {
        position: static;
        border-radius: 0;
        box-shadow: none;
        padding: 15px;
    }

    .oev2-league-sidebar__title {
        font-size: 15px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .oev2-league-sidebar__link {
        padding: 10px 8px;
    }
}
