/* State Management Components CSS */

/* Game State Badge */
.game-state-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.game-state-badge .state-icon {
    font-size: 0.875rem;
}

.game-state-badge .state-text {
    line-height: 1;
}

/* Game State Specific Styles */
.game-scheduled {
    background-color: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.game-starting-soon {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.game-started {
    background-color: #fef3c7;
    color: #d97706;
    border-color: #f59e0b;
}

.game-halftime {
    background-color: #dbeafe;
    color: #1d4ed8;
    border-color: #3b82f6;
}

.game-completed {
    background-color: #dcfce7;
    color: #16a34a;
    border-color: #22c55e;
}

.game-postponed,
.game-cancelled,
.game-delayed {
    background-color: #f9fafb;
    color: #6b7280;
    border-color: #d1d5db;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Bet Type Tabs */
.bet-type-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.bet-type-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.bet-type-tab:hover {
    background: #f9fafb;
    border-color: #16a34a;
    color: #16a34a;
}

.bet-type-tab.active {
    background: #16a34a;
    border-color: #16a34a;
    color: white;
}

.bet-type-tab .bet-icon {
    font-size: 1rem;
}

.bet-type-tab .bet-name {
    font-size: 0.875rem;
}

/* Date Range Tabs */
.date-range-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.date-range-tab {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-range-tab:hover {
    background: #f3f4f6;
    border-color: #16a34a;
    color: #16a34a;
}

.date-range-tab.active {
    background: #16a34a;
    border-color: #16a34a;
    color: white;
}

.date-range-tab .range-icon {
    font-size: 0.875rem;
}

.custom-date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding-left: 1rem;
    border-left: 1px solid #e5e7eb;
}

.date-input {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
    background: white;
}

.date-input:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .bet-type-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bet-type-tab {
        justify-content: center;
    }
    
    .date-range-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .custom-date-range {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding-top: 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .date-input {
        width: 100%;
    }
}

/* Dashboard specific styles */
.dashboard-container .bet-type-tabs,
.dashboard-container .date-range-tabs {
    margin-bottom: 1.5rem;
}

/* Predictions page specific styles */
.predictions-container .bet-type-tabs {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
    margin: -1rem -1rem 1rem -1rem;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Results page specific styles */
.results-container .date-range-tabs {
    margin-bottom: 2rem;
} 