/* Crypto Bubbles Page Styles - CACHE BUST: 20251025-2337-roi-fix */

.bubbles-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: 80vh;
}

/* Header */
.bubbles-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    padding: 60px 40px;
    min-height: 300px;
}

.bubbles-header h1 {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 2;
}

.bubbles-subtitle {
    font-size: 1.2rem;
    color: #a0a0a0;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}


.bubbles-instruction {
    font-size: 1rem;
    color: #00d4ff;
    margin-top: 20px;
    margin-bottom: 30px;
    font-style: italic;
}

/* Decorative Floating Bubbles */
.decorative-bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.decorative-bubble-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    top: 15%;
    left: 15%;
    animation: floatAround1 20s ease-in-out infinite;
}

.decorative-bubble-2 {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    top: 25%;
    right: 18%;
    animation: floatAround2 18s ease-in-out infinite;
}

.decorative-bubble-3 {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    bottom: 25%;
    left: 18%;
    animation: floatAround3 22s ease-in-out infinite;
}

.decorative-bubble-4 {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    bottom: 15%;
    right: 15%;
    animation: floatAround4 19s ease-in-out infinite;
}

@keyframes floatAround1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -25px) scale(1.05);
    }
    50% {
        transform: translate(-15px, -30px) scale(0.98);
    }
    75% {
        transform: translate(-25px, -10px) scale(1.03);
    }
}

@keyframes floatAround2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-20px, 15px) scale(0.95);
    }
    50% {
        transform: translate(-35px, -5px) scale(1.08);
    }
    75% {
        transform: translate(-10px, 25px) scale(0.97);
    }
}

@keyframes floatAround3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(25px, 20px) scale(1.05);
    }
    50% {
        transform: translate(15px, -20px) scale(0.95);
    }
    75% {
        transform: translate(-20px, 15px) scale(1.02);
    }
}

@keyframes floatAround4 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-15px, -20px) scale(0.97);
    }
    50% {
        transform: translate(25px, -10px) scale(1.06);
    }
    75% {
        transform: translate(-5px, 25px) scale(0.94);
    }
}

/* Tab Switcher */
.bubbles-tab-switcher {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.bubble-tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.bubble-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.bubble-tab-btn.active {
    background: linear-gradient(135deg, #00d4ff 0%, #e619e6 100%);
    border: none;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    outline: none;
}

.bubble-tab-btn:focus {
    outline: none;
}

.bubble-tab-btn i {
    font-size: 1.1rem;
}

/* Info Banner */
.bubbles-info {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 15px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    margin-bottom: 30px;
    color: #00d4ff;
    font-size: 0.95rem;
}

.bubbles-info i {
    font-size: 1.1rem;
}

/* Bubbles Canvas */
.bubbles-canvas {
    position: relative;
    min-height: 800px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    overflow: hidden;
}

/* Bubble Styles */
.crypto-bubble {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.crypto-bubble:hover {
    transform: scale(1.1);
    z-index: 1000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Bubble Sizes */
.bubble-xlarge {
    width: 180px;
    height: 180px;
}

.bubble-large {
    width: 140px;
    height: 140px;
}

.bubble-medium {
    width: 110px;
    height: 110px;
}

.bubble-small {
    width: 90px;
    height: 90px;
}

/* Bubble Colors */
.bubble-positive {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border: 3px solid #00ff88;
}

.bubble-negative {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    border: 3px solid #ff4444;
}

/* Bubble Content */
.bubble-logo {
    width: 40%;
    height: 40%;
    border-radius: 50%;
    margin-bottom: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.bubble-symbol {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 4px;
}

.bubble-change {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Bubble Tooltip */
.bubble-tooltip {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.crypto-bubble:hover .bubble-tooltip {
    opacity: 1;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Loading State */
.bubbles-loading {
    text-align: center;
    padding: 60px 20px;
}

.bubbles-loading .loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bubbles-loading p {
    color: #ffffff;
    font-size: 1.1rem;
}

/* Error State */
.bubbles-error {
    text-align: center;
    padding: 60px 20px;
    color: #ff4444;
}

.bubbles-error i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.bubbles-error p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.retry-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #00d4ff 0%, #e619e6 100%);
    border: none;
    border-radius: 25px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.retry-btn i {
    margin-right: 8px;
}

/* Footer */
.bubbles-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.9rem;
    color: #a0a0a0;
}

.bubbles-auto-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bubbles-auto-refresh i {
    animation: spin 2s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bubbles-header h1 {
        font-size: 1.8rem;
    }
    
    .bubbles-subtitle {
        font-size: 0.9rem;
    }
    
    .bubbles-instruction {
        font-size: 0.85rem;
    }
    
    .bubbles-tab-switcher {
        flex-direction: column;
        gap: 10px;
    }
    
    .bubble-tab-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .bubbles-canvas {
        padding: 15px;
        min-height: 800px;
    }
    
    .bubble-xlarge {
        width: 80px;
        height: 80px;
    }
    
    .bubble-large {
        width: 70px;
        height: 70px;
    }
    
    .bubble-medium {
        width: 60px;
        height: 60px;
    }
    
    .bubble-small {
        width: 50px;
        height: 50px;
    }
    
    .bubble-symbol {
        font-size: 0.75rem;
    }
    
    .bubble-change {
        font-size: 0.7rem;
    }
    
    .bubbles-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .bubbles-header h1 {
        font-size: 1.5rem;
    }
    
    .bubbles-subtitle {
        font-size: 0.8rem;
    }
    
    .bubbles-instruction {
        font-size: 0.75rem;
    }
    
    .bubbles-canvas {
        padding: 10px;
        min-height: 700px;
    }
    
    .bubble-xlarge {
        width: 60px;
        height: 60px;
    }
    
    .bubble-large {
        width: 55px;
        height: 55px;
    }
    
    .bubble-medium {
        width: 50px;
        height: 50px;
    }
    
    .bubble-small {
        width: 45px;
        height: 45px;
    }
    
    .bubble-symbol {
        font-size: 0.65rem;
    }
    
    .bubble-change {
        font-size: 0.6rem;
    }
}
