/* ================================================================
   SPORTSBOOK PROFESSIONAL MATCH FEED - PHASE 3
   BetConstruct/Bet365-Level High-Density Event Feed
   ================================================================
   Target: Transform main content area into compact professional rows
   - League headers: 36-42px
   - Date separators: 30-34px
   - Match rows: 72-88px (down from 98px+)
   - Professional visual hierarchy
   - High information density
   - Fast scanning
   ================================================================ */

/* ================================================================
   DATE SEPARATORS - COMPACT
   ================================================================ */

.bc-sb-date-header {
    min-height: 32px !important;
    padding: 6px 16px !important;
    background: #0a0c0f !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    margin: 0 !important;
}

.bc-sb-date-header__label {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    color: #6b7280 !important;
}

.bc-sb-date-header__badge {
    padding: 3px 8px !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
}

/* ================================================================
   LEAGUE GROUP HEADERS - PROFESSIONAL COMPACT
   ================================================================ */

.bc-sb-league-group {
    background: transparent !important;
    border-bottom: none !important;
}

.bc-sb-league-group__header {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 16px !important;
    background: #0d0f13 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    gap: 10px !important;
    display: flex !important;
    align-items: center !important;
}

.bc-sb-league-group__favorite {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
}

.bc-sb-league-group__flag {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.bc-sb-league-group__flag .bc-sb-flag {
    width: 18px !important;
    height: 13px !important;
}

.bc-sb-league-group__name {
    flex: 1 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #e5e7eb !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.bc-sb-league-group__market-count {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    flex-shrink: 0 !important;
}

.bc-sb-league-group__more {
    height: 26px !important;
    padding: 0 10px !important;
    font-size: 9px !important;
    letter-spacing: 0.4px !important;
}

.bc-sb-league-group__stats {
    width: 18px !important;
    height: 18px !important;
}

/* ================================================================
   MATCH CARD - HIGH-DENSITY COMPACT ROWS
   ================================================================ */

.bc-sb-event {
    min-height: 78px !important;
    background: #0f1115 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    padding: 0 !important;
    margin: 0 !important;
}

.bc-sb-event:hover {
    background: #13161b !important;
}

.bc-sb-event--live {
    border-left: 3px solid #ef4444 !important;
    background: #0f1115 !important;
}

.bc-sb-event--live:hover {
    background: #13161b !important;
}

/* League strip inside match card - compact */
.bc-sb-event__strip {
    min-height: 24px !important;
    padding: 4px 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    gap: 6px !important;
}

.bc-sb-event__league {
    font-size: 10px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    gap: 4px !important;
}

.bc-sb-event__league-flag {
    width: 12px !important;
    height: 12px !important;
}

.bc-sb-event__league-flag .bc-sb-flag {
    width: 12px !important;
    height: 9px !important;
}

.bc-sb-event__favorite {
    width: 20px !important;
    height: 20px !important;
}

.bc-sb-event__favorite-icon {
    width: 13px !important;
    height: 13px !important;
}

/* ================================================================
   MATCH ROW - 3-COLUMN GRID (TIME | TEAMS | ODDS)
   ================================================================ */

.bc-sb-event__match {
    grid-template-columns: 64px minmax(0, 1fr) auto !important;
    min-height: 54px !important;
    align-items: stretch !important;
}

/* TIME COLUMN - COMPACT */
.bc-sb-event__time-col {
    padding: 8px 6px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.04) !important;
    gap: 3px !important;
}

.bc-sb-event__time {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #f5f7fa !important;
    letter-spacing: 0 !important;
}

.bc-sb-event__live-badge {
    font-size: 8px !important;
    font-weight: 800 !important;
    gap: 3px !important;
}

.bc-sb-event__live-dot {
    width: 4px !important;
    height: 4px !important;
}

/* TEAMS COLUMN - COMPACT VERTICAL SPACING */
.bc-sb-event__teams {
    padding: 8px 12px !important;
    gap: 4px !important;
    justify-content: center !important;
}

.bc-sb-event__team {
    gap: 6px !important;
    min-height: 20px !important;
}

.bc-sb-event__team-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #f5f7fa !important;
    line-height: 1.3 !important;
}

.bc-sb-event__team-score {
    font-size: 16px !important;
    font-weight: 800 !important;
    min-width: 20px !important;
}

/* ODDS COLUMN - COMPACT CELLS */
.bc-sb-event__odds {
    padding: 8px 12px 8px 8px !important;
    gap: 4px !important;
    align-self: center !important;
}

/* ================================================================
   ODDS BUTTONS - COMPACT PROFESSIONAL
   ================================================================ */

.bc-sb-odd {
    width: 56px !important;
    min-height: 38px !important;
    padding: 4px 2px !important;
    gap: 1px !important;
    background: #13161b !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 5px !important;
}

.bc-sb-odd:hover {
    background: rgba(255, 215, 0, 0.08) !important;
    border-color: rgba(255, 215, 0, 0.25) !important;
}

.bc-sb-odd__label {
    font-size: 9px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    letter-spacing: 0.2px !important;
}

.bc-sb-odd__value {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #FFD700 !important;
}

.bc-sb-odd--selected {
    background: #FFD700 !important;
    border-color: #FFD700 !important;
}

.bc-sb-odd--selected .bc-sb-odd__label {
    color: #14100A !important;
}

.bc-sb-odd--selected .bc-sb-odd__value {
    color: #14100A !important;
}

.bc-sb-odd--suspended {
    opacity: 0.4 !important;
}

/* ================================================================
   RESPONSIVE - DESKTOP OPTIMIZATIONS
   ================================================================ */

