/* Floating Social Navigation Bar */
.floating-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 15, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 35px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: 70px;
    height: 70px;
}

.floating-nav.expanded {
    width: 430px;
    padding: 12px;
    border-radius: 60px;
}

.floating-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: none;
    outline: none;
    order: 2;
    z-index: 2;
}

.floating-toggle:hover {
    transform: scale(1.05);
    background: var(--primary-accent-dark);
}

.floating-toggle.active {
    transform: rotate(45deg) scale(1.05);
    background: var(--primary-accent-dark);
}

.floating-toggle svg {
    width: 20px;
    height: 20px;
    fill: #0f0f0f;
    transition: transform 0.3s ease;
}

.floating-toggle.active svg {
    transform: rotate(-45deg);
}

.floating-social-links-left {
    display: flex;
    gap: 8px;
    margin-right: 12px;
    width: 165px;
    justify-content: flex-end;
    transform: scaleX(0);
    opacity: 0;
    transform-origin: right center;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55),
               opacity 0.4s ease;
    order: 1;
}

.floating-social-links-right {
    display: flex;
    gap: 8px;
    margin-left: 12px;
    width: 165px;
    justify-content: flex-start;
    transform: scaleX(0);
    opacity: 0;
    transform-origin: left center;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55),
               opacity 0.4s ease;
    order: 3;
}

.floating-social-links-left.active {
    transform: scaleX(1);
    opacity: 1;
}

.floating-social-links-right.active {
    transform: scaleX(1);
    opacity: 1;
}

.floating-social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.15s ease;
    flex-shrink: 0;
    margin: 3px;
}

.floating-social-link:hover {
    background: rgba(15, 15, 15, 0.8);
    transform: scale(1.1) translateY(-2px);
}

.floating-social-link svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.floating-social-link.youtube:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
}

.floating-social-link.twitter:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: #1da1f2;
}

.floating-social-link.github:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.floating-social-link.patreon:hover {
    background: rgba(255, 66, 77, 0.2);
    border-color: #ff424d;
}

.floating-social-link.itch:hover {
    background: rgba(250, 92, 92, 0.2);
    border-color: #fa5c5c;
}

.floating-social-link.email:hover {
    background: rgba(var(--primary-accent-rgb), 0.2);
    border-color: var(--primary-accent);
}

.floating-social-link.bluesky:hover {
    background: rgba(0, 133, 255, 0.2);
    border-color: #0085ff;
}

.floating-social-links-left.active .floating-social-link:nth-child(1) { transition-delay: 0.1s; }
.floating-social-links-left.active .floating-social-link:nth-child(2) { transition-delay: 0.15s; }
.floating-social-links-left.active .floating-social-link:nth-child(3) { transition-delay: 0.2s; }
.floating-social-links-right.active .floating-social-link:nth-child(1) { transition-delay: 0.1s; }
.floating-social-links-right.active .floating-social-link:nth-child(2) { transition-delay: 0.15s; }
.floating-social-links-right.active .floating-social-link:nth-child(3) { transition-delay: 0.2s; }

@media (max-width: 768px) {
    .floating-nav {
        bottom: 20px;
        padding: 8px;
        border-radius: 30px;
        width: 61px;
        height: 61px;
    }

    .floating-nav.expanded {
        width: 340px;
        padding: 10px 20px;
        border-radius: 50px;
    }

    .floating-toggle {
        width: 45px;
        height: 45px;
    }

    .floating-toggle svg {
        width: 18px;
        height: 18px;
    }

    .floating-social-links-left {
        gap: 6px;
        margin-right: 10px;
        width: 140px;
    }

    .floating-social-links-right {
        gap: 6px;
        margin-left: 10px;
        width: 140px;
    }

    .floating-social-link {
        width: 38px;
        height: 38px;
        margin: 2px;
    }

    .floating-social-link svg {
        width: 16px;
        height: 16px;
    }
}