/**
 * Hitz360 Hottest Songs Sidebar Widget Styles
 * Sticky, responsive design with large images
 */

.hottest-sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    overflow: hidden;
}

/* Header with red gradient background */
.hottest-sidebar-header {
    background: linear-gradient(135deg, rgb(218, 52, 55) 0%, #d92323 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 14px 16px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

/* Red gradient underline */
.hottest-sidebar-header::after {
    content: "";
    display: block;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, 
        rgba(218, 52, 55, 0.8) 0%, 
        rgba(217, 35, 35, 0.8) 50%,
        rgba(218, 52, 55, 0.8) 100%);
    position: absolute;
    bottom: -3px;
    left: 0;
}

.hottest-sidebar-list {
    padding: 10px 8px;
}

.hottest-sidebar-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 6px;
    background: #fff;
    position: relative;
    border: 1px solid #f0f0f0;
}

.hottest-sidebar-card:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(218, 52, 55, 0.15);
    border-color: rgba(218, 52, 55, 0.3);
}

.hottest-sidebar-card:last-child {
    margin-bottom: 0;
}

.hottest-sidebar-image-wrapper {
    position: relative;
    width: 85px;
    height: 65px;
    overflow: hidden;
    background: #000;
    border-radius: 6px;
    flex-shrink: 0;
}

.hottest-sidebar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hottest-sidebar-card:hover .hottest-sidebar-image {
    transform: scale(1.1);
}

/* Play overlay */
.hottest-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hottest-sidebar-card:hover .hottest-overlay {
    opacity: 1;
}

.play-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(218, 52, 55, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding-left: 2px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.hottest-sidebar-card:hover .play-icon {
    transform: scale(1);
}

.hottest-sidebar-content {
    flex: 1;
    min-width: 0;
}

.hottest-sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hottest-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hottest-sidebar-category {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, rgb(218, 52, 55), #d92323);
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.hottest-sidebar-date {
    font-size: 10px;
    color: #999;
    font-weight: 500;
}

/* Empty state */
.hottest-sidebar-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.hottest-sidebar-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.hottest-sidebar-empty-text {
    font-size: 14px;
    font-weight: 500;
}

/* Tablet responsiveness */
@media (max-width: 1024px) {
    .hottest-sidebar-widget {
        position: relative;
        top: 0;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hottest-sidebar-widget {
        max-width: 100%;
        position: relative;
        top: 0;
        border-radius: 10px;
    }

    .hottest-sidebar-header {
        font-size: 20px;
        padding: 12px 14px;
    }

    .hottest-icon {
        font-size: 22px;
    }

    .hottest-sidebar-list {
        padding: 10px 8px;
    }

    .hottest-sidebar-image-wrapper {
        width: 75px;
        height: 55px;
    }

    .hottest-sidebar-title {
        font-size: 13px;
    }

    .hottest-sidebar-card {
        padding: 6px;
    }

    .play-icon {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .hottest-sidebar-widget {
        border-radius: 8px;
    }

    .hottest-sidebar-header {
        font-size: 18px;
        padding: 10px 12px;
    }

    .hottest-icon {
        font-size: 20px;
    }

    .hottest-sidebar-list {
        padding: 8px;
    }

    .hottest-sidebar-image-wrapper {
        width: 70px;
        height: 52px;
    }

    .hottest-sidebar-title {
        font-size: 12px;
    }

    .hottest-sidebar-category {
        font-size: 9px;
        padding: 2px 6px;
    }

    .hottest-sidebar-date {
        font-size: 9px;
    }

    .hottest-sidebar-card {
        padding: 5px;
    }
}

/* Scrollbar styling */
.hottest-sidebar-widget::-webkit-scrollbar {
    width: 6px;
}

.hottest-sidebar-widget::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.hottest-sidebar-widget::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgb(218, 52, 55), #d92323);
    border-radius: 3px;
}

.hottest-sidebar-widget::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #d92323, rgb(218, 52, 55));
}
