/**
 * Estilos Frontend para Hanna SKU Linker PRO
 *
 * @package Hanna_SKU_Linker_PRO
 * @since 1.0.0
 */

/* Enlaces de SKU */
.hslp-sku-link {
    color: var(--hslp-link-color, #005CB9);
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.hslp-sku-link:hover {
    color: var(--hslp-link-hover-color, #003d7a);
    text-decoration: none;
}

.hslp-sku-link:focus {
    outline: 2px solid var(--hslp-link-color, #005CB9);
    outline-offset: 2px;
}

/* Estilo alternativo: badge */
body.hslp-style-badge .hslp-sku-link {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95em;
    border: 1px solid #ddd;
}

body.hslp-style-badge .hslp-sku-link:hover {
    background: var(--hslp-link-color, #005CB9);
    color: #fff;
    border-color: var(--hslp-link-color, #005CB9);
}

/* Estilo alternativo: button */
body.hslp-style-button .hslp-sku-link {
    display: inline-block;
    background: var(--hslp-link-color, #005CB9);
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
}

body.hslp-style-button .hslp-sku-link:hover {
    background: var(--hslp-link-hover-color, #003d7a);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Loading state */
.hslp-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animación sutil para enlaces nuevos */
@keyframes hslpFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hslp-sku-link {
    animation: hslpFadeIn 0.3s ease-in-out;
}
