/* ============================
   GTEKAL Header Plugin CSS
   ============================ */

/* Reset & Variables */
:root {
    --gtekal-bg: #ffffff;
    --gtekal-text: #333333;
    --gtekal-hover: #c41230;
    --gtekal-topbar-bg: #1a1a2e;
    --gtekal-topbar-color: #ffffff;
    --gtekal-shadow: 0 2px 20px rgba(0,0,0,0.08);
    --gtekal-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gtekal-header-height: 75px;
    --gtekal-topbar-height: 38px;
    --gtekal-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ===== TOP BAR ===== */
.gtekal-topbar {
    background: var(--gtekal-topbar-bg);
    color: var(--gtekal-topbar-color);
    font-size: 13px;
    height: var(--gtekal-topbar-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    font-family: var(--gtekal-font);
}

.gtekal-topbar-inner {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gtekal-topbar-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.gtekal-topbar-left a {
    color: var(--gtekal-topbar-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.85;
    transition: var(--gtekal-transition);
}

.gtekal-topbar-left a:hover {
    opacity: 1;
}

.gtekal-topbar-right {
    opacity: 0.7;
    font-size: 12px;
}

/* ===== HEADER ===== */
.gtekal-header {
    background: var(--gtekal-bg);
    height: var(--gtekal-header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    transition: var(--gtekal-transition);
    font-family: var(--gtekal-font);
    box-shadow: var(--gtekal-shadow);
}

/* Top bar varsa header'ı aşağı it */
.gtekal-topbar + .gtekal-header {
    top: var(--gtekal-topbar-height);
}

.gtekal-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
    height: 65px;
}

.gtekal-header-inner {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* ===== SPACER ===== */
.gtekal-header-spacer {
    height: var(--gtekal-header-height);
}

.gtekal-topbar + .gtekal-header + .gtekal-mobile-overlay + .gtekal-header-spacer {
    height: calc(var(--gtekal-header-height) + var(--gtekal-topbar-height));
}

/* ===== LOGO ===== */
.gtekal-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.gtekal-logo-img {
    max-height: 50px;
    width: auto;
    transition: var(--gtekal-transition);
}

.scrolled .gtekal-logo-img {
    max-height: 42px;
}

.gtekal-logo-text-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gtekal-logo-icon svg {
    display: block;
}

.gtekal-logo-texts {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.gtekal-logo-main {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    letter-spacing: 1px;
}

.gtekal-logo-main::first-letter {
    color: var(--gtekal-hover);
}

.gtekal-logo-sub {
    font-size: 10px;
    color: #888;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 400;
    margin-top: 2px;
}

/* ===== NAVIGATION ===== */
.gtekal-nav {
    display: flex;
    align-items: center;
}

.gtekal-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.gtekal-menu-item {
    position: relative;
}

.gtekal-menu-item > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    color: var(--gtekal-text);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: var(--gtekal-transition);
    white-space: nowrap;
    position: relative;
}

.gtekal-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--gtekal-hover);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.gtekal-menu-item > a:hover::after,
.gtekal-menu-item.active > a::after {
    transform: scaleX(1);
    transform-origin: left;
}

.gtekal-menu-item > a:hover {
    color: var(--gtekal-hover);
}

.gtekal-chevron {
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.gtekal-menu-item:hover > a .gtekal-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* ===== DROPDOWN SUBMENU ===== */
.gtekal-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 260px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-radius: 0 0 8px 8px;
    border-top: 2px solid var(--gtekal-hover);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--gtekal-transition);
    z-index: 100;
}

.gtekal-menu-item:hover > .gtekal-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gtekal-submenu li a {
    display: block;
    padding: 10px 22px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: var(--gtekal-transition);
    border-left: 3px solid transparent;
}

.gtekal-submenu li a:hover {
    background: #f8f8f8;
    color: var(--gtekal-hover);
    border-left-color: var(--gtekal-hover);
    padding-left: 26px;
}

/* ===== LANGUAGE SWITCHER ===== */
.gtekal-lang-switcher {
    position: relative;
    margin-left: 15px;
    flex-shrink: 0;
}

.gtekal-lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #3a3a50;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--gtekal-transition);
    font-family: var(--gtekal-font);
    white-space: nowrap;
}

.gtekal-lang-current:hover {
    background: #2d2d42;
}

.gtekal-lang-flag {
    font-size: 16px;
    line-height: 1;
}

.gtekal-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    min-width: 180px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-radius: 10px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--gtekal-transition);
    z-index: 101;
    overflow: hidden;
}

