/* =========================================================
   HIZLI İLETİŞİM (anasayfa-hizli-iletisim.php ile eşleşir)
   Sade yuvarlak düğme + yana açılan beyaz cam haplar
   (üst şerit diliyle aynı; T'nin koyu bloklarıyla yarışmaz)
   Konum: --qc-left / --qc-bottom
   ========================================================= */
.qc {
    --qc-left: 28px;
    --qc-bottom: 26px;
    position: fixed;
    left: var(--qc-left);
    bottom: var(--qc-bottom);
    z-index: 95;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ---------- ANA DÜĞME (yuvarlak, ikon) ---------- */
.qc-toggle {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 54px;
    min-width: 54px;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #1aa7ff 0%, #0a7fe0 100%);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 22px -6px rgba(0, 150, 255, .75), 0 0 0 3px rgba(255, 255, 255, .14);
    transition: transform .25s ease, box-shadow .25s ease, padding .3s ease;
}
.qc-toggle:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -6px rgba(0, 150, 255, .9), 0 0 0 3px rgba(255, 255, 255, .22); }
.qc-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* yumuşak nabız halkası */
.qc-toggle::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid rgba(37, 195, 253, .8);
    animation: qcRing 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes qcRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.45); opacity: 0; } }
.qc.is-open .qc-toggle::after { animation: none; opacity: 0; }

.qc-toggle-ico { display: grid; place-items: center; width: 24px; height: 24px; }
.qc-toggle-ico svg { width: 24px; height: 24px; grid-area: 1 / 1; transition: opacity .2s ease, transform .3s ease; }
.qc-i-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.qc.is-open .qc-i-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.qc.is-open .qc-i-close { opacity: 1; transform: none; }

/* üzerine gelince yazı açılır (yalnızca kapalıyken) */
.qc-toggle-label {
    max-width: 0;
    margin-left: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: max-width .35s ease, margin-left .35s ease, opacity .25s ease;
}
@media (hover: hover) {
    .qc:not(.is-open) .qc-toggle:hover .qc-toggle-label,
    .qc:not(.is-open) .qc-toggle:focus-visible .qc-toggle-label { max-width: 200px; margin-left: 10px; opacity: 1; }
}

/* ---------- AÇILIR PANEL (sağa doğru) ---------- */
.qc-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility 0s linear .3s;
}
.qc.is-open .qc-panel { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s ease, visibility 0s; }

.qc-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 22px 0 6px;
    box-sizing: border-box;
    border: 1px solid rgba(10, 90, 170, .14);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(240, 248, 255, .9) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #0b2a4a;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .5);
    opacity: 0;
    transform: translateX(-14px);
    transition: opacity .3s ease, transform .4s cubic-bezier(.16, 1, .3, 1), background .25s ease, color .25s ease;
}
.qc.is-open .qc-item { opacity: 1; transform: none; }
.qc.is-open .qc-item--wa  { transition-delay: .04s, .04s, 0s, 0s; }
.qc.is-open .qc-item--tel { transition-delay: .12s, .12s, 0s, 0s; }
.qc-item:focus-visible { outline: 2px solid #0a8fe8; outline-offset: 2px; }

.qc-ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background .25s ease, color .25s ease;
}
.qc-ico svg { width: 20px; height: 20px; }

.qc-item--tel .qc-ico { background: linear-gradient(135deg, #e6f6ff, #cdeeff); color: #0a8fe8; }
.qc-item--tel:hover { background: linear-gradient(90deg, #1aa7ff, #0a7fe0); color: #fff; }
.qc-item--tel:hover .qc-ico { background: rgba(255, 255, 255, .22); color: #fff; }

.qc-item--wa .qc-ico { background: #dcfce8; color: #16a34a; }
.qc-item--wa:hover { background: linear-gradient(90deg, #2bd56f, #15944f); color: #fff; }
.qc-item--wa:hover .qc-ico { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------- MOBİL: paneli yukarı aç ---------- */
@media (max-width: 900px) {
    .qc { --qc-left: 14px; --qc-bottom: 16px; flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
    .qc-toggle { height: 50px; min-width: 50px; }
    .qc-panel { flex-direction: column; align-items: flex-start; }
    .qc-item { transform: translateY(12px); }
    .qc-item { height: 46px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .qc-toggle::after { animation: none; }
    .qc-panel, .qc-item, .qc-toggle-ico svg, .qc-toggle-label { transition: none; }
}