/* Floating Quick Menu - Bubble Style */

/* Main Floating Button */
.floating-menu-container {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    z-index: 99999 !important;
    pointer-events: all !important;
}

.floating-main-btn {
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    border: none !important;
    position: relative !important;
    pointer-events: all !important;
}

.floating-main-btn.active {
    transform: scale(0.9) rotate(135deg);
}

.floating-main-btn i {
    font-size: 28px;
    color: white;
    transition: transform 0.3s ease;
}

/* Pulse Animation */
.floating-main-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.7;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Bubble Items Container */
.floating-bubbles {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 70px;
}

.floating-bubble {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    transform: scale(0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    bottom: 5px;
    left: 5px;
}

.floating-bubbles.active .floating-bubble {
    opacity: 1;
    transform: scale(1);
}

/* Hover activation */
.floating-menu-container:hover .floating-bubble {
    opacity: 1;
    transform: scale(1);
}

/* Individual bubble positions (radial layout) */
.floating-bubble:nth-child(1) {
    transition-delay: 0.05s;
}
.floating-bubbles.active .floating-bubble:nth-child(1),
.floating-menu-container:hover .floating-bubble:nth-child(1) {
    transform: translate(0, -100px) scale(1);
}

.floating-bubble:nth-child(2) {
    transition-delay: 0.1s;
}
.floating-bubbles.active .floating-bubble:nth-child(2),
.floating-menu-container:hover .floating-bubble:nth-child(2) {
    transform: translate(70px, -70px) scale(1);
}

.floating-bubble:nth-child(3) {
    transition-delay: 0.15s;
}
.floating-bubbles.active .floating-bubble:nth-child(3),
.floating-menu-container:hover .floating-bubble:nth-child(3) {
    transform: translate(100px, 0) scale(1);
}

.floating-bubble:nth-child(4) {
    transition-delay: 0.2s;
}
.floating-bubbles.active .floating-bubble:nth-child(4),
.floating-menu-container:hover .floating-bubble:nth-child(4) {
    transform: translate(70px, 70px) scale(1);
}

.floating-bubble:nth-child(5) {
    transition-delay: 0.25s;
}
.floating-bubbles.active .floating-bubble:nth-child(5),
.floating-menu-container:hover .floating-bubble:nth-child(5) {
    transform: translate(0, 100px) scale(1);
}

.floating-bubble:nth-child(6) {
    transition-delay: 0.3s;
}
.floating-bubbles.active .floating-bubble:nth-child(6),
.floating-menu-container:hover .floating-bubble:nth-child(6) {
    transform: translate(-70px, 70px) scale(1);
}

.floating-bubble:nth-child(7) {
    transition-delay: 0.35s;
}
.floating-bubbles.active .floating-bubble:nth-child(7),
.floating-menu-container:hover .floating-bubble:nth-child(7) {
    transform: translate(-100px, 0) scale(1);
}

.floating-bubble:nth-child(8) {
    transition-delay: 0.4s;
}
.floating-bubbles.active .floating-bubble:nth-child(8),
.floating-menu-container:hover .floating-bubble:nth-child(8) {
    transform: translate(-70px, -70px) scale(1);
}

/* Bubble hover effects */
.floating-bubble:hover {
    transform: translate(var(--x), var(--y)) scale(1.15) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Bubble Colors */
.bubble-game {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bubble-budget {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bubble-packing {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.bubble-currency {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.bubble-map {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.bubble-nearby {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.bubble-tips {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.bubble-podcast {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

/* Bubble Icons */
.floating-bubble i {
    font-size: 24px;
    color: white;
    margin-bottom: 2px;
}

.floating-bubble span {
    font-size: 9px;
    color: white;
    font-weight: 600;
    text-align: center;
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Tooltip on hover */
.floating-bubble::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 75px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-10px);
    font-family: 'Heebo', sans-serif;
}

.floating-bubble:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .floating-menu-container {
        bottom: 20px;
        left: 20px;
    }
    
    .floating-main-btn {
        width: 60px;
        height: 60px;
    }
    
    .floating-main-btn i {
        font-size: 24px;
    }
    
    .floating-bubble {
        width: 50px;
        height: 50px;
    }
    
    .floating-bubble i {
        font-size: 20px;
    }
    
    .floating-bubble span {
        font-size: 8px;
    }
    
    /* Adjust positions for mobile */
    .floating-bubbles.active .floating-bubble:nth-child(1) {
        transform: translate(0, -80px) scale(1);
    }
    
    .floating-bubbles.active .floating-bubble:nth-child(2) {
        transform: translate(55px, -55px) scale(1);
    }
    
    .floating-bubbles.active .floating-bubble:nth-child(3) {
        transform: translate(80px, 0) scale(1);
    }
    
    .floating-bubbles.active .floating-bubble:nth-child(4) {
        transform: translate(55px, 55px) scale(1);
    }
    
    .floating-bubbles.active .floating-bubble:nth-child(5) {
        transform: translate(0, 80px) scale(1);
    }
    
    .floating-bubbles.active .floating-bubble:nth-child(6) {
        transform: translate(-55px, 55px) scale(1);
    }
    
    .floating-bubbles.active .floating-bubble:nth-child(7) {
        transform: translate(-80px, 0) scale(1);
    }
    
    .floating-bubbles.active .floating-bubble:nth-child(8) {
        transform: translate(-55px, -55px) scale(1);
    }
    
    /* Hide tooltips on mobile */
    .floating-bubble::before {
        display: none;
    }
}

/* Animation when page loads */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-menu-container {
    animation: slideInLeft 0.6s ease-out 0.5s both;
}

/* Backdrop when menu is open */
.floating-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.floating-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

/* Hover on main button */
.floating-main-btn:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.7);
}
