/* Results Pages CSS */

/* Main Results Page Layout */
.results-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Results Page Structure (matching predictions page) */
.results-page__sport-selection {
    margin-bottom: 24px;
}

.results-page__date-selection {
    margin-bottom: 24px;
}

.results-page__prediction-date-navigation {
    margin-bottom: 24px;
}

.results-page__bet-type-selection {
    margin-bottom: 32px;
}

.results-page__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

/* Results Sections */
.results-section {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.results-section:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.results-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
    cursor: pointer;
    user-select: none;
    position: relative; /* Anchor absolute toggle on mobile */
}

.results-section__header-content {
    flex: 1;
}

.results-section__header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-section__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-section__header p {
    margin: 0;
    font-size: 14px;
    color: #6B7280;
}

.results-section__summary {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #6B7280;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.results-section__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6B7280;
}

.results-section__toggle:hover {
    background: #E5E7EB;
    color: #374151;
}

.results-section__toggle svg {
    transition: transform 0.2s ease;
}

.results-section__content {
    padding: 24px;
    display: none;
}

.results-section--expanded .results-section__content {
    display: block !important;
}

/* Game Results section styling - collapsible via JavaScript */

.results-section--expanded .results-section__toggle svg {
    transform: rotate(180deg);
}

/* Game Results Section - Always expanded by default */
.results-section--games {
    border-color: #16A34A;
    margin-bottom: 48px; /* Ensure proper spacing before footer */
}

.results-section--games .results-section__header {
    background: #F0FDF4;
    border-bottom-color: #16A34A;
}

.results-section--games .results-section__header h3 {
    color: #15803D;
}

/* Teams Section (Win Totals) - Always expanded by default */
.results-section--teams {
    border-color: #16A34A;
    margin-bottom: 48px; /* Ensure proper spacing before footer */
}

.results-section--teams .results-section__header {
    background: #F0FDF4;
    border-bottom-color: #16A34A;
}

.results-section--teams .results-section__header h3 {
    color: #15803D;
}

/* Teams section styling - collapsible via JavaScript */

/* Outliers Section */
.results-section--outliers {
    border-color: #F59E0B;
    margin-bottom: 48px; /* Ensure proper spacing before footer */
}

.results-section--outliers .results-section__header {
    background: #FFFBEB;
    border-bottom-color: #F59E0B;
}

.results-section--outliers .results-section__header h3 {
    color: #D97706;
}

.outlier-count-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: #F59E0B;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    white-space: nowrap;
}

/* Competition Section */
.results-section--competition {
    border-color: #8B5CF6;
    margin-bottom: 48px; /* Ensure proper spacing before footer */
}

.results-section--competition .results-section__header {
    background: #F5F3FF;
    border-bottom-color: #8B5CF6;
}

.results-section--competition .results-section__header h3 {
    color: #7C3AED;
}

/* Stats Section */
.results-section--stats {
    border-color: #3B82F6;
    margin-bottom: 48px; /* Ensure proper spacing before footer */
}

.results-section--stats .results-section__header {
    background: #EFF6FF;
    border-bottom-color: #3B82F6;
}

.results-section--stats .results-section__header h3 {
    color: #2563EB;
}



/* Challenge Tabs, Stats Tabs, and Stats-Sharing Tabs */
.challenge-tabs,
.stats-tabs,
.stats-sharing-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: #F9FAFB;
    border-radius: 8px;
}

