/**
 * Hide Price Module - Front Office Styles COMPLETO
 * Ubicación: /modules/hideprice/views/css/front.css
 */

/* Contenedor principal del mensaje personalizado */
.hideprice-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

.hideprice-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%), 
                linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%), 
                linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    opacity: 0.1;
    pointer-events: none;
}

/* Contenido del mensaje */
.hideprice-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hideprice-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.hideprice-text strong {
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

/* Contenedor del botón de contacto */
.hideprice-contact {
    margin-top: 15px;
}

/* Botón de contacto */
.hideprice-contact-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 2px solid transparent;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.hideprice-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.hideprice-contact-btn:hover::before {
    left: 100%;
}

.hideprice-contact-btn:hover {
    background: white;
    color: #667eea;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.hideprice-contact-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Icono del botón */
.hideprice-contact-btn .material-icons {
    margin-right: 8px;
    font-size: 18px;
}

/* Animaciones */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Efectos hover para el contenedor */
.hideprice-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Variantes de color para diferentes contextos */
.hideprice-container.theme-orange {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
}

.hideprice-container.theme-green {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.hideprice-container.theme-purple {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.hideprice-container.theme-purple .hideprice-text {
    color: #333;
    text-shadow: none;
}

.hideprice-container.theme-purple .hideprice-contact-btn {
    background: #333;
    color: white;
}

.hideprice-container.theme-purple .hideprice-contact-btn:hover {
    background: #555;
    border-color: #333;
}

/* Estilo minimalista alternativo */
.hideprice-container.minimal {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #495057;
    animation: none;
}

.hideprice-container.minimal::before {
    display: none;
}

.hideprice-container.minimal .hideprice-text {
    color: #495057;
    text-shadow: none;
}

.hideprice-container.minimal .hideprice-contact-btn {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.hideprice-container.minimal .hideprice-contact-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Responsive design */
@media (max-width: 768px) {
    .hideprice-container {
        margin: 15px 0;
        padding: 15px;
        border-radius: 8px;
    }
    
    .hideprice-text {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .hideprice-contact-btn {
        padding: 10px 20px;
        font-size: 14px;
        border-radius: 20px;
    }
    
    .hideprice-contact-btn .material-icons {
        font-size: 16px;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .hideprice-container {
        margin: 10px 0;
        padding: 12px;
    }
    
    .hideprice-text {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .hideprice-contact-btn {
        padding: 8px 16px;
        font-size: 13px;
        width: 100%;
        max-width: 200px;
    }
}

/* Integración con temas populares de PrestaShop */

/* Classic Theme */
.classic-theme .hideprice-container {
    border-radius: 0;
    margin: 15px 0;
}

/* Warehouse Theme */
.warehouse-theme .hideprice-container {
    background: #2c3e50;
    border-radius: 0;
}

/* Leo Theme */
.leo-theme .hideprice-container {
    border-radius: 5px;
}

/* Accesibilidad */
.hideprice-container[role="alert"] {
    position: relative;
}

.hideprice-contact-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Modo alto contraste */
@media (prefers-contrast: high) {
    .hideprice-container {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .hideprice-contact-btn {
        background: #fff;
        color: #000;
        border: 2px solid #fff;
    }
    
    .hideprice-contact-btn:hover {
        background: #000;
        color: #fff;
    }
}

/* Modo reducido de movimiento */
@media (prefers-reduced-motion: reduce) {
    .hideprice-container {
        animation: none;
    }
    
    .hideprice-container:hover {
        transform: none;
    }
    
    .hideprice-contact-btn {
        transition: none;
    }
    
    .hideprice-contact-btn::before {
        display: none;
    }
}

/* Estilo para modo oscuro */
@media (prefers-color-scheme: dark) {
    .hideprice-container.auto-theme {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        color: #ecf0f1;
    }
    
    .hideprice-container.auto-theme .hideprice-contact-btn {
        background: rgba(236, 240, 241, 0.9);
        color: #2c3e50;
    }
    
    .hideprice-container.auto-theme .hideprice-contact-btn:hover {
        background: #ecf0f1;
        color: #2c3e50;
    }
}

/* Utilidades adicionales */
.hideprice-hidden {
    display: none !important;
}

.hideprice-visible {
    display: block !important;
}

.hideprice-fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Compatibilidad con frameworks CSS populares */

/* Bootstrap override si es necesario */
.hideprice-container.alert {
    border: none;
    padding: 20px;
}

/* Foundation override si es necesario */
.callout.hideprice-container {
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Print styles */
@media print {
    .hideprice-container {
        background: white !important;
        color: black !important;
        border: 2px solid black;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .hideprice-contact-btn {
        background: white !important;
        color: black !important;
        border: 1px solid black;
    }
    
    .hideprice-contact-btn::before {
        display: none;
    }
}