.gtekal-lang-switcher.open .gtekal-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gtekal-lang-switcher.open .gtekal-chevron {
    transform: rotate(180deg);
}

.gtekal-lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
    font-size: 13.5px;
    transition: var(--gtekal-transition);
}

.gtekal-lang-dropdown li a:hover {
    background: #f5f5f5;
    color: var(--gtekal-hover);
}

/* ===== MOBILE TOGGLE ===== */
.gtekal-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 100001;
}

.gtekal-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gtekal-text);
    transition: var(--gtekal-transition);
    border-radius: 2px;
}

.gtekal-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.gtekal-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.gtekal-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE OVERLAY ===== */
.gtekal-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99996;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gtekal-mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== WHATSAPP BUTTON ===== */
.gtekal-whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--gtekal-transition);
    text-decoration: none;
}

.gtekal-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* Pulse animation */
.gtekal-whatsapp-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: gtekal-pulse 2s infinite;
    z-index: -1;
}

@keyframes gtekal-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .gtekal-menu-item > a {
        padding: 10px 12px;
        font-size: 13.5px;
    }
}

@media (max-width: 900px) {
    .gtekal-mobile-toggle {
        display: flex;
    }
    
    .gtekal-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 100000;
        flex-direction: column;
        padding: 80px 0 30px;
        box-shadow: -5px 0 30px rgba(0,0,0,0.15);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }
    
    .gtekal-nav.open {
        right: 0;
    }
    
    .gtekal-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .gtekal-menu-item > a {
        padding: 14px 25px;
        font-size: 15px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .gtekal-menu-item > a::after {
        display: none;
    }
    
    .gtekal-submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        background: #f9f9f9;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.35s ease;
        padding: 0;
    }
    
    .gtekal-menu-item.sub-open > .gtekal-submenu {
        max-height: 500px;
        padding: 5px 0;
    }
    
    .gtekal-submenu li a {
        padding-left: 40px;
        font-size: 13.5px;
    }
    
    .gtekal-lang-switcher {
        margin: 20px 25px 0;
        width: calc(100% - 50px);
    }
    
    .gtekal-lang-current {
        width: 100%;
        justify-content: center;
    }
    
    .gtekal-lang-dropdown {
        position: static;
        box-shadow: none;
        border-radius: 8px;
        margin-top: 8px;
        background: #f5f5f5;
    }
    
    .gtekal-lang-switcher.open .gtekal-lang-dropdown {
        transform: none;
    }
    
    .gtekal-topbar-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .gtekal-header-inner {
        padding: 0 15px;
    }
    
    .gtekal-topbar-inner {
        padding: 0 15px;
    }
    
    .gtekal-logo-main {
        font-size: 18px;
    }
    
    .gtekal-logo-sub {
        font-size: 8px;
    }
    
    .gtekal-whatsapp-btn {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
}

/* ===== WP Admin Bar Uyumu ===== */
.admin-bar .gtekal-header {
    top: 32px;
}

.admin-bar .gtekal-topbar {
    top: 32px;
}

.admin-bar .gtekal-topbar + .gtekal-header {
    top: calc(32px + var(--gtekal-topbar-height));
}

@media (max-width: 782px) {
    .admin-bar .gtekal-header {
        top: 46px;
    }
    .admin-bar .gtekal-topbar {
        top: 46px;
    }
}