/* Results page specific tab button styles */
.results-section .tab-button,
.challenge-tabs .tab-button,
.stats-tabs .tab-button,
.stats-sharing-tabs .tab-button {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.results-section .tab-button:hover,
.challenge-tabs .tab-button:hover,
.stats-tabs .tab-button:hover,
.stats-sharing-tabs .tab-button:hover {
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.results-section .tab-button.active,
.challenge-tabs .tab-button.active,
.stats-tabs .tab-button.active,
.stats-sharing-tabs .tab-button.active {
    background: #FFFFFF;
    color: #1F2937;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.results-section .tab-button.disabled,
.challenge-tabs .tab-button.disabled,
.stats-tabs .tab-button.disabled,
.stats-sharing-tabs .tab-button.disabled {
    background: #F3F4F6;
    color: #9CA3AF;
    cursor: not-allowed;
    opacity: 0.6;
}

.results-section .tab-button.disabled:hover,
.challenge-tabs .tab-button.disabled:hover,
.stats-tabs .tab-button.disabled:hover,
.stats-sharing-tabs .tab-button.disabled:hover {
    background: #F3F4F6;
    box-shadow: none;
    color: #9CA3AF;
}

/* Challenge tabs styling */
.challenge-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.challenge-tabs .tab-button {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.challenge-tabs .tab-button:hover:not(.disabled) {
    color: #16a34a;
    background: #f0fdf4;
}

.challenge-tabs .tab-button.active {
    color: #16a34a;
    border-bottom-color: #16a34a;
    background: #f0fdf4;
}

.challenge-tabs .tab-button.disabled {
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.challenge-tabs .tab-button.disabled:hover {
    background: none;
    color: #9ca3af;
}

.coming-soon-badge {
    font-size: 10px;
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tab content styling */
.tab-content {
    margin-top: 24px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Pre-Game and Post-Game Content */
.pre-game-content,
.post-game-content {
    padding: 0;
}

.pre-game-content h4,
.post-game-content h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
}

.pre-game-content .section-description,
.post-game-content .section-description {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: #6B7280;
}

.analysis-section,
.sharing-section,
.performance-section,
.results-sharing-section {
    margin-bottom: 32px;
}

.analysis-section:last-child,
.sharing-section:last-child,
.performance-section:last-child,
.results-sharing-section:last-child {
    margin-bottom: 0;
}

.analysis-section h5,
.sharing-section h5,
.performance-section h5,
.results-sharing-section h5 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Pre-Game specific styling */
.pre-game-content {
    border-left: 3px solid #F59E0B;
    padding-left: 16px;
}

.pre-game-content h4 {
    color: #D97706;
}

/* Post-Game specific styling */
.post-game-content {
    border-left: 3px solid #16A34A;
    padding-left: 16px;
}

.post-game-content h4 {
    color: #15803D;
}

/* Placeholder Content Styles */
.prediction-stats-placeholder,
.results-stats-placeholder,
.prediction-sharing-placeholder,
.results-sharing-placeholder {
    padding: 32px;
    text-align: center;
    background: #F9FAFB;
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    margin: 16px 0;
}

.placeholder-text {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
}

.placeholder-description {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

/* My Stats and Share Performance Content */
.my-stats-content,
.share-performance-content {
    padding: 0;
}

.my-stats-content h4,
.share-performance-content h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
}

.my-stats-content .section-description,
.share-performance-content .section-description {
    margin: 0 0 24px 0;
    font-size: 14px;
    color: #6B7280;
}

.stats-section {
    margin-bottom: 32px;
}

.stats-section:last-child {
    margin-bottom: 0;
}

/* Sharing Placeholder */
.sharing-placeholder {
    text-align: center;
    padding: 48px 24px;
    background: #F9FAFB;
    border: 2px dashed #E5E7EB;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.sharing-placeholder .placeholder-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.sharing-placeholder h5 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
}

.sharing-placeholder p {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
}

.sharing-placeholder .feature-list {
    text-align: left;
    margin: 24px 0;
    padding: 0;
    list-style: none;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.sharing-placeholder .feature-list li {
    padding: 8px 0;
    font-size: 14px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sharing-placeholder .coming-soon-note {
    margin-top: 24px;
    font-size: 12px;
    color: #9CA3AF;
    font-style: italic;
}

/* Pre-Game Stats Grid */
.prediction-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.stat-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #D1D5DB;
}

.stat-card .stat-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.stat-card .stat-description {
    font-size: 12px;
    color: #6B7280;
    margin: 0;
}



/* Post-Game Stats */
.betting-performance-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 16px 0;
}

.performance-row {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
}

.performance-row .row-header {
    margin-bottom: 16px;
}

.performance-row .row-header h5 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.performance-row .row-description {
    margin: 0;
    font-size: 14px;
    color: #6B7280;
}

.performance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.performance-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #F9FAFB;
    border-radius: 6px;
}

.performance-stat .stat-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.performance-stat .stat-content {
    flex: 1;
}

.performance-stat .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 2px;
}

.performance-stat .stat-value.positive {
    color: #16A34A;
}

.performance-stat .stat-value.negative {
    color: #DC2626;
}

.performance-stat .stat-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 2px;
}

.performance-stat .stat-note {
    font-size: 11px;
    color: #6B7280;
    margin: 0;
}

/* Outlier Row Styling */
.outlier-row {
    border-left: 4px solid #F59E0B;
}

.outlier-row .row-header h5 {
    color: #D97706;
}

/* All Stats Row Styling */
.all-stats-row {
    border-left: 4px solid #3B82F6;
}

.all-stats-row .row-header h5 {
    color: #2563EB;
}

/* No Completed Games State */
.no-completed-games {
    padding: 40px 32px;
    text-align: center;
    background: #F3F4F6;
    border-radius: 8px;
    margin: 16px 0;
}

.no-games-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

.no-completed-games h5 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #6B7280;
}

.no-completed-games p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #6B7280;
}

.stats-preview {
    font-size: 13px;
    color: #9CA3AF;
    font-style: italic;
}

/* Series Creator */
.series-creator {
    padding: 24px;
    background: #F9FAFB;
    border-radius: 8px;
}

.series-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #16A34A;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.duration-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Results page specific button styles - use more specific selectors to avoid conflicts with base.css */
.results-page .btn,
.results-section .btn,
.series-creator .btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
}

