/* İletişim Balonları — Blok 01
   Kök: .bt-iletisim-wrapper   |   Dosya: genel/iletisim/iletisim-balonlari-blok-01.css
   Render: [bt_iletisim_balonlari] → bt_balonlar repeater'ındaki AKTİF + linki dolu satırlar.
   Yapı GENEL (her satır çalışır), renk ANAHTAR-bazlı (.bt-<anahtar>). Ölçüler örnek CSS ile birebir. */

/* Wrapper */
.bt-iletisim-wrapper {
    position: fixed;
    right: 50px;
    bottom: 3%;
    display: flex;
    gap: 12px;
    z-index: 1111;
}

@media (max-width: 600px) {
    .bt-iletisim-wrapper {
        bottom: 5%;
        left: 50%;
        right: auto;            /* sağdan yaslamayı iptal eder */
        transform: translateX(-50%);
        gap: 10px;
    }
}

/* Her balon — GENEL (anahtar fark etmeksizin) */
.bt-iletisim-wrapper > div {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;             /* eski: none (toggle JS açardı) — artık sunucu sadece aktif satırı basıyor */
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
    background-color: #888;    /* default — bilinmeyen anahtar bu renge düşer */
}

@media (max-width: 600px) {
    .bt-iletisim-wrapper > div {
        width: 50px;
        height: 50px;
    }
}

