/* Custom styles for enhanced visual effects */

.segment-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.segment-card:hover {
    transform: translateY(-2px);
}

.segment-card.active {
    border: 3px solid #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.segment-card.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    z-index: -1;
}

.play-icon {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.segment-card:hover .play-icon {
    opacity: 1;
}

/* Progress bar animation */
#progressBar {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Video controls enhancement */
button:disabled {
    background-color: #9ca3af !important;
    cursor: not-allowed !important;
}

button:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Main video container */
#mainVideo {
    border-radius: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .segment-card {
        margin-bottom: 1rem;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Enhanced shadows and depth */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.2s ease;
}
