/* Card Video Controller Styles */
/* Provides visual feedback for video playback states */

/* Base styles for interactive video cards */
.video-card-interactive {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.video-card-interactive:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Playing state - visual feedback when video is playing */
.letter-card.playing {
    border: 3px solid #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
}

.letter-card.playing::before {
    content: "▶";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #4CAF50;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 10;
    animation: pulse 2s infinite;
}

/* Paused state - visual feedback when video is paused */
.letter-card.paused {
    border: 3px solid #757575;
    box-shadow: 0 0 10px rgba(117, 117, 117, 0.2);
}

.letter-card.paused::before {
    content: "⏸";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #757575;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 10;
}

/* Error state - visual feedback when video fails to load */
.letter-card.video-error {
    border: 3px solid #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.2);
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(244, 67, 54, 0.05));
}

.letter-card.video-error::before {
    content: "⚠";
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f44336;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 10;
}

/* Enhanced video hover effects */
.video-card-interactive video {
    transition: all 0.3s ease;
}

.video-card-interactive:hover video {
    transform: scale(1.02);
}

.letter-card.playing video {
    border-radius: 8px;
}

/* Animation for playing indicator */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
    .letter-card.playing::before,
    .letter-card.paused::before,
    .letter-card.video-error::before {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: 5px;
        right: 5px;
    }
    
    .video-card-interactive:hover {
        transform: none; /* Disable hover effects on mobile */
    }
}

/* Focus styles for accessibility */
.video-card-interactive:focus {
    outline: 3px solid #2196F3;
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .letter-card.playing {
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(76, 175, 80, 0.1));
    }
    
    .letter-card.video-error {
        background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(244, 67, 54, 0.1));
    }
}