/* ================================================
   Header Plugin CSS – Umut Özel Tasarım
   Version: 1.0.11+ (sticky + mobil iyileştirmeleri)
   ================================================ */

/* Google Fonts zaten plugin'de enqueue ediliyor: Manrope */

/* ────────────────────────────────────────────────
   Sticky Header Genel
───────────────────────────────────────────────── */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    transition: all 0.3s ease;
   	background: #f5f5f5;; /* başlangıçta şeffaf olabilir */
	
}

.main-header.sticky-active {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
}

/* ────────────────────────────────────────────────
   Top Bar (üstteki 4 kolonlu kısım)
───────────────────────────────────────────────── */
.top-bar {
    background: #f5f5f5;
    color: #000000; /* senin son halindeki gibi siyah metin */
    font-family: "Manrope", sans-serif;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1290px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
	border-bottom: 1px solid rgb(156,156,156);
	padding: 14px 0;
}

.top-col-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.18s ease;
    flex: 1 1 220px; /* mobil'de esnek büyüme */
    max-width: 300px;
}

.top-col-link:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.top-col {
    padding: 8px 0;
    width: fit-content;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center; /* mobil merkezleme için */
}

.top-row.icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.top-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

h4.top-title {
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #000000;
    margin: 0;
    padding: 0;
}

.top-row.content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1em;
    color: #9F9F9F;
}

.top-row.content .top-icon.small {
    font-size: 1rem;
    opacity: 0.85;
}

.top-col-link:hover h4.top-title {
    color: #000000;
}

.top-col-link:hover .top-row.content {
    color: #777777;
}

/* ────────────────────────────────────────────────
   Ana Header Satırı (logo + menü + login + hamburger)
───────────────────────────────────────────────── */
.header-main-row {
    padding: 18px 0;
    border-bottom: 1px solid #e5e5e5;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1290px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
}

.header-logo a {
    display: block;
}

.header-logo img {
    max-height: 60px;
    width: auto;
    height: auto;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

/* Sağ kısım */
.header-right-section {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Desktop Menü */
.main-nav.desktop-nav .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
}

.nav-menu > li > a {
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 900;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 8px 4px;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
    color: #333333;
}

/* Submenu */
.nav-menu .sub-menu {
    position: absolute;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    min-width: 180px;
    padding: 8px 0;
    margin: 8px 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 1000;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li.focus > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    transition: background 0.2s ease;
}

.nav-menu .sub-menu a:hover {
    background: #f8f8f8;
}

/* Login Butonu – Elementor'dan bağımsız */
.login-btn {
    font-family: "Manrope", sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff !important;
    background: #000000 !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    white-space: nowrap;
    border: none !important;
    box-shadow: none !important;
}

.login-btn:hover {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
}

body .hamburger {
	display: none;
}

.hamburger {
    display: none; /* desktop için default */
    width: 44px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 10002;
}

.hamburger-box {
    width: 40px;
    height: 40px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    position: absolute;
    top: 50%;
    left: 8px;
    right: 8px;
    height: 3px;
    background-color: #000;
    border-radius: 4px;
    transform: translateY(-50%);
    transition: all 0.35s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 4px;
    transition: all 0.35s ease;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    top: 10px;
}

.hamburger.is-active .hamburger-inner {
    background-color: transparent;
}

.hamburger.is-active .hamburger-inner::before {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.is-active .hamburger-inner::after {
    transform: translateY(-10px) rotate(-45deg);
}

/* ===============================
   MOBILE MENU (≤ 992px)
================================ */

@media (max-width: 992px) {
	
	.header-container,
	.top-bar-container {
		padding: 10px 20px;
	}
	
	.hours-col,
	.address-col {
		display: none;
	}

    /* Hamburger görünür */
    .hamburger {
            display: block !important;
		 background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
    width: 32px !important;
    height: 40px;
    position: relative;
    z-index: 10001;
    }

    /* Desktop menü gizli */
    .desktop-nav {
        display: none !important;
    }

    /* Backdrop */
    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        z-index: 99998;
    }

    .mobile-menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile menu panel */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: #ffffff;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(.77,0,.18,1);
        z-index: 99999;
        display: flex;
        flex-direction: column;
    }

    .mobile-menu.active {
        transform: translateX(0);
    }

    /* Header (logo + phone + close) */
    .mobile-menu-header {
        padding: 16px 18px;
        border-bottom: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-logo-phone {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .mobile-logo img {
        max-height: 40px; /* logo küçültüldü */
        width: auto;
    }

    .mobile-site-title {
        font-size: 18px;
        font-weight: 800;
    }

    .mobile-phone {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: #333;
    }

    .phone-icon {
        font-size: 16px;
    }

    .mobile-close {
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Menu */
    .mobile-nav {
        flex: 1;
        overflow-y: auto;
        padding: 24px;
    }

    .mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-list li {
        margin-bottom: 18px;
    }

    .mobile-menu-list a {
        font-size: 18px;
        font-weight: 700;
        color: #000;
        text-decoration: none;
        display: block;
        padding: 8px 0;
    }

    /* Submenu (accordion) */
    .mobile-menu-list li.menu-item-has-children > a {
        position: relative;
        padding-right: 28px;
    }

    .mobile-menu-list li.menu-item-has-children > a::after {
        content: "";
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24"><path d="M9 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
        background-size: contain;
        background-repeat: no-repeat;
        color: #000;
        transition: transform 0.3s ease;
    }

    .mobile-menu-list li.menu-item-has-children .sub-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .mobile-menu-list li.menu-item-has-children.open .sub-menu {
        max-height: 500px;
    }

    .mobile-menu-list li.menu-item-has-children.open > a::after {
        transform: translateY(-50%) rotate(90deg);
    }

    /* Submenu alt itemlerde ok yok */
    .mobile-menu-list li.menu-item-has-children .sub-menu li a::after {
        display: none !important;
    }

    .mobile-menu-list .sub-menu a {
        font-size: 16px;
        font-weight: 600;
        color: #555;
        padding-left: 12px;
    }

    /* Footer (Login + CTA) */
    .mobile-menu-footer {
        padding: 18px;
        border-top: 1px solid #eee;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-login-btn,
    .mobile-cta-btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px;
        border-radius: 8px;
        font-weight: 700;
        text-decoration: none;
    }

    .mobile-login-btn {
        background: #000;
        color: #fff;
    }

    .mobile-cta-btn {
        background: #fff;
        color: #000;
        border: 1px solid #000;
    }
}

/* Desktop'ta tamamen kapalı */
@media (min-width: 993px) {
    .mobile-menu,
    .mobile-menu-backdrop {
        display: none !important;
    }
}

@media (max-width: 993px) {
	.content-icon {
		display: none;
	}
}

