/* =====================================================================
 *  BRANDAFT - SABIT ALT CTA CUBUGU
 * =====================================================================
 *
 *  Sayfa altinda sabit duran CTA cubugu. Alt cubuk Chaty balonunu
 *  ittigi icin body padding ve chaty konumu da burada. Ana sayfa
 *  surumu birkac bildirimle ayrisiyordu (mavi buton, farkli padding);
 *  gorunum degismesin diye sayfaya kapsamli ezme olarak korundu.
 *
 *  16 Kasim 2026: bu CSS sayfalarin Elementor HTML widget'i icinde
 *  <style> olarak duruyordu. Tek kopyaya indirildi, registry'ye
 *  baglandi. Marka renkleri ba-ortak.css belirteclerinden geliyor;
 *  buraya sabit renk yazma.
 * ===================================================================== */

/* ---------------------------------------------------------------------
 *  temel surum: 6 sayfa
 *  Sayfalar: adana, ankara, antalya, fethiye, izmir, seo-ajansi
 * ------------------------------------------------------------------ */
/* 1. Sayfanın en altında bar kadar boşluk açar, içeriği yukarı iter */
body {
    padding-bottom: 80px !important;
}

/* 2. Ana Bar Tasarımı */
.brandaft-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 4px solid var( --ba-turuncu );
    box-shadow: 0 -8px 25px rgba(0,0,0,0.1);
    z-index: 99999;
    padding: 15px 20px;
    animation: slideUpBrandaft 0.6s ease-out;
}

.sticky-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.sticky-text {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #000000;
}

.sticky-btn {
    background-color: var( --ba-turuncu );
    color: #ffffff !important;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba( var( --ba-turuncu-rgb ), 0.2);
}

/* 3. Mobil Düzenlemeleri (Senin sorduğun kısım) */
@media (max-width: 768px) {
    body {
        padding-bottom: 130px !important; /* Mobilde bar daha yüksek, boşluğu artırdık */
    }
    .brandaft-sticky-bar {
        padding: 15px 15px 25px 15px; /* Alt tarafa 'safe area' payı bıraktık */
    }
    .sticky-bar-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .desktop-text { display: none; }
    .mobile-text {
        display: inline;
        font-size: 15px;
        line-height: 1.3;
    }
    .sticky-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        text-align: center;
    }
}

@keyframes slideUpBrandaft {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
/* Chaty ikonunu Sticky Bar'ın üstüne taşır */
#chaty-widget-0,
.chaty-widget,
#chaty-widget-container {
    bottom: 90px !important; /* Bar yüksekliği + 10px pay */
    z-index: 100000 !important; /* Bizim barın (99999) bir tık üstü */
}

@media (max-width: 768px) {
    #chaty-widget-0,
    .chaty-widget,
    #chaty-widget-container {
        bottom: 145px !important; /* Mobilde bar daha yüksek olduğu için daha yukarı taşıdık */
    }
}

/* ---------------------------------------------------------------------
 *  ana sayfa surumu
 *  Sayfalar: brandaft-dijital-ajans
 * ------------------------------------------------------------------ */
/* 1. Footer ve Chaty Çakışma Önleyici */
body.page-id-8 body { padding-bottom: 85px !important; }
body.page-id-8 #chaty-widget-0, body.page-id-8 .chaty-widget, body.page-id-8 #chaty-widget-container { bottom: 100px !important; z-index: 100000 !important; }

@media (max-width: 768px) {
body.page-id-8 body { padding-bottom: 140px !important; }
body.page-id-8 #chaty-widget-0, body.page-id-8 .chaty-widget, body.page-id-8 #chaty-widget-container { bottom: 155px !important; }
}

/* 2. Tasarım - Teşhis ve Strateji Odaklı */
body.page-id-8 .brandaft-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 4px solid var( --ba-mavi ); /* Güven veren Brandaft Mavisi */
    box-shadow: 0 -8px 25px rgba(0,0,0,0.1);
    z-index: 99999;
    padding: 15px 20px;
    animation: slideUpBrandaft 0.7s ease-out;
}

body.page-id-8 .sticky-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

body.page-id-8 .sticky-text {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}

body.page-id-8 .sticky-btn {
    background-color: var( --ba-mavi );
    color: #ffffff !important;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

body.page-id-8 .sticky-btn:hover {
    background-color: var( --ba-turuncu ); /* Aksiyon anında turuncuya döner */
    transform: translateY(-2px);
}

/* 3. Mobil Düzenlemeler */
@media (max-width: 768px) {
body.page-id-8 .brandaft-sticky-bar { padding: 15px 15px 30px 15px; }
body.page-id-8 .sticky-bar-content { flex-direction: column; gap: 12px; }
body.page-id-8 .desktop-text { display: none; }
body.page-id-8 .mobile-text { display: inline; font-size: 14px; font-weight: 700; }
body.page-id-8 .sticky-btn { width: 100%; text-align: center; padding: 12px; }
}

@keyframes slideUpBrandaft {
body.page-id-8 from { transform: translateY(100%); }
body.page-id-8 to { transform: translateY(0); }
}
