/**
 * Fixed Mobile Menu Design - Vize Tema
 * Tasarım hataları düzeltildi, brand colors uygulandı
 * Ana renkler: #006233 (yeşil), #d21034 (kırmızı), #ffffff (beyaz)
 */

/* ========== OVERLAY ========== */
.vt-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
    z-index: 9998;
}

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

/* ========== MOBILE MENU CONTAINER ========== */
.vt-modern-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.4s ease-out;
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
}

.vt-modern-mobile-menu.active {
    right: 0;
}

/* Küçük ekranlar için tam genişlik */
@media (max-width: 480px) {
    .vt-modern-mobile-menu {
        width: 100%;
        max-width: 100%;
    }
}

/* ========== HEADER SECTION ========== */
.vt-menu-header {
    background: linear-gradient(135deg, #006233 0%, #4a9d6f 100%);
    padding: 20px;
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 98, 51, 0.2);
}

.vt-menu-logo {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.vt-menu-logo img {
    max-height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 5px;
}

.vt-menu-logo h3 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.vt-menu-close {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.vt-menu-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: rotate(90deg);
}

/* ========== LANGUAGE SWITCHER ========== */
.vt-modern-language-switcher {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.vt-language-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vt-language-current:hover {
    border-color: #006233;
    box-shadow: 0 2px 8px rgba(0, 98, 51, 0.15);
}

.vt-language-info {
    display: flex;
    align-items: center;
}

.vt-language-flag {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    margin-right: 10px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.vt-language-name {
    font-weight: 500;
    color: #2d3748;
    font-size: 14px;
}

.vt-language-arrow {
    color: #6c757d;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.vt-language-current.active .vt-language-arrow {
    transform: rotate(180deg);
}

.vt-language-dropdown {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 0;
}

.vt-language-dropdown.active {
    max-height: 200px;
    opacity: 1;
}

.vt-language-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
}

.vt-language-option:last-child {
    border-bottom: none;
}

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

.vt-language-option.current {
    background: #e8f5e8;
    color: #006233;
    font-weight: 500;
}

.vt-language-option .vt-language-flag {
    margin-right: 10px;
}

/* ========== NAVIGATION MENU ========== */
.vt-modern-navigation {
    flex: 1;
    overflow-y: auto;
    background: white;
    padding: 10px 0;
}

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

.vt-nav-item {
    border-bottom: 1px solid rgba(0, 98, 51, 0.08);
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.3s ease;
}

.vt-nav-item:last-child {
    border-bottom: none;
}

.vt-nav-item.animate {
    opacity: 1;
    transform: translateX(0);
}

.vt-nav-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    background: white;
}

.vt-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #e8f5e8 0%, rgba(232, 245, 232, 0.5) 100%);
    transition: width 0.4s ease;
    z-index: 0;
}

.vt-nav-link:hover::before {
    width: 100%;
}

.vt-nav-link:hover {
    color: #006233;
    background: transparent;
    padding-left: 25px;
}

.vt-nav-link.current-menu-item {
    background: linear-gradient(135deg, #006233 0%, #4a9d6f 100%);
    color: white;
    font-weight: 600;
    border-left: 4px solid #004d26;
}

.vt-nav-link.current-menu-item::before {
    display: none;
}

.vt-nav-icon {
    width: 18px;
    height: 18px;
    margin-right: 14px;
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    font-size: 16px;
}

.vt-nav-link:hover .vt-nav-icon {
    opacity: 1;
    transform: scale(1.1);
}

.vt-nav-link.current-menu-item .vt-nav-icon {
    opacity: 1;
    color: white;
}

.vt-nav-text {
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* ========== MENU FOOTER ========== */
.vt-menu-footer {
    background: #f8f9fa;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.vt-contact-info {
    margin-bottom: 15px;
}

.vt-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #6c757d;
}

.vt-contact-item:last-child {
    margin-bottom: 0;
}

.vt-contact-icon {
    width: 14px;
    height: 14px;
    margin-right: 8px;
    color: #006233;
    font-size: 12px;
}

.vt-contact-item a {
    color: #006233;
    text-decoration: none;
}

.vt-contact-item a:hover {
    color: #004d26;
}

.vt-social-links {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.vt-social-link {
    width: 32px;
    height: 32px;
    background: #006233;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 98, 51, 0.2);
}

.vt-social-link:hover {
    background: #004d26;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 98, 51, 0.3);
}

/* ========== SCROLL STYLING ========== */
.vt-modern-mobile-menu::-webkit-scrollbar {
    width: 4px;
}

.vt-modern-mobile-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.vt-modern-mobile-menu::-webkit-scrollbar-thumb {
    background: #006233;
    border-radius: 2px;
}

.vt-modern-mobile-menu::-webkit-scrollbar-thumb:hover {
    background: #004d26;
}

/* ========== BODY LOCK ========== */
body.vt-mobile-menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

/* ========== RESPONSIVE IMPROVEMENTS ========== */
@media (max-width: 380px) {
    .vt-menu-header {
        padding: 15px;
        min-height: 70px;
    }
    
    .vt-menu-logo img {
        max-height: 35px;
    }
    
    .vt-menu-close {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .vt-modern-language-switcher,
    .vt-nav-link {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .vt-menu-footer {
        padding: 15px;
    }
}

/* ========== ACCESSIBILITY ========== */
.vt-modern-mobile-menu *:focus {
    outline: 2px solid #006233;
    outline-offset: 2px;
}

/* ========== PERFORMANCE ========== */
.vt-modern-mobile-menu,
.vt-mobile-menu-overlay {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}