/* Venus NowPlaying History Styles - v1.2.0 */
.vnh-history {
    margin: 20px 0;
}

.vnh-grid {
    display: grid;
    grid-template-columns: repeat(var(--vnh-columns, 4), 1fr);
    gap: 20px;
    margin: 0 auto;
}

.vnh-track-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.5s ease;
    border: 1px solid #e0e0e0;
    opacity: 0;
    transform: translateY(20px);
}

.vnh-track-visible {
    opacity: 1;
    transform: translateY(0);
}

.vnh-track-new {
    animation: newTrackHighlight 1.5s ease;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    position: relative;
}

.vnh-track-new::before {
    content: 'NUEVO';
    position: absolute;
    top: 10px;
    left: 10px;
    background: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

@keyframes newTrackHighlight {
    0% {
        box-shadow: 0 4px 20px rgba(76, 175, 80, 0.6);
        transform: scale(1.02);
    }
    50% {
        box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
        transform: scale(1.01);
    }
    100% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transform: scale(1);
    }
}

.vnh-track-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.vnh-track-visible:hover {
    transform: translateY(-2px);
}

.vnh-cover-art {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Aspect ratio 1:1 */
    overflow: hidden;
    background: #f5f5f5;
}

.vnh-cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vnh-track-card:hover .vnh-cover-image {
    transform: scale(1.05);
}

.vnh-cover-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.vnh-cover-placeholder .dashicons {
    width: 48px;
    height: 48px;
    font-size: 48px;
}

.vnh-buy-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #007cba;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.vnh-buy-button:hover {
    background: #005a87;
    transform: scale(1.1);
    color: white;
    opacity: 1;
}

.vnh-buy-button .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.vnh-track-info {
    padding: 15px;
}

.vnh-play-time {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vnh-song-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vnh-song-artist {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vnh-song-album {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.3;
}

.vnh-buy-link {
    margin-top: 8px;
}

.vnh-buy-text {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.vnh-buy-text:hover {
    background: #005a87;
    color: white;
}

.vnh-no-data {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.vnh-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.vnh-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .vnh-grid {
        grid-template-columns: repeat(3, 1fr);
        --vnh-columns: 3;
    }
}

@media (max-width: 768px) {
    .vnh-grid {
        grid-template-columns: repeat(2, 1fr);
        --vnh-columns: 2;
        gap: 15px;
    }
    
    .vnh-track-info {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .vnh-grid {
        grid-template-columns: 1fr;
        --vnh-columns: 1;
        gap: 12px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .vnh-track-card {
        background: #2c3338;
        border-color: #3c434a;
    }
    
    .vnh-song-title {
        color: #e0e0e0;
    }
    
    .vnh-song-artist {
        color: #a0a0a0;
    }
    
    .vnh-play-time {
        color: #888;
    }
    
    .vnh-cover-placeholder {
        background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    }
    
    .vnh-no-data {
        background: #2c3338;
        border-color: #3c434a;
        color: #a0a0a0;
    }
}