@media (min-width: 1440px) {
    .bc-sb-event__match {
        grid-template-columns: 72px minmax(0, 1fr) auto !important;
    }
    
    .bc-sb-event__time-col {
        padding: 8px !important;
    }
    
    .bc-sb-event__teams {
        padding: 8px 14px !important;
    }
    
    .bc-sb-event__odds {
        padding: 8px 14px 8px 10px !important;
    }
    
    .bc-sb-odd {
        width: 60px !important;
    }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    .bc-sb-event__match {
        grid-template-columns: 62px minmax(0, 1fr) auto !important;
    }
    
    .bc-sb-event__teams {
        padding: 7px 11px !important;
    }
    
    .bc-sb-odd {
        width: 54px !important;
    }
}

/* ================================================================
   RESPONSIVE - TABLET
   ================================================================ */

@media (min-width: 768px) and (max-width: 1023px) {
    .bc-sb-league-group__header {
        padding: 0 14px !important;
    }
    
    .bc-sb-event__match {
        grid-template-columns: 58px minmax(0, 1fr) auto !important;
    }
    
    .bc-sb-event__time-col {
        padding: 6px 5px !important;
    }
    
    .bc-sb-event__time {
        font-size: 12px !important;
    }
    
    .bc-sb-event__teams {
        padding: 6px 10px !important;
        gap: 3px !important;
    }
    
    .bc-sb-event__team-name {
        font-size: 12px !important;
    }
    
    .bc-sb-event__odds {
        padding: 6px 10px 6px 6px !important;
        gap: 3px !important;
    }
    
    .bc-sb-odd {
        width: 50px !important;
        min-height: 36px !important;
    }
    
    .bc-sb-odd__value {
        font-size: 12px !important;
    }
}

/* ================================================================
   RESPONSIVE - MOBILE
   ================================================================ */

@media (max-width: 767px) {
    .bc-sb-date-header {
        padding: 5px 12px !important;
    }
    
    .bc-sb-league-group__header {
        height: 36px !important;
        padding: 0 12px !important;
    }
    
    .bc-sb-league-group__name {
        font-size: 11px !important;
    }
    
    .bc-sb-league-group__market-count {
        font-size: 10px !important;
    }
    
    .bc-sb-event {
        min-height: 72px !important;
    }
    
    .bc-sb-event__strip {
        padding: 3px 10px !important;
    }
    
    .bc-sb-event__match {
        grid-template-columns: 54px minmax(0, 1fr) auto !important;
        min-height: 48px !important;
    }
    
    .bc-sb-event__time-col {
        padding: 6px 4px !important;
    }
    
    .bc-sb-event__time {
        font-size: 12px !important;
    }
    
    .bc-sb-event__teams {
        padding: 6px 8px !important;
        gap: 3px !important;
    }
    
    .bc-sb-event__team {
        min-height: 18px !important;
    }
    
    .bc-sb-event__team-name {
        font-size: 12px !important;
    }
    
    .bc-sb-event__team-score {
        font-size: 14px !important;
    }
    
    .bc-sb-event__odds {
        padding: 6px 8px 6px 4px !important;
        gap: 3px !important;
    }
    
    .bc-sb-odd {
        width: 48px !important;
        min-height: 36px !important;
    }
    
    .bc-sb-odd__label {
        font-size: 8px !important;
    }
    
    .bc-sb-odd__value {
        font-size: 12px !important;
    }
}

@media (max-width: 374px) {
    .bc-sb-event__match {
        grid-template-columns: 50px minmax(0, 1fr) auto !important;
    }
    
    .bc-sb-event__teams {
        padding: 5px 6px !important;
    }
    
    .bc-sb-event__team-name {
        font-size: 11px !important;
    }
    
    .bc-sb-odd {
        width: 44px !important;
        min-height: 34px !important;
    }
    
    .bc-sb-odd__value {
        font-size: 11px !important;
    }
}

/* ================================================================
   MAIN CONTENT AREA OPTIMIZATION
   ================================================================ */

.bc-sb-content {
    background: #0a0c0f !important;
}

.bc-sb-events {
    background: transparent !important;
}

.bc-sb-events__list {
    background: transparent !important;
}

/* ================================================================
   EMPTY STATE - COMPACT
   ================================================================ */

.bc-sb-empty {
    padding: 40px 20px !important;
    text-align: center !important;
}

.bc-sb-empty__icon {
    width: 40px !important;
    height: 40px !important;
    margin: 0 auto 12px !important;
    color: #4b5563 !important;
}

.bc-sb-empty__title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #9ca3af !important;
    margin-bottom: 4px !important;
}

.bc-sb-empty__text {
    font-size: 12px !important;
    color: #6b7280 !important;
}

/* ================================================================
   LOADING SKELETONS - MATCH COMPACT ROW
   ================================================================ */

.bc-sb-event-skeleton {
    min-height: 78px !important;
    background: #0f1115 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

/* ================================================================
   VISUAL DENSITY IMPROVEMENTS
   ================================================================ */

/* Remove excessive spacing between league groups */
.bc-sb-league-group + .bc-sb-league-group {
    margin-top: 0 !important;
}

/* Remove excessive spacing between date headers */
.bc-sb-date-header + .bc-sb-league-group {
    margin-top: 0 !important;
}

/* Ensure continuous feed without gaps */
.bc-sb-events__list > * + * {
    margin-top: 0 !important;
}

/* ================================================================
   PERFORMANCE OPTIMIZATIONS
   ================================================================ */

/* GPU acceleration for smooth scrolling */
.bc-sb-event,
.bc-sb-odd {
    will-change: auto;
    transform: translateZ(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .bc-sb-event,
    .bc-sb-odd,
    .bc-sb-league-group__favorite,
    .bc-sb-event__favorite {
        transition: none !important;
        animation: none !important;
    }
}
