/* Embecom Now Playing Plugin Styles */

#embecom-now-playing {
    position: relative;
}

.embecom-version {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-size: 10px;
    line-height: 1;
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    background: rgba(0, 0, 0, 0.55);
    padding: 2px 6px;
    border-radius: 3px;
    pointer-events: none;
    user-select: none;
    z-index: 5;
}

.embecom-track-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
    margin: 0 auto;
}

.embecom-track-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px;
    border-radius: 12px;
    border: 2px solid #333;
    background-color: #f9f9f9;
    height: 106px; /* 90px image + 8px padding * 2 */
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.embecom-track-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 10;
    position: relative;
}

.embecom-track-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    border: none;
}

.embecom-track-video {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 15px;
    width: 160px; /* 16:9 ratio for 90px height */
    height: 90px;
}

.embecom-track-video iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.embecom-track-info {
    width: 500px;
    flex-shrink: 0;
    padding: 0 20px;
    font-size: 13px;
    color: white;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.embecom-track-info p {
    margin: 4px 0;
}

.embecom-track-info strong {
    font-weight: 600;
}

/* Spotify link styling */
.embecom-track-spotify {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
}

.embecom-track-spotify a {
    display: block;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.embecom-track-spotify a:hover {
    transform: scale(1.05);
}

.embecom-track-spotify a:active {
    transform: scale(1);
}

.embecom-track-spotify a:focus {
    outline: 2px solid #1DB954;
    outline-offset: 2px;
    border-radius: 4px;
}

.embecom-track-spotify img {
    height: 30px !important;
    width: auto !important;
    display: block;
}

/* YouTube zoeklink styling (vorige/volgende tracks; zero-API, geen iframe) */
.embecom-track-youtube {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    flex-shrink: 0;
}

.embecom-track-youtube a {
    display: block;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.embecom-track-youtube a:hover {
    transform: scale(1.05);
}

.embecom-track-youtube a:active {
    transform: scale(1);
}

.embecom-track-youtube a:focus {
    outline: 2px solid #FF0000;
    outline-offset: 2px;
    border-radius: 4px;
}

.embecom-track-youtube svg {
    height: 30px;
    width: auto;
    display: block;
}

/* Track type styling */
.embecom-previous-track { 
    background: linear-gradient(135deg, #02436a 0%, #035a8a 100%);
    border-color: #013a5a;
}

.embecom-current-track { 
    background: linear-gradient(135deg, #c42a1e 0%, #a12217 100%);
    border-color: #8a1d14;
}

.embecom-upcoming-track { 
    background: linear-gradient(135deg, #02436a 0%, #035a8a 100%);
    border-color: #013a5a;
}

/* Error styling */
.embecom-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    text-align: center;
    font-weight: 500;
}

/* Loading state */
.embecom-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .embecom-track-item {
        flex-direction: column;
        height: auto;
        min-height: auto;
        padding: 12px;
    }
    
    .embecom-track-info {
        padding: 10px 0;
        text-align: center;
        order: 2;
    }
    
    .embecom-track-image {
        order: 1;
        margin-bottom: 10px;
    }
    
    .embecom-track-spotify {
        order: 3;
        margin: 10px 0 0 0;
    }
    
    .embecom-track-video {
        order: 4;
        margin-top: 10px;
        height: auto;
        width: auto;
    }

    .embecom-track-youtube {
        order: 4;
        margin: 10px 0 0 0;
    }
    
    .embecom-track-video iframe {
        width: 100%;
        max-width: 300px;
        height: 140px;
    }
    
    .embecom-track-spotify a {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 100px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .embecom-track-info {
        font-size: 11px;
    }
    
    .embecom-track-image {
        width: 70px;
        height: 70px;
    }
    
    .embecom-track-video iframe {
        height: 140px;
    }
    
    .embecom-track-spotify a {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 80px;
        height: 36px;
    }
}

/* Geen CSS-animatie op .embecom-track-item:
   die zou bij elke stille update (poll waar previous/upcoming wordt vervangen)
   opnieuw triggeren en het scherm laten "springen". De jQuery fadeOut/fadeIn
   bij echte trackwissels verzorgt de overgang. */

/* Accessibility improvements */
.embecom-track-image:focus,
.embecom-track-video iframe:focus,
.embecom-track-spotify a:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .embecom-track-item {
        border-width: 3px;
    }
    
    .embecom-track-info {
        text-shadow: none;
    }
    
    .embecom-track-spotify a {
        border: 2px solid #1DB954;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .embecom-track-item {
        transition: none;
    }

    .embecom-track-item:hover {
        transform: none;
    }
    
    .embecom-track-spotify a {
        transition: none;
    }
    
    .embecom-track-spotify a:hover {
        transform: none;
    }
} 