/**
 * Mobile Menu Button Fix
 * Mobil menü butonunun görünmesini sağlar
 */

/* Mobile Menu Button - Default hidden */
.xb-nav-mobile-button {
    display: none !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: #ffffff !important;
    border: 2px solid #e9ecef !important;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.xb-nav-mobile-button span {
    display: block;
    width: 22px;
    height: 2px;
    background: #2d3748 !important;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.xb-nav-mobile-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #006233 !important;
}

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

/* Active state */
.xb-nav-mobile-button.active {
    background: #006233 !important;
    border-color: #006233 !important;
}

.xb-nav-mobile-button.active span {
    background: #ffffff !important;
}

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

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

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

/* Tablet and Mobile - Show button */
@media (max-width: 991px) {
    .xb-nav-mobile-button {
        display: flex !important;
    }
    
    /* Hide navigation on mobile */
    .vt-nav {
        display: none !important;
    }
    
    /* Hide desktop language switcher on mobile */
    .vt-header-actions .vt-language {
        display: none !important;
    }
    
    /* Adjust header actions */
    .vt-header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    /* Search button adjustments */
    .vt-search-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .vt-search-btn span {
        display: none;
    }
    
    /* Header row adjustments */
    .vt-header-row {
        padding: 10px 0;
    }
}

/* Mobile specific */
@media (max-width: 767px) {
    .xb-nav-mobile-button {
        width: 40px;
        height: 40px;
    }
    
    .xb-nav-mobile-button span {
        width: 20px;
        margin: 3px 0;
    }
    
    /* Topbar hide on mobile */
    .vt-topbar {
        display: none;
    }
    
    /* Logo size adjustment */
    .vt-logo img {
        max-height: 40px;
    }
    
    /* Header padding adjustment */
    .vt-header-main {
        padding: 10px 0;
    }
    
    /* Search button icon only */
    .vt-search-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
    }
}

/* Very small devices */
@media (max-width: 480px) {
    .xb-nav-mobile-button {
        width: 36px;
        height: 36px;
    }
    
    .xb-nav-mobile-button span {
        width: 18px;
        height: 2px;
        margin: 2.5px 0;
    }
    
    .vt-header-actions {
        gap: 8px;
    }
    
    .vt-search-btn {
        width: 36px;
        height: 36px;
    }
}

/* Force display on mobile with high specificity */
@media screen and (max-width: 991px) {
    .vt-header .vt-header-main .vt-header-actions .xb-nav-mobile-button,
    .vt-header-actions > .xb-nav-mobile-button,
    #vt-mobile-toggle.xb-nav-mobile-button {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}