/* Betting Results Marquee Block Styles */

.betting-results-container {
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    max-width: 100vw;
    width: auto;
    background: #27303b;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.betting-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll 40s linear infinite;
    gap: 0;
    width: 200%;
}

.betting-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 20px;
    flex-shrink: 0;
}

.status-indicator {
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    line-height: 106%;
    flex-shrink: 0;
    padding: 4px 8px;
}

.status-indicator.win {
    background: hsl(142deg 71% 45% / 20%);
    color: hsl(142deg 71% 45%);
}

.status-indicator.lose {
    background: hsl(0 75% 60% / 20%);
    color: hsl(0 75% 60%);
}

.status-indicator.push {
    background: hsl(0 0% 83% / 20%); 
    color: hsl(0, 0%, 83%);
}

.bet-description {
    color: hsl(216 10% 70%);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    min-width: 0;
}

.profit-amount {
    color: hsl(186 100% 33%);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.separator-dot {
    width: 4px;
    height: 4px;
    background: #6b7280;
    border-radius: 50%;
    margin-right: 20px;
    flex-shrink: 0;
}

/* Marquee Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.betting-marquee:hover .marquee-content {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 768px) {
    .betting-item {
        margin-right: 15px;
        gap: 8px;
    }
    
    .status-indicator {
        font-size: 12px;
    }
    
    .bet-description {
        font-size: 13px;
    }
    
    .profit-amount {
        font-size: 13px;
    }
    
    .separator-dot {
        width: 3px;
        height: 3px;
        margin-right: 15px;
    }
    
    .marquee-content {
        animation-duration: 35s;
    }
}

@media (max-width: 480px) {
    .betting-item {
        margin-right: 12px;
        gap: 6px;
    }
    
    .status-indicator {
        font-size: 11px;
    }
    
    .bet-description {
        font-size: 12px;
    }
    
    .profit-amount {
        font-size: 12px;
    }
    
    .separator-dot {
        width: 2px;
        height: 2px;
        margin-right: 12px;
    }
    
    .marquee-content {
        animation-duration: 30s;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .marquee-content {
        animation: none;
        transform: none;
    }
    
    .betting-marquee {
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: #6b7280 #1a1a1a;
    }
    
    .betting-marquee::-webkit-scrollbar {
        height: 4px;
    }
    
    .betting-marquee::-webkit-scrollbar-track {
        background: #1a1a1a;
    }
    
    .betting-marquee::-webkit-scrollbar-thumb {
        background: #6b7280;
        border-radius: 2px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .betting-results-container {
        background: #000000;
    }
    
    .betting-item {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid #ffffff;
    }
    
    .bet-description {
        color: #ffffff;
    }
    
    .status-indicator.win {
        background: #00ff00;
        color: #000000;
    }
    
    .status-indicator.lose {
        background: #ff0000;
        color: #ffffff;
    }
    
    .status-indicator.push {
        background: #ffffff;
        color: #000000;
    }
}

/* Focus states for accessibility */
.betting-item:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Ensure text doesn't get cut off */
.marquee-content {
    will-change: transform;
}

/* Smooth transitions for status changes */
.status-indicator {
    transition: all 0.3s ease;
}

.bet-description,
.profit-amount {
    transition: color 0.3s ease;
}
