/* ==========================================================================
   ENTWINED HEARTS EXTENDED AMBIENT & AUDIO SECURE LAYER
   ========================================================================== */

/* 1. FLOATING IMAGE BUBBLES */
.eh-ambient-bubble {
    position: fixed;
    bottom: -80px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(255, 192, 203, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.5);
    overflow: hidden;
    pointer-events: none; /* Smooth interaction throughput */
    z-index: 9995;
    will-change: transform, opacity;
    animation: eh-ambient-float 14s linear forwards;
}

.eh-ambient-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(20%) saturate(110%);
}

/* 2. ROMANTIC BACKGROUND MUSIC PLAYER INTERFACE */
#eh-ambient-music-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
}

.eh-ambient-music-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #252538; /* Matches dark card theme */
    border: 1px solid rgba(203, 166, 247, 0.4); /* Lilac accent */
    color: #cba6f7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.eh-ambient-music-btn:hover {
    transform: scale(1.1);
    background-color: #313244;
}

/* Musical notes pulse effect when audio is actively running */
.eh-ambient-playing {
    animation: eh-ambient-pulse 2s infinite ease-in-out;
    background-color: #cba6f7 !important;
    color: #11111b !important;
}

/* ==========================================================================
   ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes eh-ambient-float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-120vh) translateX(40px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes eh-ambient-pulse {
    0% { box-shadow: 0 0 0 0 rgba(203, 166, 247, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(203, 166, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(203, 166, 247, 0); }
}