/* ==========================================================================
   1. ÜYE VE MİSAFİR GÖRÜNÜRLÜK KURALLARI (Giriş Yapmış / Yapmamış)
   ========================================================================== */

body.logged-in .pp-loggedout,
body.logged-in .sadece-misafir {
    display: none !important;
}

body:not(.logged-in) .pp-loggedin,
body:not(.logged-in) .sadece-uye,
.logged-out .pp-loggedin {
    display: none !important;
}

/* ==========================================================================
   2. PROFİL AÇILIR MENÜSÜ KONUMLANDIRMASI
   ========================================================================== */

.profil-menusu-gizle {
    display: none !important;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    z-index: 998;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.profil-menusu-gizle.acik {
    display: block !important;
}

/* ==========================================================================
   3. MOBİL MENÜ VE HEADER ÜSTTE KALMA (Z-INDEX) ÇÖZÜMÜ
   ========================================================================== */

.ana-mobil-header {
    position: relative;
    z-index: 99999999;
}

.elementor-menu-toggle {
    position: relative;
    z-index: 999999 !important;
}

.elementor-nav-menu--dropdown,
.elementor-widget-nav-menu,
header.elementor-location-header,
.elementor-container {
    z-index: 1000000 !important;
}

/* ==========================================================================
   4. PROFILEPRESS HESABIM VE PROFİL SAYFASI DÜZENLEMELERİ
   ========================================================================== */

a.ppmyac-dashboard-item.list-subscriptions,
a.ppmyac-dashboard-item.ppmyac-dashboard,
a.ppmyac-dashboard-item.list-orders,
a.ppmyac-dashboard-item.list-downloads,
a.ppmyac-dashboard-item.billing-details,
a.ppmyac-dashboard-item.delete-account,
a.ppmyac-dashboard-item.ppmyac-user-logout {
    display: none !important;
}

.profilepress-myaccount-content p {
    display: none !important;
}

.ppma-dashboard-item.list-edit-profile a {
    font-size: 0 !important;
}

.ppma-dashboard-item.list-edit-profile a:before {
    content: "\f007";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 16px !important;
    margin-right: 10px;
}

.ppma-dashboard-item.list-edit-profile a:after {
    content: "Profilini Düzenle";
    font-size: 16px !important;
    visibility: visible;
}

.ppress-dpf-profile-nav {
    display: none !important;
}

.profilepress-myaccount-form-field.pp-cover-image,
.pp-user-cover-image {
    display: none !important;
}

/* ==========================================================================
   5. İLETİŞİM FORMU BUTON TASARIMI
   ========================================================================== */

.contact-form input[type="submit"],
.pushbutton-wide {
    background-color: #e38060 !important;
    border-color: #e38060 !important;
    color: #ffffff !important;
    border-radius: 5px;
}

.contact-form input[type="submit"]:hover,
.pushbutton-wide:hover {
    background-color: #c96d50 !important;
    border-color: #c96d50 !important;
}

/* ==========================================================================
   6. ANA MENÜ BUTONLARI (TURUNCU HAP BUTONLAR VE MAVİ HOVER)
   ========================================================================== */

.elementor-widget-trad-navigation-menu .trad-nav-menu > li {
    margin-left: 2px !important;
    margin-right: 2px !important;
}

.elementor-widget-trad-navigation-menu .trad-nav-menu .trad-menu-item {
    background-color: #E87A54 !important;
    color: #ffffff !important;
    border-radius: 25px !important;
    padding: 7px 15px !important;
    margin: 2px 0 !important;
    display: inline-block !important;
    transition: transform 0.25s ease, background-color 0.25s ease !important;
}

.elementor-widget-trad-navigation-menu .trad-nav-menu .trad-menu-item:hover,
.elementor-widget-trad-navigation-menu .trad-nav-menu .trad-menu-item:focus {
    background-color: #2575FC !important;
    color: #ffffff !important;
    transform: scale(1.07) !important;
}

/* ==========================================================================
   7. TÜM SAYFALARDA KESİN ÇALIŞAN SABİT (FIXED) VE KÜÇÜLEN HEADER
   ========================================================================== */

#tahefobu-header,
.turbo-header-template {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999999 !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
}

body {
    padding-top: 140px !important;
}

#tahefobu-header img,
#tahefobu-header .elementor-heading-title,
#tahefobu-header .e-con,
#tahefobu-header .trad-menu-item,
#tahefobu-header .elementor-icon,
#tahefobu-header .elementor-menu-toggle,
#tahefobu-header .elementor-element-5d69819,
#tahefobu-header .elementor-element-bc5ce81 {
    transition: all 0.3s ease !important;
}

#tahefobu-header.kucuk-header .e-con,
.turbo-header-template.kucuk-header .e-con {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    min-height: 0px !important;
}

#tahefobu-header.kucuk-header img,
.turbo-header-template.kucuk-header img {
    max-width: 50px !important;
    height: auto !important;
    display: block !important;
}

#tahefobu-header.kucuk-header .elementor-heading-title,
.turbo-header-template.kucuk-header .elementor-heading-title {
    font-size: 9.5px !important;
    line-height: 1.05 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#tahefobu-header.kucuk-header .trad-menu-item,
.turbo-header-template.kucuk-header .trad-menu-item {
    padding: 4px 10px !important;
    font-size: 13px !important;
}

@media screen and (max-width: 1024px) {
    /* Hamburger menüyü en üst tıklanabilir katmana taşı */
    #tahefobu-header .elementor-element-bc5ce81 {
        z-index: 99999999 !important;
        pointer-events: auto !important;
    }

    #tahefobu-header .elementor-element-bc5ce81 .elementor-widget-container,
    #tahefobu-header .elementor-element-bc5ce81 .elementor-menu-toggle,
    #tahefobu-header .elementor-element-bc5ce81 a,
    #tahefobu-header .elementor-element-bc5ce81 i,
    #tahefobu-header .elementor-element-bc5ce81 svg {
        pointer-events: auto !important;
    }

    #tahefobu-header.kucuk-header .elementor-element-72e8102 {
        max-height: 50px !important;
        padding: 0px !important;
        margin: 0px !important;
    }

    /* 1. Logo ve yazı */
    #tahefobu-header.kucuk-header .elementor-element-dab4e54 {
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 0px !important;
        margin: 0px !important;
    }

    #tahefobu-header.kucuk-header .elementor-element-dab4e54 .elementor-widget-image {
        width: auto !important;
        max-width: 50px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #tahefobu-header.kucuk-header .elementor-element-dab4e54 .elementor-widget-heading {
        width: 65px !important;
        max-width: 65px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 2. Hamburger menü (Yerinde ve sağ köşede) */
    #tahefobu-header.kucuk-header .elementor-element-bc5ce81 {
        margin-top: -46px !important;
        padding-right: 12px !important;
        padding-bottom: 0px !important;
        transform: none !important;
    }

    #tahefobu-header.kucuk-header .elementor-element-bc5ce81 .elementor-widget-container {
        transform: scale(0.75) !important;
        transform-origin: right center !important;
    }

    /* 3. Kullanıcı İsmi ve Giriş İkonu (Menünün solunda) */
    #tahefobu-header.kucuk-header .elementor-element-5d69819 {
        top: 5px !important;
        right: 46px !important;
        transform: scale(0.95) !important;
        transform-origin: top right !important;
        z-index: 9999998 !important;
    }
}

body.admin-bar #tahefobu-header,
body.admin-bar .turbo-header-template {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar #tahefobu-header,
    body.admin-bar .turbo-header-template {
        top: 46px !important;
    }
    body {
        padding-top: 115px !important;
    }
}