/*
Theme Name: Pasion Fuko Pops
Description: A fast WordPress theme using Tailwind CSS and REST API
Version: 1.0
Author: Your Name
Text Domain: pasion-fuko-pops
*/

/* Tailwind CSS will be loaded via CDN in header */
@import url('https://cdn.tailwindcss.com');

/* Estilos personalizados para animaciones avanzadas */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.animate-shimmer {
    position: relative;
    overflow: hidden;
}

.animate-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

/* Efecto de brillo en hover de tarjetas */
.funko-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Animación de entrada suave */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejorar la experiencia en dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .funko-card:hover {
        transform: none;
    }

    .funko-filter-btn:hover {
        transform: none;
    }
}

/* Optimización de imágenes WebP */
img[src$=".webp"] {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Lazy loading para imágenes */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}


/* Optimización específica para hover de imágenes WebP */
.group img[src*="image2"] {
    will-change: opacity, transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Mejorar transiciones de hover */
.group:hover img[src*="image2"] {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Solo estilos esenciales para el pseudo-elemento ::before de Dashicons */
.favorite-btn .dashicons::before {
    font-family: dashicons !important;
    content: "\f487" !important; /* dashicons-heart */
    font-size: 18px !important;
    line-height: 1 !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
}

.favorite-btn .dashicons {
    font-size: 18px !important;
    line-height: 1 !important;
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    position: relative !important;
}

/* Ocultar el contenido del span para mostrar solo el pseudo-elemento */
.notification-icon {
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
}

/* Pseudo-elementos para notificaciones usando Dashicons */
.notification-icon[data-type="success"]::before {
    content: "\f487"; /* dashicons-heart-filled */
    font-family: dashicons;
    color: white;
    font-size: 18px;
    font-weight: normal;
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

.notification-icon[data-type="error"]::before {
    content: "\f487"; /* dashicons-heart */
    font-family: dashicons;
    color: white;
    font-size: 18px;
    font-weight: normal;
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

.notification-icon[data-type="info"]::before {
    content: "\f348"; /* dashicons-info */
    font-family: dashicons;
    color: white;
    font-size: 18px;
    font-weight: normal;
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
}
