/* ══════════════════════════════════════════════════════════════════════════════
   HIZLI ERİŞİM — sağ kenar iletişim menüsü · WhatsApp düğmesi · mobil alt çubuk (24.11.2026, v1.21.5)
   SİTE GENELİ — eski renkli alt menünün (dock.css + dock.js, 9 madde) YERİNE geldi.

   KULLANAN       : Views/Shared/_Layout.cshtml (her public sayfa) — markup layout'un sonunda (.ph-yan, .ph-wa, .ph-altbar).
   BAĞIMLI OLDUĞU : Bootstrap Icons · hizli-erisim.js (.ph-yan-oge.aktif) · telefon / e-posta / WhatsApp Site
                    Ayarları'ndan (layout basar).
   KAYNAK         : Reçete D:\CLAUDE_MD\sag-iletisim-menusu-avanasansor.md (renkler logo paletine uyarlandı) ·
                    tasarım MOCKUP/2026-11-24_anasayfa-yeni-tasarim-r2 (kullanıcı onayı).
   DÜZEN          : ≥992 px  sağ kenarda dikey ortalı menü (Teklif Al + telefon + e-posta) + sağ altta WhatsApp
                    768–991   yalnız WhatsApp düğmesi
                    ≤767 px   alttaki 5 kısayollu çubuk (Anasayfa · Yazılımlar · Projeler · Destek · WhatsApp)
   DİKKAT         : · .ph-yan'da align-items:flex-end ŞART (reçetenin en kritik notu): varsayılan stretch iken bir satır
                      açılınca kap genişler ve TÜM satırlar birlikte sola taşar.
                    · Etkin satır :hover değil .aktif sınıfıdır (hizli-erisim.js) — dokunmatikte hover takılı kalır.
                    · z-index: navbar 1030 · ödeme şeridi 1031 · BU DOSYA 1035–1040 · Bootstrap modal 1050+ (modallar üstte).
                    · Footer'ın son satırı WhatsApp düğmesinin / alt çubuğun altında kalmasın → footer alt payı burada.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ───────────── SAĞ KENAR İLETİŞİM MENÜSÜ ───────────── */
.ph-yan {
    position: fixed;
    z-index: 1035;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    filter: drop-shadow(-8px 0 22px rgba(4, 8, 22, 0.35));
}

.ph-yan-oge {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 52px;
    color: #fff;
    text-decoration: none;
    background: rgba(9, 20, 54, 0.93);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(205, 208, 207, 0.14);
    transition: background-color .25s;
}

    .ph-yan-oge:hover,
    .ph-yan-oge:focus {
        color: #fff;
    }

    .ph-yan-oge:first-child {
        border-top: 0;
        border-radius: 14px 0 0 0;
    }

    .ph-yan-oge:last-child {
        border-radius: 0 0 0 14px;
    }

    .ph-yan-oge:focus-visible {
        outline: 3px solid #93C6F2;
        outline-offset: -3px;
    }

.ph-yan-ikon {
    position: relative;
    z-index: 2;
    flex: none;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.74);
    transition: color .25s, transform .25s;
}

/* Etiket max-width ile sola doğru açılır (ikon yerinde kalır). Uzun etiket = e-posta adresi. */
.ph-yan-etiket {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 0;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 600;
    font-size: .92rem;
    border-right: 2px solid transparent;
    transition: max-width .32s cubic-bezier(.25, .46, .45, .94), padding .32s cubic-bezier(.25, .46, .45, .94);
}

.ph-yan-oge.aktif {
    background: linear-gradient(90deg, rgba(47, 137, 211, 0.34) 0%, rgba(9, 20, 54, 0.96) 100%);
}

    .ph-yan-oge.aktif .ph-yan-etiket {
        max-width: 240px;
        padding: 0 14px 0 18px;
        border-right-color: #5AA7E6;
    }

    .ph-yan-oge.aktif .ph-yan-ikon {
        color: #93C6F2;
        transform: scale(1.12);
    }

