/**
 * KandangAlwi - Valentine Theme
 * Activated via event_settings.event_theme = 'valentine'
 * Adds floating hearts, pink accents, and romantic visuals across all pages
 */

/* ============================================
   FLOATING HEARTS ANIMATION
   ============================================ */
.valentine-hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.valentine-heart {
    position: absolute;
    bottom: -50px;
    color: #e91e63;
    font-size: 18px;
    opacity: 0;
    animation: floatHeart linear infinite;
    pointer-events: none;
    filter: drop-shadow(0 0 4px rgba(233, 30, 99, 0.3));
}

@keyframes floatHeart {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg) scale(0.5);
    }
    10% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.5;
        transform: translateY(-50vh) rotate(180deg) scale(1);
    }
    90% {
        opacity: 0.2;
    }
    100% {
        opacity: 0;
        transform: translateY(-110vh) rotate(360deg) scale(0.8);
    }
}

/* Heart variants */
.valentine-heart:nth-child(1) { left: 5%; font-size: 14px; animation-duration: 12s; animation-delay: 0s; color: #ff4081; }
.valentine-heart:nth-child(2) { left: 15%; font-size: 20px; animation-duration: 15s; animation-delay: 2s; color: #e91e63; }
.valentine-heart:nth-child(3) { left: 25%; font-size: 12px; animation-duration: 10s; animation-delay: 4s; color: #f48fb1; }
.valentine-heart:nth-child(4) { left: 35%; font-size: 22px; animation-duration: 18s; animation-delay: 1s; color: #ff80ab; }
.valentine-heart:nth-child(5) { left: 45%; font-size: 16px; animation-duration: 13s; animation-delay: 3s; color: #f06292; }
.valentine-heart:nth-child(6) { left: 55%; font-size: 10px; animation-duration: 11s; animation-delay: 5s; color: #ec407a; }
.valentine-heart:nth-child(7) { left: 65%; font-size: 24px; animation-duration: 16s; animation-delay: 0.5s; color: #e91e63; }
.valentine-heart:nth-child(8) { left: 75%; font-size: 13px; animation-duration: 14s; animation-delay: 3.5s; color: #ff4081; }
.valentine-heart:nth-child(9) { left: 85%; font-size: 18px; animation-duration: 17s; animation-delay: 1.5s; color: #f48fb1; }
.valentine-heart:nth-child(10) { left: 92%; font-size: 15px; animation-duration: 12s; animation-delay: 4.5s; color: #ff80ab; }
.valentine-heart:nth-child(11) { left: 10%; font-size: 11px; animation-duration: 19s; animation-delay: 6s; color: #f06292; }
.valentine-heart:nth-child(12) { left: 50%; font-size: 16px; animation-duration: 14s; animation-delay: 7s; color: #ec407a; }

/* ============================================
   VALENTINE NAVBAR ACCENT
   ============================================ */
body.valentine-theme .navbar {
    border-bottom: 2px solid rgba(233, 30, 99, 0.3) !important;
    box-shadow: 0 2px 20px rgba(233, 30, 99, 0.1);
}

/* ============================================
   VALENTINE FOOTER
   ============================================ */
body.valentine-theme footer {
    border-top: 2px solid rgba(233, 30, 99, 0.3) !important;
    background: linear-gradient(135deg, #2c2c3c 0%, #3c2030 100%) !important;
}

/* ============================================
   VALENTINE GLOW ON CARDS & BUTTONS
   ============================================ */
body.valentine-theme .event-card {
    border-color: rgba(233, 30, 99, 0.25) !important;
}
body.valentine-theme .event-card:hover {
    border-color: #e91e63 !important;
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.2) !important;
}
body.valentine-theme .event-card::before {
    background: linear-gradient(90deg, #e91e63, #ff4081, #f48fb1) !important;
}
body.valentine-theme .btn-event-buy {
    background: linear-gradient(135deg, #e91e63, #ff4081) !important;
    color: white !important;
}
body.valentine-theme .btn-event-buy:hover {
    background: linear-gradient(135deg, #c2185b, #e91e63) !important;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4) !important;
}

/* ============================================
   VALENTINE SIDEBAR ACCENT
   ============================================ */
body.valentine-theme .nav-link.active {
    border-left-color: #e91e63 !important;
}

/* ============================================
   VALENTINE EVENT BADGE 
   ============================================ */
body.valentine-theme .badge-couple-rank {
    background: rgba(233, 30, 99, 0.2) !important;
    color: #ff4081 !important;
    border-color: rgba(233, 30, 99, 0.4) !important;
}

/* ============================================
   VALENTINE HOMEPAGE PRODUCT CARDS
   ============================================ */
body.valentine-theme .card:hover {
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.3) !important;
}

/* ============================================
   VALENTINE EVENT MODAL
   ============================================ */
body.valentine-theme .event-modal-header {
    background: linear-gradient(135deg, #3c2030, #2c2c3c) !important;
    border-bottom-color: rgba(233, 30, 99, 0.3) !important;
}
body.valentine-theme .event-modal-header i {
    color: #ff4081 !important;
}

/* ============================================
   VALENTINE CORNER DECORATIONS
   ============================================ */
.valentine-corner-tl,
.valentine-corner-br {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.12;
}

.valentine-corner-tl {
    top: -30px;
    left: -30px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at 30% 30%, #e91e63 0%, transparent 70%);
}

.valentine-corner-br {
    bottom: -30px;
    right: -30px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at 70% 70%, #ff4081 0%, transparent 70%);
}

/* ============================================
   VALENTINE CASHBACK INFO
   ============================================ */
body.valentine-theme .cashback-info {
    background: rgba(233, 30, 99, 0.08) !important;
    border-color: rgba(233, 30, 99, 0.25) !important;
}
body.valentine-theme .cashback-info p {
    color: #f48fb1 !important;
}

/* ============================================
   VALENTINE PRICE COLOR
   ============================================ */
body.valentine-theme .price-event-sale {
    color: #ff4081 !important;
}

/* ============================================
   VALENTINE EVENT PAGE HEADER
   ============================================ */
body.valentine-theme .category__header h3 {
    color: #ff4081 !important;
    text-shadow: 0 0 20px rgba(233, 30, 99, 0.3);
}

/* ============================================
   VALENTINE SCROLLBAR ACCENT
   ============================================ */
body.valentine-theme::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 99, 0.4) !important;
}
body.valentine-theme::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 30, 99, 0.6) !important;
}

/* ============================================
   PRODUCT IMAGE IN EVENT CARD
   ============================================ */
.event-card-image {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 14px;
    border-radius: 8px;
    display: block;
}

/* ============================================
   RESPONSIVE: reduce hearts on mobile
   ============================================ */
@media (max-width: 768px) {
    .valentine-heart:nth-child(n+7) {
        display: none;
    }
    .valentine-corner-tl,
    .valentine-corner-br {
        width: 150px;
        height: 150px;
    }
    .event-card-image {
        height: 100px;
    }
}
