/* Social follow widget — fixed right rail */

.social-follow {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 9000;
    transform: translateY(-50%);
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.24s ease;
}

.social-follow.is-dismissed {
    display: none;
}

.social-follow-panel {
    pointer-events: auto;
    width: 11.5rem;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-right: 0;
    border-radius: 0.5rem 0 0 0.5rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    overflow: hidden;
    transition: width 0.3s ease;
}

.social-follow.is-collapsed .social-follow-panel {
    width: 3rem;
}

.social-follow-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.35rem 0.4rem;
    border-bottom: 1px solid rgba(255, 140, 0, 0.2);
}

.social-follow-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 0.35rem;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.social-follow-collapse {
    color: #fb923c;
}

.social-follow-collapse:hover {
    color: #fdba74;
    background: rgba(255, 140, 0, 0.1);
}

.social-follow-dismiss {
    color: #9ca3af;
}

.social-follow-dismiss:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
}

.social-follow-toolbar-btn svg {
    width: 1rem;
    height: 1rem;
}

.social-follow-chevron {
    transition: transform 0.3s ease;
}

.social-follow.is-collapsed .social-follow-chevron {
    transform: rotate(180deg);
}

.social-follow-body {
    padding: 0.65rem 0.55rem 0.75rem;
}

.social-follow-title {
    margin: 0 0 0.55rem;
    font-family: var(--en2-font-body, 'Rajdhani', sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    color: #fb923c;
    transition: opacity 0.2s ease;
}

.social-follow.is-collapsed .social-follow-title,
.social-follow.is-collapsed .social-follow-label,
.social-follow.is-collapsed .social-follow-dismiss {
    display: none;
}

.social-follow-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.social-follow-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.social-follow-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.social-follow-label {
    font-family: var(--en2-font-body, 'Rajdhani', sans-serif);
    font-size: 0.82rem;
    font-weight: 600;
    color: #f8fafc;
    white-space: nowrap;
}

.social-follow-link--discord {
    background: rgba(79, 70, 229, 0.2);
}

.social-follow-link--discord:hover {
    background: rgba(79, 70, 229, 0.4);
}

.social-follow-link--discord .social-follow-icon {
    color: #a5b4fc;
}

.social-follow-link--facebook {
    background: rgba(37, 99, 235, 0.2);
}

.social-follow-link--facebook:hover {
    background: rgba(37, 99, 235, 0.4);
}

.social-follow-link--facebook .social-follow-icon {
    color: #93c5fd;
}

.social-follow-link--youtube {
    background: rgba(220, 38, 38, 0.2);
}

.social-follow-link--youtube:hover {
    background: rgba(220, 38, 38, 0.4);
}

.social-follow-link--youtube .social-follow-icon {
    color: #fca5a5;
}

.social-follow.is-collapsed .social-follow-body {
    padding: 0.45rem 0.35rem 0.55rem;
}

.social-follow.is-collapsed .social-follow-link {
    justify-content: center;
    padding: 0.4rem;
}

.social-follow.is-collapsed .social-follow-toolbar {
    justify-content: center;
    padding: 0.35rem 0.25rem;
}

@media (max-width: 639px) {
    .social-follow-dismiss {
        display: none;
    }

    .social-follow.is-collapsed .social-follow-panel,
    .social-follow-panel {
        width: 3rem;
    }

    .social-follow.is-collapsed .social-follow-title,
    .social-follow.is-collapsed .social-follow-label,
    .social-follow-title,
    .social-follow-label {
        display: none;
    }

    .social-follow.is-collapsed .social-follow-body,
    .social-follow-body {
        padding: 0.45rem 0.35rem 0.55rem;
    }

    .social-follow.is-collapsed .social-follow-link,
    .social-follow-link {
        justify-content: center;
        padding: 0.4rem;
    }

    .social-follow.is-collapsed .social-follow-toolbar,
    .social-follow-toolbar {
        justify-content: center;
        padding: 0.35rem 0.25rem;
    }

    .social-follow:not(.is-collapsed) .social-follow-panel {
        width: 11.5rem;
    }

    .social-follow:not(.is-collapsed) .social-follow-title {
        display: block;
    }

    .social-follow:not(.is-collapsed) .social-follow-label {
        display: inline;
    }

    .social-follow:not(.is-collapsed) .social-follow-link {
        justify-content: flex-start;
        padding: 0.45rem 0.5rem;
    }

    .social-follow:not(.is-collapsed) .social-follow-toolbar {
        justify-content: space-between;
        padding: 0.35rem 0.4rem;
    }

    .social-follow:not(.is-collapsed) .social-follow-body {
        padding: 0.65rem 0.55rem 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .social-follow,
    .social-follow-panel,
    .social-follow-chevron,
    .social-follow-link,
    .social-follow-toolbar-btn {
        transition: none;
    }
}