/* Results page specific button variants */
.results-page .btn-primary,
.results-section .btn-primary,
.series-creator .btn-primary {
    background: #16A34A;
    color: white;
}

.results-page .btn-primary:hover,
.results-section .btn-primary:hover,
.series-creator .btn-primary:hover {
    background: #15803D;
}

.results-page .btn-secondary,
.results-section .btn-secondary,
.series-creator .btn-secondary {
    background: #F3F4F6;
    color: #374151;
    border: 1px solid #D1D5DB;
}

.results-page .btn-secondary:hover,
.results-section .btn-secondary:hover,
.series-creator .btn-secondary:hover {
    background: #E5E7EB;
}

.results-page .btn-outline,
.results-section .btn-outline,
.series-creator .btn-outline {
    background: transparent;
    color: #374151;
    border: 1px solid #D1D5DB;
}

.results-page .btn-outline:hover,
.results-section .btn-outline:hover,
.series-creator .btn-outline:hover {
    background: #F9FAFB;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Empty State */
.empty-state-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 2rem;
}

.empty-state-card {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state-card h2 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.empty-state-card p {
    margin: 0 0 1.5rem 0;
    color: #6b7280;
}

.empty-state-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

/* Other Bet Types Section */
.other-bet-types {
    padding: 16px;
    background: #F3F4F6;
    border-radius: 6px;
    margin-bottom: 8px;
}

.other-bet-types-label {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.other-bet-types-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.other-bet-types .btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
}

.primary-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 480px) {
    .primary-actions {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }
}

/* Results Cards Container */
.results-cards-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Desktop/Mobile visibility */
.desktop-only {
    display: block !important;
}

.mobile-only {
    display: none !important;
}

/* Results Table Container */
.results-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 16px;
}

/* Clean container - no hacks needed with proper table sizing */

.results-table-container.desktop-only {
    display: block !important;
}