/* "Teklif Al": logo mavisi, yazısı dikey ve hep görünür (açılan etiketi yok) */
.ph-yan-teklif,
.ph-yan-teklif.aktif {
    height: auto;
    background: #1B66B5;
}

    .ph-yan-teklif.aktif {
        background: #2274C9;
    }

    .ph-yan-teklif .ph-yan-ikon,
    .ph-yan-teklif.aktif .ph-yan-ikon {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 16px 0 14px;
        color: #fff;
        transform: none;
    }

.ph-yan-dik {
    writing-mode: vertical-rl;
    rotate: 180deg;
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .04em;
}

/* ───────────── WHATSAPP DÜĞMESİ (sağ alt) ───────────── */
.ph-wa {
    position: fixed;
    z-index: 1035;
    right: 24px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: #fff;
    text-decoration: none;
    background: #1A8F4A;
    box-shadow: 0 16px 30px -12px rgba(26, 143, 74, 0.7);
    transition: background-color .2s;
}

    .ph-wa:hover,
    .ph-wa:focus {
        color: #fff;
        background: #16783E;
    }

    .ph-wa:focus-visible {
        outline: 3px solid #93C6F2;
        outline-offset: 3px;
    }

    /* "Buradayım" dalgası — reçeteden: 3,6 sn, düşük opaklık (kısaltılırsa / opaklık artarsa yorar) */
    .ph-wa::before,
    .ph-wa::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: 50%;
        background: rgba(26, 143, 74, 0.34);
        animation: phWaDalga 3.6s cubic-bezier(.23, 1, .32, 1) infinite;
    }

    .ph-wa::after {
        animation-delay: 1.8s;
    }

    .ph-wa:hover::before,
    .ph-wa:hover::after {
        animation-play-state: paused;
        opacity: 0;
    }

@keyframes phWaDalga {
    0% { transform: scale(1); opacity: .34; }
    75%, 100% { transform: scale(2.1); opacity: 0; }
}

/* ───────────── MOBİL ALT ÇUBUK ───────────── */
.ph-altbar {
    display: none;
}

/* Footer'ın son satırı (telif + yasal bağlantılar) sabit düğmelerin altında kalmasın.
   (footer.footer-section seçicisi Bootstrap'ın .pb-3 !important'ını özgüllükle geçer — eski dock.css'teki payın aynısı.) */
footer.footer-section {
    padding-bottom: 104px !important;
}

@media (max-width: 991.98px) {
    .ph-yan {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .ph-wa {
        display: none;
    }

    .ph-altbar {
        position: fixed;
        z-index: 1040;
        inset: auto 0 0 0;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.94);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 -10px 30px -20px rgba(2, 6, 23, 0.35);
    }

        .ph-altbar a {
            display: grid;
            justify-items: center;
            gap: 2px;
            min-height: 52px;
            padding: 6px 2px;
            border-radius: 12px;
            font-size: .68rem;
            font-weight: 500;
            line-height: 1.2;
            color: #4C5B6B;
            text-decoration: none;
        }

            .ph-altbar a i {
                font-size: 1.25rem;
            }

            .ph-altbar a[aria-current="page"] {
                color: #14508F;
                font-weight: 600;
            }

            .ph-altbar a:focus-visible {
                outline: 2px solid #2F89D3;
                outline-offset: -2px;
            }

        .ph-altbar .ph-altbar-wa {
            color: #1A8F4A;
        }

    [data-bs-theme="dark"] .ph-altbar {
        background: rgba(10, 21, 50, 0.94);
        border-top-color: rgba(205, 208, 207, 0.14);
    }

        [data-bs-theme="dark"] .ph-altbar a {
            color: #B7C2D3;
        }

            [data-bs-theme="dark"] .ph-altbar a[aria-current="page"] {
                color: #93C6F2;
            }

        [data-bs-theme="dark"] .ph-altbar .ph-altbar-wa {
            color: #4FD18B;
        }
}

@media (prefers-reduced-motion: reduce) {
    .ph-yan-oge,
    .ph-yan-ikon,
    .ph-yan-etiket {
        transition: none;
    }

    .ph-wa::before,
    .ph-wa::after {
        animation: none;
        opacity: 0;
    }
}
