/* Custom CSS for Top 10 Sports Betting Picks */

/* Rank Badge Styling */
.rank-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.1rem;
}

/* Pick Card Styling */
.pick-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.pick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Edge Color Coding */
.pick-card.edge-high {
    border-left-color: #28a745;
}

.pick-card.edge-medium {
    border-left-color: #ffc107;
}

.pick-card.edge-low {
    border-left-color: #17a2b8;
}

/* Edge Display */
.edge-display {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.edge-display.edge-high {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.edge-display.edge-medium {
    color: #ffc107;
    background-color: rgba(255, 193, 7, 0.1);
}

.edge-display.edge-low {
    color: #17a2b8;
    background-color: rgba(23, 162, 184, 0.1);
}

/* Units Display */
.units-display {
    text-align: center;
}

.units-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--bs-warning);
    display: block;
}

.units-label {
    font-size: 0.8rem;
    color: var(--bs-secondary);
    text-transform: uppercase;
}

/* Confidence Chart Container */
.confidence-chart-container {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    position: relative;
}

/* Button Group Improvements */
.btn-group .btn-check:checked + .btn {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Loading Animation */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Stats Cards */
.card h3 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

.card h5.text-muted {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .pick-card .row {
        text-align: center;
    }
    
    .pick-card .col-md-4,
    .pick-card .col-md-3,
    .pick-card .col-md-2 {
        margin-bottom: 1rem;
    }
    
    .rank-badge {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .edge-display {
        font-size: 1.2rem;
    }
    
    .units-number {
        font-size: 1.5rem;
    }
}

/* Reasoning Card */
.collapse .card-body {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navbar Improvements */
.navbar-brand {
    font-size: 1.5rem;
}

/* Animation for state transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Apply fade-in to cards */
.pick-card {
    animation: fadeIn 0.5s ease-in;
}

/* Success/Error state styling */
.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.border-danger {
    border-color: #dc3545 !important;
}

/* Sport badge colors */
.bg-primary { background-color: var(--bs-primary) !important; }
.bg-success { background-color: var(--bs-success) !important; }
.bg-info { background-color: var(--bs-info) !important; }
.bg-secondary { background-color: var(--bs-secondary) !important; }

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-light);
}