/* Anahtar-bazlı arka plan renkleri (örnek CSS ile birebir) */
.bt-hemen-ara    { background-color: #25d366 !important; }
.bt-whatsapp     { background-color: #128c7e !important; }
.bt-talep-formu  { background-color: var(--renk-1) !important; }
.bt-instagram    { background-color: #e1306c !important; }
.bt-youtube      { background-color: #ff0000 !important; }

/* Link — GENEL */
.bt-iletisim-wrapper a {
    text-decoration: none;
    color: #fff !important;
}

/* İkon — GENEL (default boyut + nabız) */
.bt-iletisim-wrapper i {
    font-size: 1.6rem;         /* default ikon boyutu (bilinmeyen anahtar) */
    animation: pulse 1.5s infinite;
}

/* Anahtar-bazlı ikon boyutları (örnek CSS ölçüleriyle birebir) */
.bt-hemen-ara i    { font-size: 1.4rem; }
.bt-whatsapp i     { font-size: 2rem; }
.bt-talep-formu i  { font-size: 1.6rem; }
.bt-instagram i    { font-size: 2rem; }
.bt-youtube i      { font-size: 1.6rem; }

/* Hover — GENEL */
.bt-iletisim-wrapper > div:hover {
    transform: scale(1.1);
}

.bt-iletisim-wrapper a:hover,
.bt-iletisim-wrapper i:hover {
    color: #fff !important;
}

/* Tooltip (yukarı yönlü) */
.bt-tooltip {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
    z-index: 1112;
}

.bt-iletisim-wrapper > div:hover .bt-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Nabız animasyonu */
@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}
/* ===================================================================== */
/* ANİMASYONLU HOTLINE (telefon/whatsapp) — kurtarılan orijinal yapı,     */
/* JS'siz + sunucu kararlı. .is-visible JS gating'i kaldırıldı: shortcode  */
/* yalnız aktif wrap'leri basar ve cift-aktif'i ekler. Yukarıdaki basit-   */
/* balon + tooltip kuralları DEĞİŞMEDİ — bu blok yalnız EKLER.            */
/* ===================================================================== */
.bt-hemen-ara-2 { display: block; }

/* Ortak tutucu — sol altta sabit (her wrap kendi kanalı) */
.bt-hemen-ara-2 .hotline-phone-ring-wrap {
    position: fixed;
    left: 0;
    bottom: 10px;
    z-index: 999999;
}
/* İkisi birlikte aktifse telefon yukarı çıkar (stack) */
.bt-hemen-ara-2.bt-cift-aktif .hotline-phone-ring-wrap.telefon  { bottom: 70px; }
.bt-hemen-ara-2.bt-cift-aktif .hotline-phone-ring-wrap.whatsapp { bottom: 10px; }

.bt-hemen-ara-2 .hotline-phone-ring {
    position: relative;
    width: 110px;
    height: 110px;
    cursor: pointer;
    transition: visibility 0.5s;
}
.bt-hemen-ara-2 .hotline-phone-ring-circle,
.bt-hemen-ara-2 .hotline-phone-ring-circle-fill,
.bt-hemen-ara-2 .hotline-phone-ring-img-circle {
    position: absolute;
    border-radius: 50%;
    transition: all 0.5s;
    transform-origin: 50% 50%;
}
.bt-hemen-ara-2 .hotline-phone-ring-circle {
    width: 85px; height: 85px; top: 10px; left: 10px;
    border: 2px solid #f7bc3c;
    animation: ib01-ring 1.2s infinite ease-in-out;
    opacity: 0.5;
}
.bt-hemen-ara-2 .hotline-phone-ring-circle-fill {
    width: 55px; height: 55px; top: 25px; left: 25px;
    background-color: rgba(37, 211, 102, 0.7);
    border: 2px solid transparent;
    animation: ib01-ring-fill 2.3s infinite ease-in-out;
}
.bt-hemen-ara-2 .hotline-phone-ring-img-circle {
    width: 33px; height: 33px; top: 37px; left: 37px;
    background-color: #25d366;
    display: flex; align-items: center; justify-content: center;
    animation: ib01-ring-img 1s infinite ease-in-out;
}
.bt-hemen-ara-2 .hotline-phone-ring-img-circle a {
    color: #fff !important;
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
}
/* Telefon kanalı renkleri */
.bt-hemen-ara-2 .hotline-phone-ring-wrap.telefon .hotline-phone-ring-circle-fill,
.bt-hemen-ara-2 .hotline-phone-ring-wrap.telefon .hotline-phone-ring-img-circle {
    background-color: #25d366;
}
/* WhatsApp kanalı renkleri */
.bt-hemen-ara-2 .hotline-phone-ring-wrap.whatsapp .hotline-phone-ring-circle      { border-color: #dcf8c6; }
.bt-hemen-ara-2 .hotline-phone-ring-wrap.whatsapp .hotline-phone-ring-circle-fill { background-color: rgba(220, 248, 198, 0.7); }
.bt-hemen-ara-2 .hotline-phone-ring-wrap.whatsapp .hotline-phone-ring-img-circle  { background-color: #075e54; }
.bt-hemen-ara-2 .hotline-phone-ring-wrap.whatsapp .hotline-bar                    { background-color: #075e54; }
.bt-hemen-ara-2 .hotline-phone-ring-wrap.whatsapp .phone-icon                     { font-size: 1.2rem; color: #fff; }

/* Yazı barı */
.bt-hemen-ara-2 .hotline-bar {
    position: absolute;
    width: 220px; height: 40px; line-height: 40px;
    bottom: 37px; left: 33px;
    background: var(--color-content-text);
    border-radius: 50px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: -1;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.bt-hemen-ara-2 .hotline-phone-ring-wrap:hover .hotline-bar {
    transform: translateX(8px);
    background-color: color-mix(in srgb, var(--color-content-text) 85%, #fff 15%);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28), 0 12px 14px rgba(0, 0, 0, 0.12);
}
.bt-hemen-ara-2 .hotline-bar a {
    color: #fff !important;
    font-weight: bold; font-size: 0.9rem;
    text-decoration: none; display: block;
    text-indent: 50px; letter-spacing: 1px;
}
.bt-hemen-ara-2 .hotline-bar a:hover,
.bt-hemen-ara-2 .hotline-bar a:active { color: #fff !important; }

@keyframes ib01-ring {
    0%, 100% { transform: rotate(0) scale(0.5); opacity: 0.1; }
    30%      { transform: rotate(0) scale(0.7); opacity: 0.5; }
}
@keyframes ib01-ring-fill {
    0%, 100% { transform: rotate(0) scale(0.7); opacity: 0.6; }
    50%      { transform: rotate(0) scale(1);   opacity: 0.6; }
}
@keyframes ib01-ring-img {
    0%, 50%, 100% { transform: rotate(0) scale(1); }
    10% { transform: rotate(-25deg) scale(1); }
    20% { transform: rotate(25deg) scale(1); }
    30% { transform: rotate(-25deg) scale(1); }
    40% { transform: rotate(25deg) scale(1); }
}
