/* BetBrain v7 - Minimalist Design */

:root {
    --bg: #0f0f0f;
    --bg-card: #171717;
    --bg-hover: #1f1f1f;
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.15);
    --green: #22c55e;
    --green-soft: rgba(34, 197, 94, 0.15);
    --yellow: #f59e0b;
    --yellow-soft: rgba(245, 158, 11, 0.15);
    --red: #ef4444;
    --red-soft: rgba(239, 68, 68, 0.15);
    --text: #fafafa;
    --text-secondary: #b5b5b5; /* Improved contrast: 8:1 ratio */
    --text-muted: #8a8a8a; /* Improved contrast: 5.5:1 ratio - WCAG AA */
    --border: #303030; /* Slightly brighter border */
    --radius: 12px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    border-radius: 0 0 var(--radius-sm) 0;
    text-decoration: none;
    font-weight: 500;
}
.skip-link:focus {
    top: 0;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Icons */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.icon svg { width: 100%; height: 100%; fill: currentColor; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }

.credits-badge {
    font-size: 12px;
    color: var(--text-muted);
}

/* Stats Banner */
.stats-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    margin: 16px 24px;
    border-radius: var(--radius);
    overflow: hidden;
}

.stat-item {
    background: var(--bg-card);
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.stat-value.positive { color: var(--green); }

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Navigation */
.main-tabs {
    display: flex;
    gap: 8px;
    padding: 0 24px;
    margin-bottom: 16px;
}

.main-tab,
.tab-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.main-tab:hover,
.tab-btn:hover { color: var(--text); }

.main-tab.active,
.tab-btn.active {
    background: var(--bg-card);
    color: var(--text);
}

/* Sport Tabs */
.sport-tabs {
    display: flex;
    gap: 8px;
    padding: 0 24px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sport-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.sport-tab:hover {
    border-color: var(--text-muted);
}

.sport-tab.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.sport-count {
    font-size: 11px;
    padding: 2px 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.sport-tab.active .sport-count {
    background: var(--accent);
    color: white;
}

/* Search */
.search-container {
    padding: 0 24px;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s;
}

.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--accent); }

/* Events List */
.events-container {
    padding: 0 24px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Event Card */
.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.event-card:hover {
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

.event-card.live {
    border-color: var(--green);
    border-left-width: 3px;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--green);
    background: var(--green-soft);
    border-radius: 4px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

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

.value-badge {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--yellow);
    background: var(--yellow-soft);
    border-radius: 4px;
}

/* Teams */
.teams-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

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

.team.away {
    flex-direction: row-reverse;
    text-align: right;
}

.team-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    border-radius: 10px;
    flex-shrink: 0;
}

.team-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.score-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
}

.score {
    font-size: 28px;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
}

.score-divider {
    font-size: 20px;
    color: var(--text-muted);
}

.vs-text {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Odds */
.odds-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.odds-row.no-draw {
    grid-template-columns: repeat(2, 1fr);
}

.odd-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.odd-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.odd-label {
    font-size: 11px;
    color: var(--text-muted);
}

.odd-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

/* Data Quality Indicator */
.data-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 12px;
}

.data-indicator.real { color: var(--green); }
.data-indicator.estimated { color: var(--yellow); }

