/* LIVE SCORES STYLES */

.live-scores-wrapper { padding: 16px; }

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

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.odds-dashboard-btn {
    padding: 10px 18px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.odds-dashboard-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.scores-filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 16px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.score-filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.score-filter-btn.active {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.scores-refresh-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--background-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.btn-small {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

.scores-list { margin-bottom: 30px; }

.score-section { margin-bottom: 24px; }

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

.game-card {
    background: var(--background-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card.status-live {
    border-color: #ef4444;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
}

.game-teams {
    cursor: pointer;
}

.game-teams:hover {
    opacity: 0.9;
}

.game-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

/* Game Actions */
.game-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 0;
}

.game-action-btn {
    flex: 1;
    padding: 10px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.game-action-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-1px);
}

.game-action-btn.betting-btn {
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.3);
    color: #fbbf24;
}

.game-action-btn.betting-btn:hover {
    background: rgba(234, 179, 8, 0.2);
    border-color: #eab308;
}

.game-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-status-badge.live {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.game-status-badge.final {
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
}

.game-status-badge.scheduled {
    background: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
}

/* Hype Meter Styles */
.hype-meter-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hype-icon {
    font-size: 14px;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.5));
}

.hype-bar-bg {
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.hype-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

.hype-vote-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.hype-vote-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.hype-vote-btn.voted {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fca5a5;
    cursor: default;
}

.hype-vote-btn i {
    font-size: 10px;
}

.vote-count {
    min-width: 10px;
}

.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.game-score-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

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

.team-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.team-info {
    flex: 1;
    min-width: 0;
}

.team-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-abbr {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.score {
    font-size: 28px;
    font-weight: 900;
    color: var(--accent-color);
    min-width: 50px;
    text-align: center;
}

.score-tbd {
    font-size: 24px;
    color: var(--text-muted);
    min-width: 50px;
    text-align: center;
}

.game-vs {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-footer {
    padding: 12px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.02);
}

.game-odds {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.odds-current {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.odds-pill {
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 4px;
}

.odds-sparkline {
    background: var(--background-secondary);
    border-radius: 6px;
    padding: 4px 8px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.odds-sparkline:hover {
    border-color: var(--accent-color);
    background: rgba(16, 185, 129, 0.05);
}

.odds-sparkline:active {
    transform: scale(0.95);
    background: rgba(16, 185, 129, 0.1);
}

.odds-sparkline svg {
    display: block;
}

.empty-state, .error-state {
    text-align: center;
    padding: 60px 24px;
    border-radius: 12px;
    background: var(--background-secondary);
    border: 2px dashed var(--border-color);
}

.empty-state h3, .error-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p, .error-state p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.loading-spinner {
    text-align: center;
    padding: 60px 24px;
}

.loading-spinner i {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 16px;
    display: block;
}

.loading-spinner p {
    color: var(--text-secondary);
    font-size: 14px;
}

.game-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    padding: 20px;
}

.game-details-content {
    background: linear-gradient(135deg, #1f2937, #111827);
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    color: white;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.game-details-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-details-header h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.game-details-header p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.game-details-score {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.team-detail {
    text-align: center;
}

.team-detail .team-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.team-detail h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.score-large {
    font-size: 42px;
    font-weight: 900;
    color: #10b981;
}

.vs-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
}

.vs-divider div {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.game-details-info { margin-bottom: 24px; }

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.info-row span {
    color: rgba(255, 255, 255, 0.7);
}

.info-row strong {
    color: white;
    font-weight: 700;
}

.game-details-actions {
    display: flex;
    gap: 12px;
}

.btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 480px) {
    .game-odds {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .odds-sparkline {
        width: 100%;
        height: 40px;
    }
    .odds-sparkline svg {
        width: 100%;
        height: 100%;
    }
}
