/*
Theme Name: Motix Child
Theme URI: https://sanpetpetrokimya.com
Description: Sanpet Özel Hibrit Kapsül Altyapısı (iOS Zıplama Düzeltmeli)
Author: Ozan Baran
Template: motix
Version: 1.0.1
*/
/* ====================================================
   SANPET HYBRID KAPSÜL MENÜ (SMART STICKY MASTER SÜRÜM)
==================================================== */

/* --- ÜST BİLGİ ŞERİDİ (TOP BAR) --- */
.sanpet-topbar {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 99998;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sanpet-topbar a {
    color: #d1d1d1;
    text-decoration: none;
    margin-right: 20px;
    transition: all 0.3s ease;
    font-weight: 400;
}

.sanpet-topbar a i {
    color: #E08333;
    margin-right: 5px;
}

.sanpet-topbar a:hover {
    color: #ffffff;
}

.sanpet-topbar-sag a {
    margin-right: 15px;
    font-size: 15px;
}

.sanpet-topbar-sag a:last-child {
    margin-right: 0;
}

/* 1. ANA TAŞIYICI VE KAPSÜL */
.sanpet-kapsul-wrapper {
    position: fixed; 
    top: 45px; 
    left: 0;
    width: 100%;
    z-index: 99999;
    display: flex;
    justify-content: center;
    /* iOS Zıplama Düzeltmesi: Top yerine Transform kullanıldı */
    transition: transform 0.4s ease; 
    -webkit-transform: translate3d(0,0,0); /* Donanım ivmelendirmesi ile titremeyi keser */
}

/* Akıllı kaydırma devredeyken (JavaScript'in eklediği class) */
.sanpet-kapsul-wrapper.kaydirmada-yukari-cik {
    transform: translateY(-30px); /* Kapsülü Y ekseninde kaydırıyoruz */
}

/* KAPSÜLÜN KENDİSİ (Cam Efekti ve Hizalama) */
.sanpet-kapsul {
    background-color: rgba(2, 1, 1, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 90%;
    max-width: 1400px;
    height: 64px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 2. LOGO AYARI */
.sanpet-logo img {
    max-width: 130px !important;
    height: auto !important;
    display: block;
}

/* 3. ANA MENÜ VE AÇILIR MENÜ */
ul.sanpet-dinamik-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    gap: 30px;
    align-items: center;
}

ul.sanpet-dinamik-menu li {
    position: relative;
    list-style: none !important;
}

ul.sanpet-dinamik-menu > li > a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    padding: 18px 0;
    display: block;
}

ul.sanpet-dinamik-menu > li > a:hover {
    color: #E08333 !important;
}

ul.sanpet-dinamik-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(2, 1, 1, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-width: 220px;
    padding: 10px 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 99999;
}

ul.sanpet-dinamik-menu li:hover > .sub-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

ul.sanpet-dinamik-menu .sub-menu li a {
    color: #ffffff !important;
    padding: 10px 20px;
    display: block;
    font-size: 14px;
    text-decoration: none;
    font-weight: 400;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s ease;
}

ul.sanpet-dinamik-menu .sub-menu li:last-child a {
    border-bottom: none;
}

ul.sanpet-dinamik-menu .sub-menu li a:hover {
    color: #E08333 !important;
    background: rgba(255,255,255,0.05);
    padding-left: 25px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 4. SAĞ BUTONLAR */
.sanpet-butonlar {
    display: flex;
    gap: 12px;
    align-items: center;
}

div.sanpet-butonlar a.sanpet-btn-hayalet, 
div.sanpet-butonlar a.sanpet-btn-turuncu {
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: none !important;
}

div.sanpet-butonlar a .dashicons {
    margin: 0 !important;
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

div.sanpet-butonlar a.sanpet-btn-hayalet {
    border: 1px solid rgba(255,255,255,0.4);
    color: #ffffff !important;
    background: transparent;
}

div.sanpet-butonlar a.sanpet-btn-hayalet:hover {
    background: #E08333 !important;
    border-color: #E08333 !important;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(224, 131, 51, 0.4);
}

div.sanpet-butonlar a.sanpet-btn-turuncu {
    background: #E08333 !important;
    color: #ffffff !important;
    border: 1px solid #E08333 !important;
}

div.sanpet-butonlar a.sanpet-btn-turuncu:hover {
    background: #ffffff !important;
    color: #E08333 !important;
    border-color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

/* 5. MOBİL MİMARİ */
.sanpet-mobil-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
}

@media (max-width: 991px) {
    .sanpet-topbar { display: none; } 
    
    .sanpet-kapsul-wrapper { 
        top: 15px; 
        transform: none !important; /* Mobilde zıplama hesaplamasını iptal ettik */
    } 

    .sanpet-kapsul {
        width: 95%;
        padding: 0 20px;
        height: 60px;
    }
    
    .sanpet-logo img {
        max-width: 110px !important;
    }
    
    .sanpet-btn-turuncu { display: none !important; }
    
    div.sanpet-butonlar a.sanpet-btn-hayalet {
        padding: 6px 14px;
        font-size: 12px;
    }

    .sanpet-mobil-toggle {
        display: block; 
    }

    .sanpet-menu-alani {
        display: none; 
        position: absolute;
        top: 75px; 
        left: 5%;
        width: 90%;
        background: rgba(2, 1, 1, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 15px;
        padding: 20px;
        border: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        max-height: 70dvh; /* iOS Safari için adres çubuğu hatasına karşı dvh yapıldı */
        overflow-y: auto;
    }

    .sanpet-menu-alani::-webkit-scrollbar {
        width: 4px;
    }
    .sanpet-menu-alani::-webkit-scrollbar-thumb {
        background-color: #E08333;
        border-radius: 10px;
    }

    .sanpet-menu-alani.mobil-aktif {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    ul.sanpet-dinamik-menu {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    ul.sanpet-dinamik-menu > li > a {
        padding: 5px 0;
        color: #ffffff !important;
    }

    ul.sanpet-dinamik-menu .sub-menu {
        position: relative;
        display: block;
        box-shadow: none;
        background: transparent;
        border: none;
        padding-left: 15px;
        margin-top: 10px;
        min-width: 100%;
    }
}

/* YÖNETİCİ GİRİŞİ YAPILDIĞINDA MİLİMETRİK HİZALAMA */
/* Transform (Y ekseni) kaydırması her duruma uyum sağladığı için kalabalık kodlar temizlendi */
body.admin-bar .sanpet-topbar { top: 32px !important; }
body.admin-bar .sanpet-kapsul-wrapper { top: 77px !important; }
@media (max-width: 782px) {
    body.admin-bar .sanpet-kapsul-wrapper { top: 61px !important; }
}

/* ====================================================
   ARKAPLAN VİDEOSU İÇİN ENDÜSTRİYEL NOKTA (MESH) DOKUSU
==================================================== */
.sanpet-noktali-video .elementor-background-video-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0.6) 1px, transparent 1px);
    background-size: 3px 3px;
    z-index: 1;
}

/* iOS Safari Video Resize Zıplama Çözümü */
.elementor-background-video-container,
.elementor-background-video-container video {
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    position: absolute !important;
}