/* Loading & Empty States */
.loading-state,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    color: var(--text-muted);
    text-align: center;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: var(--bg-card);
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .modal-content {
        border-radius: var(--radius);
        margin: auto;
        max-height: 85vh;
    }
    .modal-overlay {
        align-items: center;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: var(--bg-hover);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    color: var(--text);
    background: var(--border);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

/* Analysis Sections */
.analysis-section {
    margin-bottom: 24px;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Match Info in Modal */
.modal-match-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.modal-team {
    text-align: center;
    flex: 1;
}

.modal-team-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: white;
    border-radius: 12px;
    margin: 0 auto 8px;
}

.modal-team-name {
    font-size: 14px;
    font-weight: 600;
}

.modal-vs {
    font-size: 14px;
    color: var(--text-muted);
    padding: 0 16px;
}

/* Prediction Card */
.prediction-card {
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.prediction-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.prediction-value {
    font-size: 32px;
    font-weight: 700;
}

.prediction-value.high { color: var(--green); }
.prediction-value.medium { color: var(--yellow); }
.prediction-value.low { color: var(--red); }

.prediction-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Probabilities */
.probability-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.probability-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.probability-label {
    width: 60px;
    font-size: 13px;
    color: var(--text-secondary);
}

.probability-bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.probability-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.3s;
}

.probability-fill.home { background: var(--green); }
.probability-fill.draw { background: var(--text-muted); }
.probability-fill.away { background: var(--red); }

.probability-value {
    width: 45px;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card {
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.stat-card-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-card-value {
    font-size: 20px;
    font-weight: 700;
}

/* Insights List */
.insights-list {
    list-style: none;
}

.insights-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.insights-list li:last-child {
    border-bottom: none;
}

.insights-list li .icon {
    color: var(--accent);
    margin-top: 2px;
}

.risks-list {
    list-style: none;
}

.risks-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.risks-list li:last-child {
    border-bottom: none;
}

.risks-list li .icon {
    color: var(--yellow);
    margin-top: 2px;
}

/* Bets Section */
.bets-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
}

.bet-name {
    font-size: 14px;
    font-weight: 500;
}

.bet-odds {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.bet-confidence {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.bet-confidence.high {
    background: var(--green-soft);
    color: var(--green);
}

.bet-confidence.medium {
    background: var(--yellow-soft);
    color: var(--yellow);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-success .icon { color: var(--green); }
.toast-error .icon { color: var(--red); }
.toast-warning .icon { color: var(--yellow); }

.toast-message {
    font-size: 14px;
    color: var(--text);
}

/* Data Source Notice */
.data-source-notice {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.data-source-notice.real {
    background: var(--green-soft);
    color: var(--green);
}

.data-source-notice.estimated {
    background: var(--yellow-soft);
    color: var(--yellow);
}

/* Tooltip */
.tooltip {
    position: fixed;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text);
    max-width: 280px;
    z-index: 3000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.tooltip.active {
    opacity: 1;
    visibility: visible;
}

/* Analysis Tabs */
.analysis-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.analysis-tab {
    flex: 1;
    padding: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.analysis-tab.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.tab-content {
    display: none;
}

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

/* Responsive */
@media (max-width: 480px) {
    .header { padding: 16px; }
    .main-tabs,
    .sport-tabs,
    .search-container,
    .events-container { padding: 0 16px; }
    .stats-banner { margin: 12px 16px; }

    .team-name { font-size: 13px; }
    .team-logo { width: 36px; height: 36px; }
    .score { font-size: 24px; }

    .modal-body { padding: 16px; }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==================== ANALYSIS MODAL ==================== */

.analysis-container {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Analysis Header */
.analysis-header {
    text-align: center;
    margin-bottom: 24px;
}

.analysis-league {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.analysis-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.analysis-team {
    flex: 1;
    text-align: center;
}

.analysis-team .team-logo {
    width: 56px;
    height: 56px;
    font-size: 18px;
    margin: 0 auto 10px;
}

.analysis-team .team-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.analysis-team .team-form {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 4px;
}

.analysis-team .team-position {
    font-size: 12px;
    color: var(--text-muted);
}

.analysis-vs {
    text-align: center;
    padding: 0 8px;
}

.analysis-vs .vs-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.analysis-vs .vs-score {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

/* Form indicators */
.form-indicator {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.form-indicator.W { background: var(--green); }
.form-indicator.D { background: var(--text-muted); }
.form-indicator.L { background: var(--red); }

/* AI Summary */
.ai-summary {
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}

.summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.summary-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Win Probability */
.win-probability {
    margin-bottom: 20px;
}

.prob-visual {
    display: flex;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.prob-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    transition: width 0.5s ease;
}

.prob-segment.home { background: var(--green); }
.prob-segment.draw { background: var(--text-muted); }
.prob-segment.away { background: var(--red); }

.prob-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

/* Key Numbers */
.key-numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.key-number {
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
}

.key-number-value {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.key-number-label {
    font-size: 11px;
    color: var(--text-muted);
}

.confidence-box.high .key-number-value { color: var(--green); }
.confidence-box.medium .key-number-value { color: var(--yellow); }
.confidence-box.low .key-number-value { color: var(--red); }

/* Confidence Explanation */
.confidence-explain {
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stats Comparison */
.stats-comparison {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-row .stat-name {
    width: 80px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.stat-row .stat-value {
    width: 40px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.stat-row .stat-value.home { text-align: right; }
.stat-row .stat-value.away { text-align: left; }

.stat-row .stat-bar-container {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    display: flex;
}

.stat-row .stat-bar-container.reverse {
    flex-direction: row-reverse;
}

.stat-row .stat-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.stat-row .stat-bar.home { background: var(--green); }
.stat-row .stat-bar.away { background: var(--red); }

/* H2H Section */
.h2h-section {
    margin-bottom: 20px;
}

.h2h-summary {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 16px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.h2h-stat-value {
    font-size: 24px;
    font-weight: 700;
}

.h2h-stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

.h2h-matches {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.h2h-match {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.h2h-match .match-score {
    font-weight: 600;
}

.h2h-match .match-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* Goals Trend */
.goals-trend {
    margin-bottom: 20px;
}

.trend-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
    padding: 8px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
}

.trend-bar {
    flex: 1;
    background: var(--accent);
    border-radius: 2px;
    min-height: 4px;
    transition: height 0.3s ease;
}

/* Bets Section */
.bets-section {
    margin-bottom: 20px;
}

.bets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bet-card {
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
    padding: 14px;
    border-left: 3px solid var(--accent);
}

.bet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bet-market {
    font-size: 12px;
    color: var(--text-muted);
}

.bet-conf {
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
}

.bet-selection {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.bet-reasoning {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Analysis Footer */
.analysis-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: var(--yellow-soft);
    border-radius: var(--radius-sm);
    margin-top: 16px;
    font-size: 11px;
    color: var(--yellow);
}

.disclaimer-icon {
    flex-shrink: 0;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border) 50%, var(--bg-hover) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-header {
    height: 120px;
    margin-bottom: 16px;
}

.skeleton-tabs {
    height: 40px;
    margin-bottom: 16px;
}

.skeleton-content {
    height: 200px;
}

/* Analysis Loading State */
.analysis-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    min-height: 300px;
}

.loading-spinner-big {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 14px;
    color: var(--text-muted);
}

/* Additional responsive improvements */
@media (max-width: 360px) {
    .header { padding: 12px; }
    .logo { font-size: 18px; }
    .stats-banner { margin: 8px 12px; gap: 8px; }
    .stat-value { font-size: 16px; }
    .stat-label { font-size: 10px; }
    .main-tabs { gap: 4px; }
    .main-tab { padding: 8px 10px; font-size: 12px; }
    .sport-tab { padding: 8px 10px; font-size: 12px; }
    .event-card { padding: 12px; }
}

@media (min-width: 600px) and (max-width: 767px) {
    .events-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .date-header {
        grid-column: 1 / -1;
    }
}

@media (min-width: 768px) {
    .events-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .date-header {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .events-list {
        grid-template-columns: repeat(3, 1fr);
    }
    #app {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .loading-spinner {
        animation: none;
        border-top-color: var(--accent);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #d0d0d0;
        --text-muted: #a0a0a0;
        --border: #505050;
    }
}
