/**
 * Widget: History - Estilos Completos
 * Historial de canciones reproducidas
 */

/* ==================== ESTRUCTURA BASE ==================== */

.history-widget {
    /* Wrapper del widget */
}

/* ==================== LISTA DE HISTORIAL ==================== */

/* Historia de canciones - con scroll y ellipsis */
#historyList {
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

#historyList::-webkit-scrollbar {
    width: 6px;
}

#historyList::-webkit-scrollbar-track {
    background: transparent;
}

#historyList::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

#historyList::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

#historyList .min-w-0 {
    overflow: hidden;
}

#historyList h5,
#historyList p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#historyList h5 {
    color: var(--text-primary);
}

#historyList p {
    color: var(--text-secondary);
}

/* ==================== DARK MODE ==================== */

[data-theme="dark"] #historyList > div {
    background: rgba(60, 60, 60, 0.4);
    border-color: rgba(100, 100, 100, 0.5);
}

[data-theme="dark"] #historyList > div:hover {
    background: rgba(80, 80, 80, 0.6);
}

[data-theme="dark"] #historyList h5 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] #historyList p {
    color: var(--text-tertiary) !important;
}

/* ==================== RESPONSIVE ==================== */

/* MOBILE */
@media (max-width: 768px) {
    #historyContainer {
        padding: 1rem !important;
        border-radius: 1.25rem !important;
    }

    #historyContainer h3 {
        font-size: 0.9375rem !important;
        margin-bottom: 0.75rem !important;
    }

    #historyList > div {
        padding: 0.75rem !important;
    }
}

/* EXTRA SMALL */
@media (max-width: 480px) {
    /* Historial aún más compacto en pantallas pequeñas */
    #historyList {
        max-height: 220px !important;
    }

    #historyList > div {
        padding: 0.5rem !important;
        gap: 0.5rem !important;
    }

    #historyList .w-12 {
        width: 2rem !important;
        height: 2rem !important;
    }

    #historyList h5 {
        font-size: 0.8125rem !important;
    }

    #historyList p {
        font-size: 0.6875rem !important;
    }
}
