@charset "UTF-8";
/* CSS Document */
/* layout-matchup.css */



/* INITIALIZATION */
.loading-state:disabled {
    background-color: #f5f5f5 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

.loading-state:disabled option {
    color: #999;
}

.stats-visible {
  display: block !important;
}

/* Week selector styling */
#week-selector {
    min-width: 120px;
}

/* Optional loading spinner for dropdown */
#matchup-selector.loading-state:disabled {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"%3E%3Cstyle%3E@keyframes spin{to{transform:rotate(360deg)}}%3C/style%3E%3Ccircle cx="10" cy="10" r="8" stroke="%23ddd" stroke-width="2" fill="none"/%3E%3Cpath d="M10 2a8 8 0 018 8" stroke="%23007bff" stroke-width="2" fill="none" style="animation:spin 1s linear infinite;transform-origin:center"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    background-size: 20px;
}



/* SCROLL MARGIN SOLUTION - accounts for sticky headers automatically */
.game-container,
h3, h4, h5, h6 {
    scroll-margin-top: 165px !important;
}

/* RESTORED: Original content wrapper with proper padding for sticky header */
.content-wrapper {
    margin-left: 0;
    padding: 20px;
    padding-top: 120px !important; /* RESTORED: Proper top padding to clear sticky headers */
}

/* Betting navigation header styling - RESTORED to not change font sizes */
.betting-navigation-header {
    position: sticky !important;
    top: 70px !important;
    z-index: 9 !important;
    background-color: #f8f9fa;
    border: none !important;
    border-radius: 0 !important;
    padding: 1rem;
    margin-bottom: 1rem !important;
    margin-top: -20px !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    transition: none !important;
    transform: none !important;
}

/* Ensure content inside stays properly contained and aligned */
.betting-navigation-header .row {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 0rem !important;
}

/* Ensure no Bootstrap or other CSS overrides the margins */
#betting-header.betting-navigation-header {
    margin-top: -50px !important;
    margin-bottom: 1rem !important;
}

/* Override any potential Bootstrap mb- classes */
.betting-navigation-header.mb-4,
.betting-navigation-header[class*="mb-"] {
    margin-bottom: 1rem !important;
}

/* Force the margins to stay consistent after page load */
.betting-navigation-header,
.betting-navigation-header * {
    transition: none !important;
}

.btn-group .btn {
    min-width: 80px;
}

/* RESTORED: Original form styling - NO font size changes */
#matchup-selector {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    background-image: none !important;
    padding-right: 0.75rem !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    background-color: #fff !important;
    /* REMOVED: font-size override to preserve original */
    margin-right: 12px !important;
}

#matchup-selector:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* RESTORED: Original date picker styling */
#datePicker {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    /* REMOVED: font-size override to preserve original */
}

#datePicker:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

@media (max-width: 768px) {
    .betting-navigation-header .row {
        padding: 0 0rem !important;
    }
    .betting-navigation-header {
        top:60px !important;
    }
    #betting-header .col-md-7 {
        padding-left: 0px;
    }
    #betting-header div {
        margin-left: 0px !important;
    }
    
    .betting-navigation-header .row > .col-md-5,
    .betting-navigation-header .row > .col-md-7 {
        margin-bottom: 0.5rem;
    }
    
    .betting-navigation-header .d-flex {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .betting-navigation-header .col-md-7 .d-flex {
        justify-content: flex-start !important;
    }
    
    #matchup-selector {
        max-width: 100% !important;
        margin-right: 8px !important;
    }
    
    #datePicker {
        width: 140px !important;
    }
}

