/* ==========================================================================
   Sabit İletişim Butonları & Sosyal Medya Çubuğu
   ========================================================================== */

.kp-floating-whatsapp svg { flex-shrink: 0; }

/* ---- Sağ kenar sosyal medya çubuğu (masaüstü + mobil) ---- */
.kp-social-rail {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.kp-social-rail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 3px 10px rgba(0, 0, 0, 0.18);
    transition: width 0.2s ease, filter 0.2s ease;
}
.kp-social-rail-btn:hover { width: 54px; filter: brightness(1.08); }
.kp-social-rail-btn svg { width: 22px; height: 22px; }
.kp-social-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.kp-social-facebook  { background: #1877f2; }
.kp-social-youtube   { background: #ff0000; }
.kp-social-tiktok    { background: #111111; }

/* ---- Mobil alt bar ---- */
.kp-mobile-actionbar { display: none; }

@media (max-width: 768px) {
    .kp-hide-mobile { display: none !important; }

    .kp-mobile-actionbar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9990;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
        padding-bottom: env(safe-area-inset-bottom, 0);
        background: #333;
    }
    .kp-actionbar-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-height: 64px;
        padding: 8px 4px;
        color: #fff !important;
        text-decoration: none !important;
        font-family: inherit;
        -webkit-tap-highlight-color: transparent;
    }
    .kp-actionbar-btn:active { filter: brightness(0.9); }
    .kp-actionbar-label { font-size: 15px; font-weight: 600; line-height: 1.1; letter-spacing: 0.1px; }
    .kp-actionbar-btn svg { width: 26px; height: 26px; }
    .kp-actionbar-wa   { background: linear-gradient(90deg, #0a9a3e 0%, #17a84a 100%); }
    .kp-actionbar-call { background: #333333; }
    .kp-actionbar-map  { background: #0c9fe3; }

    /* İçeriğin alt barın altında kalmaması için */
    body.kp-has-mobile-bar { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

    /* Mobilde sosyal çubuk biraz daha küçük */
    .kp-social-rail-btn { width: 38px; height: 38px; border-radius: 6px 0 0 6px; }
    .kp-social-rail-btn:hover { width: 38px; }
    .kp-social-rail-btn svg { width: 19px; height: 19px; }
}
