/**
 * Ad Remarket - Estilos para Notificaciones de Compras
 */

/* Contenedor principal de la notificación */
.ad-remarket-notificacion {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    max-width: 350px;
    min-width: 280px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    animation: slideInUp 0.5s ease-out;
}

/* Wrapper interno */
.ad-remarket-notif-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 8px;
}

/* Icono de la notificación */
.ad-remarket-notif-icon {
    font-size: 24px;
    margin-right: 12px;
    flex-shrink: 0;
    animation: bounce 2s infinite;
}

/* Contenido de texto */
.ad-remarket-notif-content {
    flex: 1;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.ad-remarket-notif-content:hover {
    opacity: 0.9;
}

/* Texto principal */
.ad-remarket-notif-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.ad-remarket-notif-text strong {
    font-weight: 600;
}

/* Nombre del producto */
.ad-remarket-notif-producto {
    color: #ffd700;
    font-weight: 500;
}

/* Tiempo de la compra */
.ad-remarket-notif-tiempo {
    font-size: 12px;
    opacity: 0.8;
    font-style: italic;
}

/* Botón de cerrar */
.ad-remarket-notif-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    opacity: 0.7;
}

.ad-remarket-notif-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

/* Animaciones */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Variantes de color */
.ad-remarket-notif-wrapper.variant-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.ad-remarket-notif-wrapper.variant-orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.ad-remarket-notif-wrapper.variant-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .ad-remarket-notificacion {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
        min-width: auto;
    }
    
    .ad-remarket-notif-wrapper {
        padding: 14px;
    }
    
    .ad-remarket-notif-text {
        font-size: 13px;
    }
    
    .ad-remarket-notif-icon {
        font-size: 20px;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .ad-remarket-notif-wrapper {
        padding: 12px;
    }
    
    .ad-remarket-notif-text {
        font-size: 12px;
    }
    
    .ad-remarket-notif-tiempo {
        font-size: 11px;
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    .ad-remarket-notif-wrapper {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .ad-remarket-notif-producto {
        color: #f39c12;
    }
}

/* Estados de hover y focus para accesibilidad */
.ad-remarket-notif-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Animación de salida */
.ad-remarket-notificacion.hiding {
    animation: slideOutDown 0.5s ease-in forwards;
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}