/* =========================================================
   SOSYAL HIZLI BUTONLAR – SAĞ YASLI YÜZEN KART
   Tüm sınıf ve keyframe adları "sbt-" öneklidir.
   ========================================================= */

.sbt-widget {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9988;
    display: flex;
    align-items: center;
    font-family: var(--font-main, 'Jost', sans-serif);
    transition: transform 0.45s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* --- KART --- */
.sbt-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 14px 8px 12px 10px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid #E2E8F0;
    border-right: 0;
    border-radius: 28px 0 0 28px;
    box-shadow: -10px 14px 34px rgba(10, 43, 94, 0.16);
    animation: sbtCardIn 0.8s 0.3s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

/* Sol kenarda turuncu → lacivert vurgu çizgisi */
.sbt-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22px;
    bottom: 22px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--c-orange, #FF6B00), var(--c-blue, #0A2B5E));
}

@keyframes sbtCardIn {
    from { opacity: 0; transform: translateX(100%); }
    to   { opacity: 1; transform: translateX(0); }
}

/* --- SES DALGASI GÖSTERGESİ --- */
.sbt-eq {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 20px;
}

.sbt-eq span {
    display: block;
    width: 3px;
    height: 100%;
    border-radius: 3px;
    background: var(--c-orange, #FF6B00);
    transform-origin: bottom;
    animation: sbtEq 1.1s ease-in-out infinite;
}

.sbt-eq span:nth-child(2) { background: var(--c-blue, #0A2B5E); animation-delay: -0.35s; }
.sbt-eq span:nth-child(3) { animation-delay: -0.7s; }
.sbt-eq span:nth-child(4) { background: var(--c-blue, #0A2B5E); animation-delay: -0.15s; }

@keyframes sbtEq {
    0%, 100% { transform: scaleY(0.3); }
    50%      { transform: scaleY(1); }
}

/* --- İKON LİSTESİ --- */
.sbt-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.sbt-li {
    position: relative;
    animation: sbtPop 0.5s calc(0.7s + var(--i, 0) * 0.09s) cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes sbtPop {
    from { opacity: 0; transform: scale(0.4); }
    to   { opacity: 1; transform: scale(1); }
}

.sbt-link {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1F5F9;
    color: var(--c-blue, #0A2B5E);
    border-radius: 50%;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.sbt-link i { line-height: 1; transition: transform 0.3s ease; }

.sbt-link:hover,
.sbt-link:focus-visible {
    color: #FFFFFF;
    transform: translateX(-5px) scale(1.1);
}

.sbt-link:hover i { transform: rotate(-8deg) scale(1.05); }

.sbt-link:focus-visible {
    outline: 3px solid rgba(255, 107, 0, 0.55);
    outline-offset: 3px;
}

/* Marka renkleri (hover) */
.sbt-instagram:hover, .sbt-instagram:focus-visible {
    background: linear-gradient(45deg, #F9A825 0%, #E1306C 50%, #833AB4 100%);
    box-shadow: 0 8px 18px rgba(225, 48, 108, 0.4);
}
.sbt-youtube:hover, .sbt-youtube:focus-visible   { background: #FF0000; box-shadow: 0 8px 18px rgba(255, 0, 0, 0.35); }
.sbt-facebook:hover, .sbt-facebook:focus-visible { background: #1877F2; box-shadow: 0 8px 18px rgba(24, 119, 242, 0.4); }
.sbt-x:hover, .sbt-x:focus-visible               { background: #0F1419; box-shadow: 0 8px 18px rgba(15, 20, 25, 0.35); }
.sbt-tiktok:hover, .sbt-tiktok:focus-visible     { background: #010101; box-shadow: -2px 6px 0 rgba(37, 244, 238, 0.7), 2px 8px 0 rgba(254, 44, 85, 0.6); }

/* --- AÇILAN ETİKET (sadece masaüstü) --- */
.sbt-tip {
    position: absolute;
    right: calc(100% + 16px);
    top: 50%;
    transform: translate(10px, -50%);
    padding: 6px 14px;
    background: var(--c-blue, #0A2B5E);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(10, 43, 94, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.sbt-link:hover .sbt-tip,
.sbt-link:focus-visible .sbt-tip {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

/* --- MOBİL AÇ/KAPAT KULPU (masaüstünde gizli) --- */
.sbt-handle {
    display: none;
    position: relative;
    width: 26px;
    height: 46px;
    padding: 0;
    margin: 0;
    background: var(--c-orange, #FF6B00);
    color: #FFFFFF;
    border: 0;
    border-radius: 14px 0 0 14px;
    cursor: pointer;
    font-size: 0.8rem;
    align-items: center;
    justify-content: center;
    box-shadow: -4px 6px 16px rgba(255, 107, 0, 0.35);
}

.sbt-handle:focus-visible {
    outline: 3px solid rgba(10, 43, 94, 0.5);
    outline-offset: 2px;
}

.sbt-handle .sbt-handle-close { display: none; }

/* --- MOBİL: MİNİMAL --- */
@media (max-width: 680px) {
    .sbt-handle { display: flex; }

    /* Kapalıyken sadece kulp görünür, kart sağa kayar */
    .sbt-widget.sbt-collapsed {
        transform: translateY(-50%) translateX(calc(100% - 26px));
    }

    .sbt-widget:not(.sbt-collapsed) .sbt-handle-open  { display: none; }
    .sbt-widget:not(.sbt-collapsed) .sbt-handle-close { display: inline-block; }

    .sbt-card {
        gap: 0;
        padding: 8px 6px 8px 8px;
        border-radius: 0 0 0 18px;
        animation: none;
    }

    .sbt-card::before { display: none; }
    .sbt-eq { display: none; }

    .sbt-list { gap: 6px; }
    .sbt-li   { animation: none; }

    .sbt-link {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }

    .sbt-link:hover,
    .sbt-link:focus-visible { transform: scale(1.08); }

    .sbt-tip { display: none; }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    .sbt-card, .sbt-li, .sbt-eq span { animation: none; }
    .sbt-widget, .sbt-link, .sbt-link i, .sbt-tip { transition: none; }
}