/* SWITCH STYLES from prod-filters.css */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switcher {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.switcher:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .switcher {
    background-color: #2196F3;
}

input:focus + .switcher {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .switcher:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.switcher.round {
    border-radius: 24px;
}

.switcher.round:before {
    border-radius: 50%;
}




/* ===== STATS FILTER STYLES - UNIFIED ===== */
/* Universal filter system for NFL, NBA, WNBA, and MLB */

/* ===== CONTAINER ===== */
.stats-filters {
    padding: 15px 15px 0 25px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
}

/* Simplified layout for single-dropdown filters (MLB) */
.stats-filters--simple {
    padding: 10px 15px;
}

/* ===== FILTER ROWS ===== */
.filter-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 10px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

/* Simple layout uses flexbox instead of grid */
.stats-filters--simple .filter-row {
    display: flex;
    margin-bottom: 0;
}

/* ===== FILTER ITEMS ===== */
.filter-item {
    display: flex;
    align-items: center;
    min-height: 38px;
}

/* Empty placeholder items (for grid spacing) */
.filter-item--empty {
    visibility: hidden;
}

/* ===== DROPDOWN STYLING ===== */
.filter-dropdown {
    width: 100%;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Simple layout dropdowns can be narrower */
.stats-filters--simple .filter-dropdown {
    min-width: 150px;
    width: auto;
}

.filter-dropdown:hover {
    border-color: #9ca3af;
}

.filter-dropdown:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ===== TOGGLE SWITCH ===== */
.filter-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.filter-switch input {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

/* Toggle slider track */
.filter-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #cbd5e1;
    border-radius: 24px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

/* Toggle slider button */
.filter-slider:before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Checked/Active state */
.filter-switch input:checked + .filter-slider {
    background-color: #3b82f6;
}

.filter-switch input:checked + .filter-slider:before {
    transform: translateX(20px);
}

/* Hover effect */
.filter-switch:hover .filter-slider {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Label styling */
.filter-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}

.filter-switch input:checked ~ .filter-label {
    color: #1f2937;
}

/* ===== DISABLED STATE ===== */
.filter-switch input:disabled + .filter-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.filter-switch input:disabled ~ .filter-label {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== INFO SECTION ===== */
.filter-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.filter-info small {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
}

/* Remove border when info is empty (like NFL badge) */
.filter-info:empty {
    margin: 0;
    padding: 0;
    border: none;
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stats-filters--simple .filter-row {
        width: 100%;
    }
    
    .filter-item {
        width: 100%;
    }
    
    .filter-item--empty {
        display: none;
    }
    
    .filter-switch,
    .filter-dropdown {
        width: 100%;
    }
    
    .stats-filters--simple .filter-dropdown {
        width: 100%;
    }
    
    .hide-on-mobile {
        display: none;
    }
}






/* Situational Systems Styling */
.systems-team-section {
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    min-height: 60px;
}

.systems-category {
    margin-bottom: 0.5rem;
}

.systems-tier-group {
    margin-bottom: 0.5rem;
}

.system-line {
    padding: 2px 0;
    line-height: 1.4;
    font-size: 0.875rem;
}

.system-indicator {
    display: inline-block;
    width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    margin-right: 6px;
    font-size: 12px;
    vertical-align: middle;
}

.system-indicator.system-for {
    color: #28a745;
}

.system-indicator.system-for::before {
    content: "●";
}

.system-indicator.system-against {
    color: #dc3545;
}

.system-indicator.system-against::before {
    content: "●";
}

.system-indicator.system-over {
    color: #17a2b8;
    font-size: 10px;
}

.system-indicator.system-over::before {
    content: "▲";
}

.system-indicator.system-under {
    color: #6c757d;
    font-size: 10px;
}

.system-indicator.system-under::before {
    content: "▼";
}

.system-description {
    font-size: 0.875rem;
    color: #495057;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .systems-team-section {
        margin-bottom: 0.5rem;
    }
}
    







/* ========================================
   MATCHUP PAGE - FULL WIDTH HEADER STYLING (FIXED)
   ======================================== */

/* Style game-container as main wrapper - respects container width */
.game-container {
    background: white !important;
    border: 1px solid rgba(0,0,0,.125) !important;
    border-radius: 0.25rem !important;
    overflow: hidden !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075) !important;
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
    max-width: 100% !important; /* Respect parent container */
    position: relative !important;
    z-index: 1 !important; /* Keep below header */
}

/* Full-width game header - GREY instead of blue */
.game-header {
    padding: 1rem 1.25rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(0,0,0,.125) !important;
    background-color: #51575D !important; /* Grey background */
    position: relative !important;
    z-index: 1 !important; /* Keep below site header */
}

/* Override Bootstrap's bg-primary to use grey */
.game-container .bg-primary {
    background-color: #6c757d !important; /* Grey instead of blue */
}

.game-header h5 {
    color: white !important;
    margin-bottom: 0.5rem !important;
}

/* Content area below header */
.game-content-area {
    padding: 1.25rem !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Keep game container within bounds */
.content-wrapper .container-fluid {
    position: relative !important;
    z-index: 1 !important;
}

/* Ensure proper stacking - header should be on top */
.content-wrapper {
    position: relative !important;
    z-index: 1 !important;
}

/* Remove card styling from inner content */
.game-info-content {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}


/* Custom container padding override */
.container, 
.container-fluid, 
.container-lg, 
.container-md, 
.container-sm, 
.container-xl {
    padding-right: 0px !important;
    padding-left: 0px !important;
}
    
.sport-filter {
    margin-top: 25px;
    padding-top:20px;
}
    
.section-open .collapse-icon {
    transform: rotate(0deg) !important;
}
    
.collapsible-header {
    transition: color 0.3s;
    color: #6c757d; /* ADD THIS - Bootstrap secondary gray color */
    text-decoration: none; /* ADD THIS - Remove underline */
}

.collapsible-header:hover {
    color: #0056b3; /* You already have this - keep it as is (blue on hover) */
    text-decoration: none; /* ADD THIS - Keep no underline on hover */
}

.collapse-icon {
    transition: transform 0.3s;
    font-size: 0.8em;
    display: inline-block; /* ADD THIS - Important for transform to work properly */
}

.collapsible-header[aria-expanded="true"] .collapse-icon {
    transform: rotate(90deg);
}

/* ADD THIS SECTION - Specific styling for algorithm and records sections */
.detailed-algorithms .collapsible-header,
.detailed-records .collapsible-header {
    color: #6c757d !important; /* Ensure gray color */
    text-decoration: none !important; /* Ensure no underline */
}

/* Grey box styling like systems section */
.algo-recommendation-box {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    min-height: 80px;
}

/* Unified tier heading for both algorithms and systems */
.tier-heading {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Bet recommendation - larger and green like system dots */
.algo-recommendation-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 0.25rem;
}

/* Probability text - smaller and grey */
.algo-probability {
    font-size: 0.875rem;
    color: #6c757d;
}

/* No play text */
.algo-no-play {
    font-size: 1.1rem;
    color: #6c757d;
}

/* Additional styles for consistency */
.algorithm-summary {
    margin-bottom: 1rem;
}

.baller-index-open .collapse-icon {
    transform: rotate(0deg) !important;
}

    
.blue-heading {
    padding-bottom: 10px !important;
    margin-bottom: 0px !important;
    margin-top: 5px !important;
}


/* bet-games-display */
.schedule-hidden {
    display: none !important;
}
.schedule-header {
    padding-top: 0px !important; margin-top: 0px !important;
}


/* TOOLTIPS */
.info-tooltip {
    position: relative;
    display: inline-block;
}

.info-tooltip .tooltip-text {
    display: none;
    width: 350px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 8px 10px;
    position: absolute;
    z-index: 1000;
    top: 125%;  /* Changed from bottom: 125% */
    left: 50%;
    margin-left: -95px;
    opacity: 0;
    font-size: 0.875rem;
    font-weight: normal;
    line-height: 1.4;
    pointer-events: none;
}

/* Tooltip arrow - now points upward */
.info-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    bottom: 100%;  /* Changed from top: 100% */
    left: 100px;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;  /* Flipped the border colors */
}

/* Show tooltip on hover */
.info-tooltip:hover .tooltip-text {
    display: block;
    opacity: 1;
}

/* Optional: Add a subtle transition for smooth fade */
.info-tooltip .tooltip-text {
    transition: opacity 0.2s;
}


/* Historical Matchups */
.venue-match {
    background-color: rgba(255, 193, 7, 0.15) !important; /* Light yellow highlight */
}
.venue-match td {
    font-weight: 500;
}
.overall-summary-row {
    background-color: #f0f0f0 !important;
}
.overall-summary-row td {
    border-top: 2px solid #6c757d !important;
    font-weight: 600;
}
.venue-summary-row {
    background-color: #e8f4ff !important;
}
.venue-summary-row td {
    border-top: 2px solid #007bff !important;
    font-weight: 600;
}