﻿body {
    /* 1. CONTAINER STYLING */
    .social-wrapper

{
    position: fixed;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    z-index: 9999;
    font-family: system-ui, -apple-system, sans-serif;
}

/* 2. THE MAIN BAR */
#compactBar {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* 3. SOCIAL ICONS */
.social-link {
    transition: transform 0.3s ease, filter 0.3s ease;
    display: flex;
}

    .social-link:hover {
        transform: scale(1.15);
        filter: brightness(1.1);
    }

    .social-link img {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: white; /* Ensures visibility on dark/blur backgrounds */
    }
/* Specific tweaks for branding */
.x-icon img {
    background: #000;
}

.yt-icon img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

/* 4. TOGGLE BUTTONS (Red Circles) */
.toggle-trigger {
    background: #ff3b30;
    color: white;
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 59, 48, 0.4);
    transition: all 0.3s ease;
}

/* Hide Button (Top of bar) */
.hide-btn {
    position: absolute;
    top: -45px;
    width: 34px;
    height: 34px;
}

/* Show Button (Visible when bar is gone) */
#showBtn {
    position: absolute;
    right: 0;
    top: 50%;
    width: 42px;
    height: 42px;
    transform: translateY(-50%) translateX(100px); /* Initially off-screen */
    opacity: 0;
    visibility: hidden;
}

/* 5. ANIMATIONS */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 59, 48, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

.pulsing {
    animation: pulse-red 2s infinite;
}
    }