/**
 * VT Header Styles - Clean and Modern Design
 * Projeye özel header stilleri
 */

/* ============================================
   HEADER GENEL
   ============================================ */
.vt-header {
    position: relative;
    width: 100%;
    background: #ffffff;
    z-index: 999;
}

/* ============================================
   TOPBAR
   ============================================ */
.vt-topbar {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
    font-size: 13px;
    color: #6c757d;
}

.vt-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.vt-topbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vt-topbar-item i {
    color: #006233;
    font-size: 12px;
}

.vt-topbar-item span {
    color: #6c757d;
    margin-right: 5px;
}

.vt-topbar-item a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.vt-topbar-item a:hover {
    color: #006233;
}

/* ============================================
   MAIN HEADER
   ============================================ */
.vt-header-main {
    background: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

/* Sticky Header */
.vt-header-main.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.vt-header-main.sticky .vt-header-row {
    padding: 10px 0;
}

/* Header Row */
.vt-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

/* ============================================
   LOGO
   ============================================ */
.vt-logo {
    flex-shrink: 0;
}

.vt-logo a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.vt-logo a:hover {
    transform: scale(1.05);
}

.vt-logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

.vt-header-main.sticky .vt-logo img {
    max-height: 50px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.vt-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 30px;
}

.vt-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.vt-nav-menu > li {
    position: relative;
}

.vt-nav-menu > li > a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    color: #2d3748;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.vt-nav-menu > li > a:hover {
    color: #006233;
}

/* Active/Current Menu Item */
.vt-nav-menu > li.current-menu-item > a,
.vt-nav-menu > li.current-menu-ancestor > a {
    color: #006233;
}

/* Border for active items without dropdown */
.vt-nav-menu > li.current-menu-item:not(.menu-item-has-children) > a::after,
.vt-nav-menu > li.current-menu-ancestor:not(.menu-item-has-children) > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: #006233;
}

/* Border for active items with dropdown - use ::before instead */
.vt-nav-menu > li.current-menu-item.menu-item-has-children > a::before,
.vt-nav-menu > li.current-menu-ancestor.menu-item-has-children > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 35px; /* Leave space for arrow */
    height: 2px;
    background: #006233;
    z-index: 10;
}

/* Dropdown Arrow */
.vt-nav-menu > li.menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 11;
}

.vt-nav-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Dropdown Menu - submenu class için */
.vt-nav-menu .submenu,
.vt-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border-top: 3px solid #006233;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
    padding: 10px 0;
    list-style: none;
    margin: 0;
}

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

.vt-nav-menu .submenu li,
.vt-nav-menu .sub-menu li {
    list-style: none;
    margin: 0;
}

.vt-nav-menu .submenu a,
.vt-nav-menu .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.vt-nav-menu .submenu a span,
.vt-nav-menu .sub-menu a span {
    display: inline;
}

.vt-nav-menu .submenu a:hover,
.vt-nav-menu .sub-menu a:hover {
    background: #f7fafc;
    color: #006233;
    padding-left: 25px;
}

/* Multi-level Dropdown */
.vt-nav-menu .submenu .submenu,
.vt-nav-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 0;
}

/* ============================================
   HEADER ACTIONS
   ============================================ */
.vt-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Search Button */
.vt-search-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vt-search-btn:hover {
    background: #006233;
    border-color: #006233;
    color: #ffffff;
}

.vt-search-btn i {
    font-size: 14px;
}

.vt-search-btn span {
    display: inline-block;
}

/* Language Switcher */
.vt-language {
    position: relative;
}

.vt-language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.vt-language-btn:hover {
    border-color: #006233;
    background: #f8f9fa;
}

.vt-language-btn img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.vt-language-btn span {
    display: inline-block;
}

.vt-language-btn i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* Language Dropdown */
.vt-language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 150px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
    padding: 8px 0;
    list-style: none;
    margin: 0;
    display: none !important;
}

.vt-language.active .vt-language-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}

.vt-language.active .vt-language-btn {
    border-color: #006233;
    background: #f8f9fa;
}

.vt-language.active .vt-language-btn i {
    transform: rotate(180deg);
}

.vt-language-dropdown li {
    list-style: none;
    margin: 0;
}

.vt-language-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.vt-language-dropdown a:hover {
    background: #f8f9fa;
    color: #006233;
}

.vt-language-dropdown a.active {
    background: #e8f5f0;
    color: #006233;
    font-weight: 600;
}

.vt-language-dropdown img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

/* Old class support */
.tp-lang-wrap {
    position: relative;
}

.tp-lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tp-lang-toggle:hover {
    border-color: #006233;
}

.tp-lang-img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.tp-lang-name {
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Menu Button */
.xb-nav-mobile-button {
    display: none;
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.xb-nav-mobile-button span {
    display: block;
    width: 25px;
    height: 2px;
    background: #2d3748;
    margin: 5px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.xb-nav-mobile-button:hover span {
    background: #006233;
}

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

.xb-nav-mobile-button.active span:nth-child(2) {
    opacity: 0;
}

.xb-nav-mobile-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1199px) {
    .vt-nav-menu > li > a {
        padding: 10px 14px;
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    /* Hide Desktop Elements */
    .vt-topbar {
        display: none;
    }
    
    .vt-nav {
        display: none;
    }
    
    .vt-search-btn span {
        display: none;
    }
    
    /* Masaüstü header'daki dil seçicide metin gizle (yer kazanmak için) */
    .vt-header-actions .vt-language-btn span {
        display: none;
    }
    
    /* Mobil menüdeki dil seçicide metin göster */
    .vt-modern-mobile-menu .vt-language-btn span {
        display: inline-block !important;
    }
    
    .vt-language-btn i {
        display: none;
    }
    
    .tp-lang-name {
        display: none;
    }
    
    /* Show Mobile Button */
    .xb-nav-mobile-button {
        display: block;
    }
    
    /* Adjust Header */
    .vt-header-main {
        padding: 10px 0;
    }
    
    .vt-logo img {
        max-height: 45px;
    }
    
    .vt-header-actions {
        gap: 10px;
    }
    
    .vt-search-btn {
        padding: 8px 10px;
        border-width: 1px;
    }
    
    .vt-language-btn {
        padding: 8px;
        border-width: 1px;
    }
    
    .tp-lang-toggle {
        padding: 8px 10px;
        border-width: 1px;
    }
}

@media (max-width: 575px) {
    .vt-header-main {
        padding: 8px 0;
    }
    
    .vt-logo img {
        max-height: 40px;
    }
    
    .vt-header-actions {
        gap: 8px;
    }
}

/* ============================================
   ADMIN BAR COMPATIBILITY
   ============================================ */
.admin-bar .vt-header-main.sticky {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .vt-header-main.sticky {
        top: 46px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.vt-header * {
    box-sizing: border-box;
}

.vt-header img {
    max-width: 100%;
    height: auto;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
.vt-nav-menu a:focus,
.vt-search-btn:focus,
.tp-lang-toggle:focus {
    outline: 2px solid #006233;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .vt-topbar,
    .vt-header-actions {
        display: none !important;
    }
}