/* Playoff Simulation Specific Styles */

.simulation-status {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.status-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#status-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Results table styling */
.team-cell-simple {
    text-align: left;
    padding: 0.75rem 1rem;
}

.team-cell-simple strong {
    color: #1a1a1a;
    font-weight: 600;
}

.prob-cell {
    text-align: center !important;
    font-weight: 500;
    color: #4a5568;
}

/* Center ELO column and probability headers */
#results-table th:not(:first-child),
#results-table td:not(:first-child) {
    text-align: center !important;
}

.champion-cell {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    font-weight: 700;
    color: #92400e;
}

#results-table tbody tr:hover .champion-cell {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
}

/* Run simulation button styling */
#run-simulation {
    font-size: 1.1rem;
    padding: 0.875rem 2rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

#run-simulation:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive table for mobile */
@media (max-width: 768px) {
    .rankings-table th,
    .rankings-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .team-cell-simple {
        padding: 0.5rem;
    }

    .prob-cell {
        font-size: 0.8rem;
    }

    /* Stack columns more compactly on mobile */
    .rankings-table {
        font-size: 0.8rem;
    }
}

/* Highlight top contenders */
#results-table tbody tr:nth-child(1) .champion-cell {
    background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
    font-size: 1.1rem;
}

#results-table tbody tr:nth-child(2) .champion-cell {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

#results-table tbody tr:nth-child(3) .champion-cell {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

/* Animation for results appearing */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#results-container {
    animation: fadeIn 0.5s ease-out;
}

/* Probability color coding */
.prob-cell {
    position: relative;
}

/* Add subtle background gradient based on probability */
#results-table tbody tr {
    transition: background-color 0.2s ease;
}
