/* Base Styles */
.ai-betting-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.ai-betting-container.dark-mode {
    background: #121212;
    color: #f1f1f1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.theme-toggle {
    background: #4361ee;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: #3a56d4;
}

.dark-mode .theme-toggle {
    background: #4aa8ff;
}

.dark-mode .theme-toggle:hover {
    background: #3a91e0;
}

/* Header */
.ai-betting-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.dark-mode .ai-betting-header {
    border-bottom-color: #333;
}

.ai-betting-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.dark-mode .ai-betting-header h1 {
    color: #f1f1f1;
}

.ai-betting-header p {
    color: #7f8c8d;
    margin: 0;
}

.dark-mode .ai-betting-header p {
    color: #aaa;
}

/* Prediction Grid */
.ai-betting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ai-prediction-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.dark-mode .ai-prediction-card {
    background: #1e1e1e;
    border-color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Match Header */
.match-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.dark-mode .match-header {
    border-bottom-color: #333;
}

.match-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: #2c3e50;
}

.dark-mode .match-header h3 {
    color: #f1f1f1;
}

.match-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    flex-wrap: wrap;
}

.dark-mode .match-meta {
    color: #aaa;
}

.match-meta .time {
    margin-left: auto;
}

/* Tournament Info */
.tournament {
    font-weight: 600;
}

.grand-slam-tournament {
    color: #e74c3c;
}

.round {
    font-style: italic;
}

.surface {
    font-weight: 600;
    text-transform: capitalize;
}

/* Odds Display */
.odds-display {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(74, 168, 255, 0.05);
    border-radius: 8px;
}

.dark-mode .odds-display {
    background: rgba(74, 168, 255, 0.1);
}

.odds-item {
    flex: 1;
    text-align: center;
}

.odds-label {
    display: block;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark-mode .odds-label {
    color: #aaa;
}

.odds-value {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
}

.dark-mode .odds-value {
    color: #f1f1f1;
}

/* AI Analysis */
.ai-analysis {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(76, 201, 240, 0.05);
    border-radius: 8px;
    border-left: 4px solid #4cc9f0;
}

.dark-mode .ai-analysis {
    background: rgba(76, 201, 240, 0.1);
}

.ai-analysis p {
    margin: 0.8rem 0;
    line-height: 1.6;
}

/* Recommendations */
.recommendations {
    margin-top: 1.5rem;
}

.recommendations h4 {
    margin-bottom: 1rem;
    color: #4361ee;
}

.dark-mode .recommendations h4 {
    color: #4aa8ff;
}

.recommendation {
    background: rgba(67, 97, 238, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid #4361ee;
}

.dark-mode .recommendation {
    background: rgba(67, 97, 238, 0.1);
}

.rec-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.rec-market {
    color: #4361ee;
}

.dark-mode .rec-market {
    color: #4aa8ff;
}

.rec-selection {
    flex-grow: 1;
    padding: 0 0.5rem;
}

.rec-odds {
    color: #4cc9f0;
    font-weight: 700;
}

.rec-confidence {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 0.5rem 0;
    position: relative;
}

.dark-mode .rec-confidence {
    background: #333;
}

.confidence-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #4cc9f0, #4361ee);
    border-radius: 3px;
}

.rec-reason {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
    font-style: italic;
}

.dark-mode .rec-reason {
    color: #aaa;
}

/* Empty State */
.ai-betting-empty {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.dark-mode .ai-betting-empty {
    background: #1e1e1e;
}

.ai-betting-empty p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.dark-mode .ai-betting-empty p {
    color: #aaa;
}

/* Priority match styling */
.ai-prediction-card.priority-match {
    border-left: 4px solid #4361ee;
    background: rgba(67, 97, 238, 0.03);
}

.dark-mode .ai-prediction-card.priority-match {
    background: rgba(67, 97, 238, 0.08);
}

.ai-prediction-card.grand-slam {
    border-left: 4px solid #e74c3c;
    background: rgba(231, 76, 60, 0.03);
}

.dark-mode .ai-prediction-card.grand-slam {
    background: rgba(231, 76, 60, 0.08);
}

/* Source info styling */
.source-info {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    align-items: center;
    justify-content: center;
}

.dark-mode .source-info {
    color: #aaa;
}

.source-info span:not(:last-child) {
    display: flex;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-betting-container {
        padding: 1.5rem;
    }

    .ai-betting-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .ai-betting-container {
        padding: 1rem;
    }

    .ai-betting-header h1 {
        font-size: 1.5rem;
    }

    .match-meta {
        flex-direction: column;
        gap: 0.3rem;
    }

    .match-meta .time {
        margin-left: 0;
    }
}