/**
 * PUENTE DE COMPATIBILIDAD CSS - ALLAGE MIGRATION
 * ================================================
 * Aliases CSS para mantener compatibilidad durante migración
 * de nomenclatura .acf-dokan-plus-* → .ltn-*
 *
 * @package     Allage
 * @subpackage  Compatibility
 * @version     2.0.0
 * @author      Allage Development Team
 * @since       1.0.0
 * @updated     19 Enero 2026
 *
 * @remove-after Migración completa de todos los módulos
 * @tracking    docs/migration/migration-tracker.json
 *
 * IMPORTANTE:
 * - Los estilos principales ahora están en /assets/css/shared/
 * - shared/variables.css define --ltn-* con aliases --acf-*
 * - shared/buttons.css define .ltn-button con alias .acf-button
 * - shared/modals.css define .ltn-modal-close con alias .acf-modal-close
 * - Este archivo complementa los aliases para nomenclatura legacy
 */

/* ============================================
   🔄 ALIASES LEGACY - acf-dokan-plus-* → ltn-*
   ============================================ */

/* Botones legacy - Redirigir a nuevas clases */
.acf-dokan-plus-btn {
    /* Inherits from .ltn-button via shared/buttons.css */
    background: var(--ltn-green-primary, #506727);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ltn-transition, all 0.2s ease);
    min-height: 44px;
}

.acf-dokan-plus-btn:hover {
    background: var(--ltn-terra, #D57B4E);
}

.acf-dokan-plus-btn-primary {
    background: var(--ltn-green-primary, #506727);
    color: white;
}

.acf-dokan-plus-btn-secondary {
    background: var(--ltn-gray-200, #E2E8F0);
    color: var(--ltn-gray-700, #334155);
}

.acf-dokan-plus-btn-danger {
    background: #dc3545;
    color: white;
}

/* ============================================
   📦 CONTENEDORES LEGACY
   ============================================ */

.acf-dokan-plus-modal,
.acf-dokan-plus-modal-overlay {
    /* Mapea a .ltn-modal styles */
}

.acf-dokan-plus-form,
.acf-dokan-plus-form-field {
    /* Mapea a .ltn-form-* styles */
}

.acf-dokan-plus-sidebar {
    /* Mapea a sidebar.css styles */
}

.acf-dokan-plus-table {
    /* Mapea a .ltn-table styles */
}

/* ============================================
   🔧 ALIASES ESPECÍFICOS DE MÓDULOS
   ============================================ */

/* Modal Intercambio legacy */
.acf-modal-intercambio,
.acf-dokan-plus-modal-intercambio {
    /* Usa .ltn-modal styles de modal-intercambio.css */
}

/* Dashboard legacy */
.acf-dokan-plus-dashboard,
.acf-dashboard-container {
    /* Usa .ltn-allage-admin styles */
}

/* Mini-cart WooCommerce */
.woocommerce-mini-cart__buttons a,
.woocommerce-mini-cart__buttons .button,
.widget_shopping_cart .buttons a,
.widget_shopping_cart .buttons .button {
    background-color: var(--ltn-green-primary) !important;
    color: var(--ltn-white) !important;
    border: none !important;
}

.woocommerce-mini-cart__buttons a:hover,
.woocommerce-mini-cart__buttons .button:hover,
.widget_shopping_cart .buttons a:hover,
.widget_shopping_cart .buttons .button:hover {
    background-color: var(--ltn-terra) !important;
    color: var(--ltn-white) !important;
}

/* ============================================
   📊 TRACKING VISUAL (solo en desarrollo)
   ============================================

   Descomentar para visualizar elementos usando
   nomenclatura antigua durante desarrollo
   ============================================ */

/*
.acf-dokan-plus-btn::after {
    content: '⚠️ LEGACY';
    position: absolute;
    top: 0;
    right: 0;
    background: orange;
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 2px;
    z-index: 9999;
    pointer-events: none;
}
*/

/* ============================================
   📝 NOTAS DE MIGRACIÓN
   ============================================

   SISTEMA DE PREFIJOS:
   - .ltn-* : Nuevo prefijo principal (frontend + admin)
   - .acf-* : Alias de compatibilidad (migración en curso)
   - .acf-dokan-plus-* : Legacy (eliminar cuando sea posible)

   ARCHIVOS SHARED/ (cargados globalmente):
   - shared/variables.css: Variables --ltn-* y --acf-*
   - shared/buttons.css: .ltn-button, .acf-button
   - shared/badges.css: .ltn-badge, .acf-badge
   - shared/modals.css: .ltn-modal-close, .acf-modal-close
   - shared/forms.css: .ltn-form-*, .acf-form-*
   - shared/cards.css: .ltn-card, .acf-card

   PARA VERIFICAR USO:
   1. Ejecutar en consola: ALLAGE_MIGRATION_REPORT()
   2. Buscar en código: grep -r "acf-dokan-plus" --include="*.php"

   ============================================ */
