/* ============================================
   I LOVE ESSENCE - SAN VALENTINO CSS
   Animazione Cuori + Banner Promo
   ============================================ */

/* --------------------------------------------
   1. ANIMAZIONE CUORI FLUTTUANTI
   -------------------------------------------- */

/* Contenitore cuori - posizionato in alto sopra tutto */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* Stile singolo cuore */
.floating-heart {
    position: absolute;
    font-size: 18px;
    opacity: 0;
    animation: floatUp 10s linear infinite;
    text-shadow: 0 0 5px rgba(255, 182, 193, 0.5);
}

/* Animazione salita cuore */
@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    5% {
        opacity: 0.7;
    }
    10% {
        transform: translateY(90vh) rotate(20deg) scale(1);
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

/* Varianti animazione per diversi cuori */
.floating-heart.slow {
    animation-duration: 15s;
}

.floating-heart.fast {
    animation-duration: 7s;
}

.floating-heart.left {
    animation-name: floatUpLeft;
}

.floating-heart.right {
    animation-name: floatUpRight;
}

@keyframes floatUpLeft {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(-50px) rotate(-360deg);
        opacity: 0;
    }
}

@keyframes floatUpRight {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}


/* --------------------------------------------
   2. BANNER PROMO SAN VALENTINO
   "2 PRODOTTI, IL SECONDO A METÀ PREZZO"
   -------------------------------------------- */

/* Banner principale - stile elegante */
.valentine-promo-banner {
    background: linear-gradient(135deg, #E8B4B8 0%, #D4A5A9 50%, #C9A9A6 100%);
    padding: 12px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Effetto shimmer sul banner */
.valentine-promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Contenuto banner */
.valentine-promo-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Icona cuore */
.valentine-promo-content::before {
    content: '💕';
    font-size: 20px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.valentine-promo-content::after {
    content: '💕';
    font-size: 20px;
    animation: heartbeat 1.5s ease-in-out infinite;
    animation-delay: 0.75s;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Testo banner */
.valentine-promo-text {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Testo in evidenza */
.valentine-promo-text strong {
    font-weight: 700;
    font-size: 16px;
}

/* CTA nel banner */
.valentine-promo-cta {
    background: #fff;
    color: #C9A9A6;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.valentine-promo-cta:hover {
    background: #8B6F6F;
    color: #fff;
    transform: scale(1.05);
}


/* --------------------------------------------
   3. VARIANTE BANNER - STILE PIÙ VISTOSO
   -------------------------------------------- */

.valentine-promo-banner--large {
    background: linear-gradient(135deg, #E8B4B8 0%, #8B6F6F 100%);
    padding: 20px 30px;
}

.valentine-promo-banner--large .valentine-promo-text {
    font-size: 18px;
}

.valentine-promo-banner--large .valentine-promo-text strong {
    font-size: 22px;
    display: block;
    margin-bottom: 5px;
}

.valentine-promo-countdown {
    display: inline-flex;
    gap: 10px;
    margin-left: 20px;
}

.valentine-countdown-item {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
    min-width: 45px;
}

.valentine-countdown-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.valentine-countdown-label {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
}


/* --------------------------------------------
   4. BADGE PROMO SUI PRODOTTI
   -------------------------------------------- */

.valentine-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #E8B4B8, #8B6F6F);
    color: #fff;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    z-index: 10;
}

.valentine-product-badge::before {
    content: '💝 ';
}


/* --------------------------------------------
   5. POPUP PROMO (OPZIONALE)
   -------------------------------------------- */

.valentine-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #FDF8F5, #F5E6E8);
    border: 2px solid #E8B4B8;
    border-radius: 15px;
    padding: 25px;
    max-width: 320px;
    box-shadow: 0 10px 40px rgba(232, 180, 184, 0.4);
    z-index: 10000;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.valentine-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #8B6F6F;
}

.valentine-popup-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #8B6F6F;
    margin-bottom: 10px;
}

.valentine-popup-title::before {
    content: '🌹 ';
}

.valentine-popup-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.valentine-popup-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #E8B4B8, #8B6F6F);
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.3s;
}

.valentine-popup-btn:hover {
    transform: scale(1.02);
}


/* --------------------------------------------
   RESPONSIVE
   -------------------------------------------- */

@media (max-width: 768px) {
    .valentine-promo-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .valentine-promo-text {
        font-size: 12px;
    }
    
    .valentine-promo-text strong {
        font-size: 14px;
    }
    
    .valentine-promo-countdown {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .valentine-popup {
        left: 20px;
        right: 20px;
        max-width: none;
        bottom: 20px;
    }
}
