/**
 * Mobile Menu - Native App Style Design
 * Modern mobil uygulama tasarımı
 */

/* Container - Full screen mobile app style */
.vt-modern-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #f8f9fa;
    z-index: 99999;
    display: none;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.vt-modern-mobile-menu.active {
    display: flex;
    transform: translateX(0);
}

/* Header - iOS style */
.vt-menu-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 60px;
}

.vt-menu-logo {
    flex: 1;
}

.vt-menu-logo img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.vt-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vt-menu-close:active {
    transform: scale(0.95);
    background: rgba(239, 68, 68, 0.2);
}

/* Language Switcher - Card Style */
.vt-modern-language-switcher {
    margin: 15px;
    background: #ffffff;
    border-radius: 16px;
    overflow: visible !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
}

/* Masaüstünden kopyalanan dil seçici için stil uyumlaması */
.vt-modern-language-switcher .vt-language-btn {
    width: 100%;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    transition: background 0.2s ease;
}

.vt-modern-language-switcher .vt-language-btn:active {
    background: #f3f4f6;
}

.vt-modern-language-switcher .vt-flag-icon {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-right: 12px;
}

.vt-modern-language-switcher .vt-language-btn span {
    flex: 1;
    text-align: left;
}

.vt-modern-language-switcher .vt-language-btn i {
    color: #9ca3af;
    font-size: 12px;
    transition: transform 0.3s ease;
}

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

.vt-language-current {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s ease;
}

.vt-language-current:active {
    background: #f3f4f6;
}

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

.vt-language-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vt-language-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

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

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

.vt-language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1000;
    display: none;
}

.vt-language-dropdown[style*="display: block"],
.vt-language-current.active + .vt-language-dropdown,
.vt-language-current.active ~ .vt-language-dropdown {
    display: block !important;
}

.vt-language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
    transition: background 0.2s ease;
    border-left: 3px solid transparent;
}

.vt-language-option:active {
    background: #e5e7eb;
}

.vt-language-option.current {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    font-weight: 600;
    border-left-color: #10b981;
}

/* Navigation - iOS List Style */
.vt-modern-navigation {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
}

.vt-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vt-nav-item {
    opacity: 1 !important;
    transform: none !important;
}

.vt-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 14px;
    text-decoration: none;
    color: #1f2937;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.vt-nav-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.vt-nav-link:active {
    transform: scale(0.98);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.04);
}

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

.vt-nav-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 16px !important;
    flex-shrink: 0;
}

.vt-nav-text {
    flex: 1;
    color: #1f2937;
}

/* Menu Footer - Bottom App Bar Style */
.vt-menu-footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    animation: none;
    position: relative;
    z-index: 1;
}

.vt-contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.vt-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 5px;
    background: #f9fafb;
    border-radius: 12px;
    animation: none;
}

.vt-contact-icon {
    width: 32px !important;
    height: 32px !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 8px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.vt-contact-item span {
    font-size: 11px;
    color: #6b7280;
    text-align: center;
    line-height: 1.3;
}

.vt-social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.vt-social-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    color: #6b7280;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s ease;
    animation: none;
}

.vt-social-link:active {
    transform: scale(0.95);
}

.vt-social-link[aria-label="Facebook"] {
    background: #1877f2;
    color: #ffffff;
}

.vt-social-link[aria-label="Instagram"] {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: #ffffff;
}

.vt-social-link[aria-label="Twitter"] {
    background: #1da1f2;
    color: #ffffff;
}

.vt-social-link[aria-label="WhatsApp"] {
    background: #25d366;
    color: #ffffff;
}

/* Smooth iOS-like scrollbar */
.vt-modern-navigation::-webkit-scrollbar {
    width: 4px;
}

.vt-modern-navigation::-webkit-scrollbar-track {
    background: transparent;
}

.vt-modern-navigation::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

/* Safe area for notched phones */
@supports (padding-top: env(safe-area-inset-top)) {
    .vt-menu-header {
        padding-top: calc(15px + env(safe-area-inset-top));
    }
    
    .vt-menu-footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vt-modern-mobile-menu.active .vt-nav-item {
    animation: slideIn 0.3s ease forwards;
}

.vt-modern-mobile-menu.active .vt-nav-item:nth-child(1) { animation-delay: 0.1s; }
.vt-modern-mobile-menu.active .vt-nav-item:nth-child(2) { animation-delay: 0.15s; }
.vt-modern-mobile-menu.active .vt-nav-item:nth-child(3) { animation-delay: 0.2s; }
.vt-modern-mobile-menu.active .vt-nav-item:nth-child(4) { animation-delay: 0.25s; }

/* Overlay backdrop */
.vt-modern-mobile-menu:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: -1;
}

/* Small devices optimization */
@media (max-width: 360px) {
    .vt-nav-link {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .vt-nav-icon {
        width: 32px;
        height: 32px;
        font-size: 14px !important;
    }
    
    .vt-contact-info {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .vt-contact-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
    }
    
    .vt-contact-item span {
        text-align: left;
        font-size: 12px;
    }
}