/* ============================================
   PNG OVERLAY HOTSPOTS - Transparent device cutouts with glow
   Uses actual device images instead of glow rectangles
   Updated: Warm white-yellow glow instead of blue
   ============================================ */

/* Base hotspot container - transparent, only shows PNG */
.interactive-hero .hotspot {
    position: absolute;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    /* Remove rectangle styling */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    animation: none !important;
    /* Let content size determine the hotspot */
    width: auto !important;
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Allow PNG to extend beyond hotspot bounds */
    overflow: visible !important;
}

/* Hide emoji span when PNG is present */
.interactive-hero .hotspot.has-png>span {
    display: none;
}

/* PNG device image styling - warm white-yellow glow */
.interactive-hero .hotspot .hotspot-png {
    display: block;
    /* Explicit sizing - no max-width to avoid 0px when parent is auto */
    height: 80px;
    width: auto;
    min-width: 40px;
    /* No glow by default - only on hover */
    filter: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: none;
}

/* Enhanced hover state - lift + warm white-yellow glow */
.interactive-hero .hotspot.has-png:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 50;
}

.interactive-hero .hotspot.has-png:hover .hotspot-png {
    filter: drop-shadow(0 0 15px rgba(255, 255, 240, 0.95)) drop-shadow(0 0 30px rgba(255, 250, 200, 0.7)) drop-shadow(0 0 50px rgba(255, 245, 180, 0.4));
    animation: none;
}

/* Active/clicked state - stronger warm glow */
.interactive-hero .hotspot.has-png.active .hotspot-png {
    filter: drop-shadow(0 0 20px rgba(255, 255, 240, 1)) drop-shadow(0 0 40px rgba(255, 250, 200, 0.9)) drop-shadow(0 0 60px rgba(255, 245, 180, 0.6));
}

/* ============================================
   Device-specific sizing
   Adjust these based on actual PNG dimensions
   ============================================ */

/* Plant PNG sizing */
.interactive-hero .hotspot[data-popup="plant-popup"] .hotspot-png {
    height: 180px;
}

/* TV PNG sizing (when added) */
.interactive-hero .hotspot[data-popup="tv-popup"] .hotspot-png {
    width: 200px;
}

/* Desktop PC PNG sizing (when added) */
.interactive-hero .hotspot[data-popup="desktop-popup"] .hotspot-png {
    height: 150px;
}

/* WiFi Router PNG sizing (when added) */
.interactive-hero .hotspot[data-popup="wifi-popup"] .hotspot-png {
    height: 60px;
}

/* Laptop PNG sizing (when added) */
.interactive-hero .hotspot[data-popup="laptop-popup"] .hotspot-png {
    width: 120px;
}

/* ============================================
   Fallback for hotspots without PNG 
   (keeps old emoji styling) - warm white-yellow glow
   ============================================ */
.interactive-hero .hotspot:not(.has-png) {
    /* Restore original rectangle glow styling for emoji hotspots */
    background: rgba(255, 250, 220, 0.08) !important;
    border: 2px solid rgba(255, 250, 200, 0.5) !important;
    border-radius: 8px !important;
    box-shadow:
        0 0 15px rgba(255, 255, 240, 0.4),
        0 0 30px rgba(255, 250, 200, 0.2),
        inset 0 0 20px rgba(255, 255, 240, 0.1) !important;
    backdrop-filter: blur(2px) !important;
    width: 50px !important;
    height: 50px !important;
    animation: none !important;
}

/* Emoji styling for non-PNG hotspots */
.interactive-hero .hotspot:not(.has-png) span {
    font-size: 1.5rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.interactive-hero .hotspot:not(.has-png):hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 0 20px rgba(255, 255, 240, 0.8),
        0 0 40px rgba(255, 250, 200, 0.5),
        0 0 60px rgba(255, 245, 180, 0.3),
        inset 0 0 25px rgba(255, 255, 240, 0.15) !important;
    border-color: rgba(255, 255, 220, 0.9) !important;
    background: rgba(255, 255, 240, 0.15) !important;
    animation: none !important;
    z-index: 50;
}

.interactive-hero .hotspot:not(.has-png):hover span {
    opacity: 1;
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* ============================================
   Mobile responsiveness
   ============================================ */
@media (max-width: 768px) {
    .interactive-hero .hotspot:not(.has-png) {
        width: 40px !important;
        height: 40px !important;
    }

    .interactive-hero .hotspot:not(.has-png) span {
        font-size: 1.2rem;
    }

    /* Scale down PNG hotspots on mobile */
    .interactive-hero .hotspot.has-png .hotspot-png {
        transform: scale(0.75);
    }

    .interactive-hero .hotspot.has-png:hover {
        transform: translateY(-6px) scale(0.85);
    }
}