/* Floating Sidebar Styles */
.floating-sidebar {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
    border-radius: 15px;
    background-color: rgba(20, 10, 22, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.floating-sidebar-item {
    background-color: rgba(29, 19, 34, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 55px;
    height: 55px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    color: white;
    text-decoration: none;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-sidebar-item:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 61, 61, 0.8);
    box-shadow: 0 8px 20px rgba(255, 61, 61, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-sidebar-item i {
    font-size: 18px;
    color: #FF3D3D;
    margin-bottom: 4px;
}

.floating-sidebar-item:hover i {
    color: white;
}

.floating-sidebar-item span {
    font-size: 7px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: white;
    line-height: 1;
}

/* Live Demo special styling */
.floating-sidebar-item.live {
    background-color: rgba(44, 9, 9, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 61, 61, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 61, 61, 0.1);
    position: relative;
}

.floating-sidebar-item.live i {
    color: #FF3D3D;
}

.floating-sidebar-item.live:hover i {
    color: white;
}

.floating-sidebar-item.live::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    background-color: #FF3D3D;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 5px rgba(255, 61, 61, 0.8);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 61, 61, 0.8);
    }
    
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 10px 3px rgba(255, 61, 61, 0.4);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 61, 61, 0);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .floating-sidebar {
        right: 10px;
        padding: 8px;
        background-color: rgba(20, 10, 22, 0.3);
    }
    
    .floating-sidebar-item {
        width: 45px;
        height: 45px;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
    
    .floating-sidebar-item i {
        font-size: 16px;
    }
    
    .floating-sidebar-item span {
        font-size: 6px;
    }
}

/* Fix for browsers that don't support backdrop-filter */
@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
    .floating-sidebar {
        background-color: rgba(20, 10, 22, 0.85);
    }
    
    .floating-sidebar-item {
        background-color: rgba(29, 19, 34, 0.9);
    }
    
    .floating-sidebar-item.live {
        background-color: rgba(44, 9, 9, 0.9);
    }
    
    .floating-sidebar-item:hover {
        background-color: rgba(255, 61, 61, 0.95);
    }
}
