/* ==========================================================
   MASK OPTICA — Hızlı Butonlar (arama / whatsapp / yukarı çık)
   Site geneliyle aynı token ailesi (bkz. slider.css / footer.css)
   ========================================================== */

:root {
    --hb-ink-900: #06111f;
    --hb-brass-500: #c6a15b;
    --hb-brass-400: #d9bd80;
    --hb-whatsapp: #25d366;
}

.hb-stack,
.hb-scrolltop {
    box-sizing: border-box;
}

.hb-stack * {
    box-sizing: border-box;
}

/* ---------- Sol alt: Arama / WhatsApp ---------- */

.hb-stack {
    position: fixed;
    left: 22px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
}

.hb-btn {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hb-btn svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 2;
}

.hb-btn:hover {
    transform: translateY(-4px) scale(1.05);
}

.hb-call {
    background: linear-gradient(135deg, var(--hb-brass-400) 0%, var(--hb-brass-500) 100%);
}

.hb-whatsapp {
    background: linear-gradient(135deg, #34e07a 0%, var(--hb-whatsapp) 100%);
}

/* Ambulans hissi veren, dikkat çeken nabız halkaları.
   Renk/parlaklık titreşimi WCAG sınırının (saniyede 3 flaştan az) altında tutulur. */

.hb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 1;
}

.hb-call .hb-ring {
    box-shadow: 0 0 0 0 rgba(198, 161, 91, 0.55);
}

.hb-whatsapp .hb-ring {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
}

@media (prefers-reduced-motion: no-preference) {
    .hb-ring {
        animation: hb-pulse 1.8s ease-out infinite;
    }

    .hb-ring-delay {
        animation-delay: 0.9s;
    }

    .hb-call {
        animation: hb-glow-brass 1.8s ease-in-out infinite;
    }

    .hb-whatsapp {
        animation: hb-glow-green 1.8s ease-in-out infinite;
    }
}

@keyframes hb-pulse {
    0% {
        box-shadow: 0 0 0 0 currentColor;
        opacity: 0.55;
    }
    100% {
        box-shadow: 0 0 0 22px currentColor;
        opacity: 0;
    }
}

.hb-call .hb-ring {
    color: rgba(198, 161, 91, 0.55);
}

.hb-whatsapp .hb-ring {
    color: rgba(37, 211, 102, 0.55);
}

@keyframes hb-glow-brass {
    0%, 100% {
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4), 0 0 0 rgba(198, 161, 91, 0);
    }
    50% {
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4), 0 0 22px 4px rgba(198, 161, 91, 0.75);
    }
}

@keyframes hb-glow-green {
    0%, 100% {
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4), 0 0 0 rgba(37, 211, 102, 0);
    }
    50% {
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4), 0 0 22px 4px rgba(37, 211, 102, 0.75);
    }
}

/* ---------- Sağ alt: Yukarı çık ---------- */

.hb-scrolltop {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--hb-ink-900);
    color: var(--hb-brass-400);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.3s ease, color 0.3s ease;
    z-index: 999;
}

.hb-scrolltop svg {
    width: 20px;
    height: 20px;
}

.hb-scrolltop.hb-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hb-scrolltop:hover {
    border-color: var(--hb-brass-500);
    color: #fff;
}

/* ==========================================================
   Mobil Uyumluluk
   ========================================================== */

@media (max-width: 600px) {
    .hb-stack {
        left: 16px;
        bottom: 16px;
        gap: 12px;
    }

    .hb-btn {
        width: 50px;
        height: 50px;
    }

    .hb-btn svg {
        width: 21px;
        height: 21px;
    }

    .hb-scrolltop {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }
}