/* ============================================================
   STRAFOR PREMIUM SOCIAL SIDEBAR — sidebar.css (v3)
   ============================================================ */

.spss-sidebar-wrap {
    position: fixed;
    left: 0;
    bottom: 80px;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* Main Toggle Button - Premium Ultra Icon-based (v3) */
.spss-main-btn {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 18px 18px 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow: visible;
    /* For sparkle positioning */

    /* Advanced Glassmorphism */
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    background: linear-gradient(135deg, var(--accent-rgba-low, rgba(37, 99, 235, 0.85)), var(--accent-rgba-high, rgba(30, 20, 150, 0.95)));

    /* Layered Shadows */
    box-shadow:
        10px 0 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(var(--accent-rgb, 37, 99, 235), 0.3);

    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.spss-main-btn:hover {
    width: 68px;
    padding-left: 8px;
    box-shadow:
        15px 0 40px rgba(0, 0, 0, 0.35),
        inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.spss-btn-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spss-float 3s ease-in-out infinite;
}

.spss-btn-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.spss-sparkle {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 14px;
    animation: spss-sparkle-pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 5px #fff);
}

/* Glow Effect */
.spss-main-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 0 20px 20px 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.spss-main-btn:hover::after {
    opacity: 1;
}

/* Social Icons List */
.spss-icons-list {
    position: absolute;
    left: 0;
    bottom: 100%;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 0 0 15px 10px;
}

.spss-sidebar-wrap.active .spss-icons-list {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Individual Icon Buttons */
.spss-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateX(-40px) rotate(-15deg);
    opacity: 0;
}

.spss-sidebar-wrap.active .spss-icon-btn {
    transform: translateX(0) rotate(0);
    opacity: 1;
}

/* Staggered animation */
.spss-sidebar-wrap.active .spss-icon-btn:nth-child(n) {
    transition-delay: calc(var(--n, 1) * 0.05s);
}

.spss-sidebar-wrap.active .spss-icon-btn:nth-child(1) {
    --n: 1;
}

.spss-sidebar-wrap.active .spss-icon-btn:nth-child(2) {
    --n: 2;
}

.spss-sidebar-wrap.active .spss-icon-btn:nth-child(3) {
    --n: 3;
}

.spss-sidebar-wrap.active .spss-icon-btn:nth-child(4) {
    --n: 4;
}

.spss-sidebar-wrap.active .spss-icon-btn:nth-child(5) {
    --n: 5;
}

.spss-sidebar-wrap.active .spss-icon-btn:nth-child(6) {
    --n: 6;
}

.spss-sidebar-wrap.active .spss-icon-btn:nth-child(7) {
    --n: 7;
}

.spss-icon-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.spss-icon-btn:hover {
    transform: scale(1.15) !important;
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.spss-icon-btn:hover svg {
    transform: rotate(10deg);
}

/* Animations */
@keyframes spss-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes spss-sparkle-pulse {

    0%,
    100% {
        transform: scale(1) rotate(0);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.4) rotate(15deg);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .spss-main-btn {
        width: 54px;
        height: 54px;
        border-radius: 0 15px 15px 0;
    }

    .spss-icon-btn {
        width: 42px;
        height: 42px;
    }
}