/* Basketball Analysis Web App Custom Styles */

/* Video Player Enhancements */
.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 0 0 0.375rem 0.375rem;
}

.video-container video {
    max-height: 500px;
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
}

.video-controls-info {
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 10;
}

.video-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 20;
}

/* Analysis Results Enhancements */
.flaw-card {
    transition: transform 0.2s ease-in-out;
}

.flaw-card:hover {
    transform: translateY(-2px);
}

.severity-badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.severity-low {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.severity-medium {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.severity-high {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Video Help Panel */
#videoInfoPanel {
    transition: all 0.3s ease-in-out;
}

#videoInfoPanel.show {
    display: block !important;
}

/* Loading States */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Video */
@media (max-width: 768px) {
    .video-container video {
        max-height: 300px;
    }
    
    .video-controls-info {
        bottom: 5px;
        left: 5px;
        right: 5px;
    }
    
    .video-controls-info .col-md-8,
    .video-controls-info .col-md-4 {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .video-controls-info .text-end {
        text-align: left !important;
    }
}

/* Analysis Metrics Cards */
.metric-card {
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-left-color: #0056b3;
    background-color: #f8f9fa;
}

.metric-card.success {
    border-left-color: #28a745;
}

.metric-card.warning {
    border-left-color: #ffc107;
}

.metric-card.danger {
    border-left-color: #dc3545;
}

/* PDF Download Highlight */
.pdf-highlight {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.pdf-highlight:hover {
    background: linear-gradient(135deg, #218838 0%, #1c7d76 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Coaching Tips Styling */
.coaching-tip {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
}

.coaching-tip .tip-icon {
    color: #856404;
    margin-right: 0.5rem;
}

/* Basketball-themed colors */
.basketball-orange {
    background-color: #ff6b35;
    color: white;
}

.basketball-brown {
    background-color: #8b4513;
    color: white;
}

/* Smooth transitions for all interactive elements */
.btn, .card, .alert {
    transition: all 0.2s ease-in-out;
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
