/**
 * Hawaii Reggae Network - Playlist History Widget Styles

 */

.hrn-playlist-widget {
    background: linear-gradient(135deg, #c41e3a 0%, #1a472a 50%, #006b3f 100%);
    border-radius: 12px;
    padding: 20px 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    position: relative;
    overflow: hidden;
}



.hrn-playlist-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.4);
}

.hrn-playlist-header h3 {
    margin: 0;
    font-size: 20px;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.hrn-playlist-header .station-tagline {
    font-size: 11px;
    color: #ffd700;
    font-style: italic;
    margin: 5px 0 0 0;
}

.hrn-playlist-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Animation for playlist updates */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hrn-playlist-items.playlist-update .hrn-playlist-item {
    animation: fadeIn 0.4s ease-out;
}

.hrn-playlist-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.hrn-playlist-item:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateX(5px);
}

/* Highlight most recent track */
.hrn-playlist-item:first-child {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.hrn-playlist-item:first-child:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.5);
}

.hrn-playlist-albumart {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.hrn-playlist-item:first-child .hrn-playlist-albumart {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.hrn-playlist-albumart img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hrn-playlist-info {
    flex: 1;
    min-width: 0;
}

.hrn-playlist-title {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff !important;
    margin: 0 0 3px 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.hrn-playlist-item:first-child .hrn-playlist-title {
    font-size: 18px;
    color: #ffd700 !important;
}

.hrn-playlist-artist {
    font-size: 14px;
    color: #ffd700 !important;
    margin: 0 0 2px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.hrn-playlist-item:first-child .hrn-playlist-artist {
    font-size: 15px;
}

.hrn-playlist-album {
    font-size: 12px;
    color: #ffed4e !important;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    opacity: 0.9;
}

.hrn-playlist-time {
    font-size: 11px;
    color: rgba(255, 215, 0, 0.7);
    white-space: nowrap;
    flex-shrink: 0;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.hrn-playlist-item:first-child .hrn-playlist-time {
    font-size: 12px;
    font-weight: bold;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

.hrn-playlist-empty {
    text-align: center;
    color: rgba(255, 215, 0, 0.7);
    font-style: italic;
    padding: 30px 20px;
    font-size: 14px;
}

.hrn-error {
    text-align: center;
    color: #ffaaaa;
    font-size: 14px;
    padding: 20px;
    background: rgba(196, 30, 58, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(196, 30, 58, 0.4);
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hrn-playlist-widget {
        padding: 15px 20px;
    }
    
    .hrn-playlist-item {
        padding: 10px 12px;
        gap: 12px;
    }
    
    .hrn-playlist-albumart {
        width: 45px;
        height: 45px;
    }
    
    .hrn-playlist-item:first-child .hrn-playlist-albumart {
        width: 55px;
        height: 55px;
    }
    
    .hrn-playlist-title {
        font-size: 15px;
    }
    
    .hrn-playlist-item:first-child .hrn-playlist-title {
        font-size: 16px;
    }
    
    .hrn-playlist-artist {
        font-size: 13px;
    }
    
    .hrn-playlist-time {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .hrn-playlist-widget {
        padding: 12px 15px;
    }
    
    .hrn-playlist-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .hrn-playlist-time {
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }
    
    .hrn-playlist-albumart {
        width: 50px;
        height: 50px;
    }
    
    .hrn-playlist-item:first-child .hrn-playlist-albumart {
        width: 60px;
        height: 60px;
    }
    
    .hrn-playlist-info {
        flex: 1;
        min-width: 200px;
    }
}
