/* ============================================
   Modern Mobile Menu - Glassmorphism & Animations
   ============================================ */

/* Overlay - Arka plan blur efekti */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 26, 15, 0.75);
}

[data-theme="light"] .mobile-menu-overlay {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000; /* Navbar ile aynı seviye */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                visibility 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Menu Container */
.mobile-menu-container {
    position: fixed;
    top: 50%; /* Dikey ortalama için */
    right: -100%;
    transform: translateY(-50%); /* Dikey ortalama */
    width: 85%;
    max-width: 400px;
    height: auto;
    max-height: 85vh; /* Viewport yüksekliğinin %85'i */
    min-height: 700px; /* Minimum yükseklik */
    background: rgba(10, 26, 15, 0.98);
}

[data-theme="light"] .mobile-menu-container {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(60px) saturate(200%);
    -webkit-backdrop-filter: blur(60px) saturate(200%);
    border: 1px solid rgba(74, 85, 104, 0.2);
    border-radius: 20px; /* Daha modern köşeler */
    box-shadow: 
        -20px 0 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(74, 85, 104, 0.1) inset,
        0 20px 60px rgba(74, 85, 104, 0.05);
    z-index: 1001; /* Navbar'ın üstünde (header z-index: 1000) */
    transition: right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-menu-overlay.active .mobile-menu-container {
    right: 24px; /* Navbar ile aynı margin */
    transform: translateY(-50%); /* Ortalama korunmalı */
}

/* Gradient Top Border */
.mobile-menu-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 255, 136, 0.8) 20%,
        rgba(0, 217, 119, 0.8) 50%,
        rgba(0, 179, 102, 0.8) 80%,
        transparent 100%
    );
    z-index: 1;
}

/* Close Button */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px; /* Daha modern köşeler */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-menu-close:hover {
    background: rgba(0, 255, 136, 0.4);
    border-color: rgba(0, 255, 136, 0.6);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.mobile-menu-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Menu List */
.nav-menu-mobile {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 70px 32px 32px; /* Daha fazla padding - üst ve alt eşit */
    gap: 12px; /* Daha fazla boşluk */
    overflow-y: auto;
    list-style: none;
    margin: 0;
    justify-content: flex-start; /* Üstten başla */
}

/* Menu Items */
.nav-item-mobile {
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

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

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Menu Links - Kurumsal Görünüm */
.nav-link-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Text ve arrow arasında boşluk */
    gap: 12px;
    padding: 18px 22px; /* Daha fazla padding */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px; /* Daha modern */
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    font-weight: var(--font-weight-medium);
}

.nav-link-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(0, 255, 136, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.nav-link-mobile:hover::before {
    left: 100%;
}

.nav-link-mobile:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.25);
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.15);
}

.nav-link-mobile:active {
    transform: translateX(4px) scale(0.98);
}

/* Link Icon - Gizli (kurumsal görünüm için) */
.nav-link-icon {
    display: none; /* Icon'ları gizle - daha kurumsal görünüm */
}

/* Link Text - Kurumsal */
.nav-link-text {
    flex: 1;
    font-size: 16px; /* Biraz daha büyük */
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.2px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-link-mobile:hover .nav-link-text {
    color: var(--text-primary);
}

/* Link Arrow - Daha Subtle ve Kurumsal */
.nav-link-arrow {
    font-size: 14px; /* Daha küçük */
    opacity: 0.3; /* Daha subtle */
    transition: all 0.3s ease;
    transform: translateX(-2px);
    color: var(--text-secondary);
    font-weight: var(--font-weight-normal);
}

.nav-link-mobile:hover .nav-link-arrow {
    opacity: 0.7;
    transform: translateX(3px);
    color: var(--text-primary);
}

/* CTA Link - Daha Kurumsal */
.nav-link-cta-mobile {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: var(--text-primary) !important;
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.3);
    font-weight: var(--font-weight-semibold) !important;
}

.nav-link-cta-mobile::before {
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
}

.nav-link-cta-mobile:hover {
    background: var(--gradient-primary) !important;
    box-shadow: 0 6px 24px rgba(0, 255, 136, 0.5);
    transform: translateX(6px) scale(1.01); /* Daha subtle */
}

.nav-link-cta-mobile .nav-link-text {
    color: var(--text-primary) !important;
}

/* CTA için icon yok - kurumsal görünüm */

/* Menu Footer - Daha Kompakt */
.mobile-menu-footer {
    padding: 24px 28px; /* Biraz daha fazla padding */
    border-top: 1px solid rgba(0, 255, 136, 0.15);
    background: rgba(0, 255, 136, 0.03);
}

.mobile-menu-social {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-link-mobile {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.social-link-mobile:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

/* Scrollbar Styling */
.nav-menu-mobile::-webkit-scrollbar {
    width: 6px;
}

.nav-menu-mobile::-webkit-scrollbar-track {
    background: rgba(0, 255, 136, 0.1);
    border-radius: 10px;
}

.nav-menu-mobile::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 10px;
}

.nav-menu-mobile::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

/* Responsive */
@media (max-width: 480px) {
    .mobile-menu-container {
        width: 90%;
        top: 50%; /* Ortalama korunmalı */
        transform: translateY(-50%); /* Ortalama korunmalı */
        max-height: 85vh;
        min-height: 700px;
    }
    
    .mobile-menu-overlay.active .mobile-menu-container {
        right: 16px; /* Mobilde daha az margin */
        transform: translateY(-50%);
    }
    
    .nav-menu-mobile {
        padding: 65px 24px 24px; /* Biraz daha fazla padding */
    }
    
    .nav-link-mobile {
        padding: 16px 20px; /* Biraz daha fazla padding */
    }
    
    .nav-link-text {
        font-size: 15px;
    }
}