/* Responsive Design */
@media (max-width: 767px) {
    .results-page {
        padding: 0 16px;
    }
    
    .results-section__header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .results-section__header h3 {
        font-size: 16px;
    }

    /* Add a chevron indicator next to section titles on mobile */
    .results-section__header h3::after {
        content: "\25BE"; /* ▾ */
        display: inline-block;
        margin-left: 6px;
        font-size: 14px;
        color: #6B7280;
        transition: transform 0.2s ease;
    }
    .results-section--expanded .results-section__header h3::after {
        transform: rotate(180deg);
    }
    
    /* Highlight collapsed game results section on mobile to indicate it's expandable */
    .results-section--games:not(.results-section--expanded) .results-section__header,
    .results-section--teams:not(.results-section--expanded) .results-section__header {
        background: #F0FDF4;
        border: 1px solid #16A34A;
        border-radius: 8px 8px 0 0;
    }
    
    .results-section--games:not(.results-section--expanded) .results-section__header h3::after,
    .results-section--teams:not(.results-section--expanded) .results-section__header h3::after {
        color: #16A34A;
        font-weight: 600;
    }
    
    .results-section__summary {
        font-size: 12px;
        gap: 12px;
    }
    
    .results-section__toggle {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 28px;
        height: 28px;
        z-index: 1; /* Ensure visible above content */
    }
    
    .results-section__content {
        padding: 16px;
    }
    
    .challenge-tabs,
    .stats-tabs,
    .stats-sharing-tabs {
        flex-direction: column;
        gap: 4px;
    }
    
    .results-section .tab-button,
    .challenge-tabs .tab-button,
    .stats-tabs .tab-button,
    .stats-sharing-tabs .tab-button {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .series-creator {
        padding: 16px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .empty-state-container {
        padding: 1rem;
        min-height: 300px;
    }
    
    .empty-state-card {
        padding: 1.5rem;
    }
    
    .empty-state-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
        .desktop-only {
        display: none !important;
    }

    /* Override results-table mobile styles for desktop-only containers */
    .desktop-only,
    .results-table-container.desktop-only,
    .desktop-only .results-data-table,
    .desktop-only .results-table {
        display: none !important;
    }
    
    .mobile-only,
    .results-cards-container.mobile-only {
        display: block !important;
    }
    
    /* Override mobile-only display when parent section is collapsed */
    .results-section:not(.results-section--expanded) .results-section__content .mobile-only,
    .results-section:not(.results-section--expanded) .results-section__content .results-cards-container.mobile-only {
        display: none !important;
    }
    
    /* Mobile Stats Styles */
    .prediction-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-card .stat-value {
        font-size: 24px;
    }
    
    .betting-performance-section {
        gap: 16px;
    }
    
    .performance-row {
        padding: 16px;
    }
    
    .performance-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .performance-stat {
        padding: 12px;
    }
    
    .performance-stat .stat-value {
        font-size: 18px;
    }
    
    .no-completed-games {
        padding: 32px 20px;
    }
    
    .no-games-icon {
        font-size: 40px;
    }
}

/* Legacy CSS for backward compatibility */
.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.results-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #374151;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.summary-card h3 {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
}

.summary-number {
    font-size: 2rem;
    font-weight: 700;
    color: #16a34a;
    margin: 0;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

/* My Results Page */
.my-results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.performance-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.performance-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.performance-card h3 {
    margin: 0 0 1rem 0;
    color: #374151;
    font-size: 1.125rem;
    font-weight: 600;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.sport-stats, .bet-type-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.sport-stat, .bet-stat {
    flex: 1;
    min-width: 150px;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 6px;
    text-align: center;
}

.sport-name, .bet-name {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.sport-accuracy, .bet-accuracy {
    font-size: 1.25rem;
    font-weight: 700;
    color: #16a34a;
}

.sport-count, .bet-count {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Leaderboard Page */
.leaderboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.leaderboard-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.leaderboard-table {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.leaderboard-table table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    background: #f9fafb;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.leaderboard-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.no-leaderboard-data {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.your-ranking {
    background: #f0fdf4;
    border: 1px solid #16a34a;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.ranking-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rank-number {
    font-size: 2rem;
    font-weight: 700;
    color: #16a34a;
}

.rank-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
}

.rank-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.rank-stats .stat {
    text-align: left;
}

/* Analytics Page */
.analytics-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.analytics-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.analytics-card h3 {
    margin: 0 0 1rem 0;
    color: #374151;
    font-size: 1.125rem;
    font-weight: 600;
}

.chart-placeholder {
    width: 100%;
    height: 200px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-style: italic;
}

.chart-note {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.streak-stats {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.streak-stat {
    text-align: center;
    flex: 1;
}

.streak-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.streak-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.analytics-insights {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-card {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 6px;
}

.insight-card h4 {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
}

.insight-card p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Game Detail Page */
.game-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.game-info-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.teams {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.team {
    text-align: center;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
}

.team-score {
    font-size: 2rem;
    font-weight: 700;
    color: #16a34a;
}

.vs {
    font-size: 1.5rem;
    color: #6b7280;
}

.game-status {
    text-align: right;
}

.status {
    font-weight: 600;
    color: #374151;
}

.date {
    color: #6b7280;
    font-size: 0.875rem;
}

.game-lines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.line {
    text-align: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 6px;
}

.line-type {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.line-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
}

.user-predictions-card, .all-predictions-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.predictions-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.prediction-stat {
    text-align: center;
}

@media (max-width: 767px) {
    .results-container,
    .my-results-container,
    .leaderboard-container,
    .analytics-container,
    .game-detail-container {
        padding: 1rem;
    }
    
    .results-filters,
    .leaderboard-filters {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .performance-overview,
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .game-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .game-lines {
        grid-template-columns: repeat(2, 1fr);
    }
} 

/* Win Totals Results Styles */
.results-section--win-totals {
    margin-bottom: 24px;
}

.win-totals-results {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.win-totals-division {
    background: var(--color-white);
    border-radius: 8px;
    padding: 24px;
    border: 1px solid var(--color-gray-200);
}

.division-header {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-gray-100);
}

.division-teams {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.team-result-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--color-gray-50);
    border-radius: 8px;
    border: 1px solid var(--color-gray-200);
    transition: all 0.2s ease;
}

.team-result-card:hover {
    background: var(--color-gray-100);
    border-color: var(--color-gray-300);
}

.team-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.team-logo {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.team-name {
    font-weight: 600;
    color: var(--color-gray-900);
}

.prediction-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 100px;
}

.prediction-value,
.prediction-date-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.prediction-label,
.date-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.predicted-wins {
    font-weight: 600;
    color: var(--color-green-600);
    font-size: 14px;
}

.prediction-date {
    font-size: 12px;
    color: var(--color-gray-600);
}

.no-prediction {
    font-size: 12px;
    color: var(--color-gray-400);
    font-style: italic;
}

.current-record {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 100px;
}

.record-info,
.games-remaining-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.record-label,
.remaining-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.record {
    font-weight: 600;
    color: var(--color-gray-900);
    font-size: 14px;
}

.games-remaining {
    font-size: 12px;
    color: var(--color-gray-600);
}

.no-record {
    font-size: 12px;
    color: var(--color-gray-400);
    font-style: italic;
}

.no-predictions-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    background: var(--color-gray-50);
    border-radius: 8px;
    border: 1px solid var(--color-gray-200);
}

.no-predictions-icon {
    margin-bottom: 16px;
    color: var(--color-gray-400);
}

.no-predictions-message h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 8px;
}

.no-predictions-message p {
    color: var(--color-gray-600);
    margin-bottom: 24px;
}

.no-predictions-message .btn {
    padding: 12px 24px;
    background: var(--color-green-600);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.no-predictions-message .btn:hover {
    background: var(--color-green-700);
}

/* Odds Display Styles */
.odds-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.odds-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    background: var(--color-white);
    border-radius: 6px;
    border: 1px solid var(--color-gray-300);
}

.odds-line-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.line-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.odds-line {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gray-900);
}

.odds-details {
    display: flex;
    gap: 12px;
    font-size: 11px;
    font-weight: 500;
}

.over-odds-info,
.under-odds-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.over-label,
.under-label {
    font-size: 9px;
    font-weight: 500;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.over-odds {
    color: var(--color-green-600);
}

.under-odds {
    color: var(--color-red-600);
}

.no-odds {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: var(--color-gray-100);
    border-radius: 6px;
    border: 1px solid var(--color-gray-200);
}

.no-odds-text {
    font-size: 11px;
    color: var(--color-gray-400);
    font-style: italic;
}

/* Lean Indicator Styles */
.lean-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.lean-label {
    font-size: 9px;
    font-weight: 500;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.lean-text {
    font-size: 11px;
    font-weight: 600;
}

/* Lean Direction Colors */
.lean-over {
    background: var(--color-green-50);
    border: 1px solid var(--color-green-200);
    color: var(--color-green-700);
}

.lean-under {
    background: var(--color-red-50);
    border: 1px solid var(--color-red-200);
    color: var(--color-red-700);
}

.lean-push {
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    color: var(--color-gray-600);
}

/* Lean Strength Indicators */
.lean-strength-weak {
    opacity: 0.7;
}

.lean-strength-moderate {
    opacity: 0.85;
}

.lean-strength-strong {
    opacity: 1;
    font-weight: 700;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .division-teams {
        grid-template-columns: 1fr;
    }
    
    .team-result-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .team-info {
        width: 100%;
    }
    
    .prediction-info,
    .odds-info,
    .current-record {
        align-items: flex-start;
        min-width: auto;
    }
    
    .prediction-value,
    .prediction-date-info,
    .record-info,
    .games-remaining-info {
        align-items: flex-start;
    }
    
    .odds-display {
        align-items: flex-start;
    }
    
    .odds-line-info,
    .over-odds-info,
    .under-odds-info {
        align-items: flex-start;
    }
    
    .lean-indicator {
        align-items: flex-start;
    }
} 