/* Betting Dashboard Styles */
.betting-dashboard {
    min-height: 100vh;
    color: #fff;
    padding-top: 1rem;
    position: relative;
    background: url('/static/images/audience-bg-bold.webp') center center / cover no-repeat fixed;
}

/* Live Carousel */
.live-carousel {
    position: relative;
    padding: 2rem 0;
    background: transparent;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.carousel-nav.prev {
    left: 1rem;
}

.carousel-nav.next {
    right: 1rem;
}

.carousel-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 4rem;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.live-card {
    min-width: 280px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.live-card:hover {
    border-color: #00ff41;
    transform: translateY(-2px);
}

.live-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #888;
}

.sport-label {
    color: #00ff41;
    font-weight: 600;
}

.live-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00ff41;
    text-align: center;
    margin-bottom: 0.75rem;
}

.live-teams {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.live-team {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-prediction-badge {
    font-size: 1.25rem;
    font-weight: 700;
    color: #39FF14;
    text-align: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 132, 0.15);
    border: 1px solid rgba(0, 255, 132, 0.3);
    border-radius: 8px;
}

.live-confidence {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 6px;
    padding: 0.75rem;
}

.confidence-label {
    font-size: 0.85rem;
    color: #888;
}

.confidence-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00ff41;
}

.live-odds {
    display: flex;
    gap: 0.75rem;
}

.odd-box {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 6px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.odd-label {
    font-size: 0.75rem;
    color: #888;
}

.odd-value {
    font-size: 1rem;
    font-weight: 700;
    color: #00ff41;
}

/* Events Container */
.events-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.events-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
}

.events-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sport-group {
    margin: 1.5rem 0 1rem;
}

.sport-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
}

.sport-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.sport-count {
    color: #888;
    font-size: 0.9rem;
}

.event-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 2rem;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.event-card:hover {
    border-color: #00ff41;
    background: rgba(0, 0, 0, 0.65);
    box-shadow: 0 8px 32px rgba(0, 255, 65, 0.3);
}

.event-left {
    display: flex;
    align-items: center;
}

.event-teams {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.team-name {
    font-size: 1rem;
    font-weight: 500;
}

.event-center {
    text-align: center;
}

.event-score {
    font-size: 2rem;
    font-weight: 700;
    color: #00ff41;
    margin-bottom: 0.5rem;
}

.event-prediction {
    font-size: 1.1rem;
    font-weight: 700;
    color: #39FF14;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: rgba(0, 255, 132, 0.15);
    border: 1px solid rgba(0, 255, 132, 0.3);
    border-radius: 6px;
    display: inline-block;
}

.event-time {
    font-size: 0.85rem;
    color: #888;
}

.event-confidence-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.conf-label {
    font-size: 0.75rem;
    color: #888;
}

.conf-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #00ff41;
}

.event-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-odds-row {
    display: flex;
    gap: 1rem;
}

.event-team-odd {
    flex: 1;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.odd-team {
    font-size: 0.85rem;
    color: #aaa;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}

.odd-val {
    font-size: 1rem;
    font-weight: 700;
    color: #00ff41;
}

.in-play-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.in-play-stats:hover {
    border-color: #00ff41;
    color: #00ff41;
}

.in-play-stats svg {
    width: 16px;
    height: 16px;
}

/* Modal Styles */
.prediction-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    overflow-y: auto;
}

.close-modal {
    position: sticky;
    top: 1rem;
    right: 1rem;
    float: right;
    width: 36px;
    height: 36px;
    background: #2a2a2a;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.close-modal:hover {
    background: #ff4444;
}

.modal-body {
    padding: 2rem;
}

.modal-header-section {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-match-title h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.modal-match-title p {
    color: #888;
    font-size: 0.95rem;
}

.modal-score-section,
.modal-prediction-section {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.modal-score-section h3,
.modal-prediction-section h3 {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.modal-score {
    font-size: 3.5rem;
    font-weight: 700;
    color: #00ff41;
    margin-bottom: 0.75rem;
}

.modal-prediction-badge {
    font-size: 2rem;
    font-weight: 700;
    color: #39FF14;
    margin-bottom: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 255, 132, 0.15);
    border: 2px solid rgba(0, 255, 132, 0.4);
    border-radius: 12px;
    display: inline-block;
}

.modal-result {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
}

.modal-confidence {
    margin-top: 1.5rem;
}

.confidence-bar {
    height: 8px;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #00D9A5);
    transition: width 0.5s ease;
}

.modal-confidence span {
    color: #888;
    font-size: 0.9rem;
}

.modal-section {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    color: #00ff41;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.modal-section p {
    color: #ccc;
    line-height: 1.8;
}

.probability-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.prob-item {
    text-align: center;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 8px;
}

.prob-item span {
    display: block;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.prob-item strong {
    display: block;
    color: #00ff41;
    font-size: 1.5rem;
    font-weight: 700;
}

.betting-predictions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bet-item {
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 8px;
}

.bet-item strong {
    color: #00ff41;
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 968px) {
    .event-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .event-center {
        order: -1;
    }

    .event-odds-row {
        flex-direction: column;
    }

    .carousel-container {
        padding: 0 3rem;
    }

    .live-card {
        min-width: 240px;
    }
}

@media (max-width: 640px) {
    .carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }

    .carousel-container {
        padding: 0 2.5rem;
    }

    .live-card {
        min-width: 220px;
    }

    .events-container {
        padding: 0 1rem;
    }

    .modal-score {
        font-size: 2.5rem;
    }

    .probability-breakdown {
        grid-template-columns: 1fr;
    }
}
