/* Enhanced Mobile Responsive Styles */
/* Desktop görünümü korunur, sadece mobil için geliştirmeler */

/* Mobile Navigation Enhancements */
@media (max-width: 1023px) {
    /* Hide desktop navigation on mobile */
    .main-menu__center {
        display: none !important;
    }
    
    .main-menu__right .user-section {
        display: none !important;
    }
    
    /* Show mobile toggle */
    .main-menu__toggler {
        display: block !important;
    }
}

@media (min-width: 1024px) {
    /* Hide mobile toggle on desktop */
    .main-menu__toggler {
        display: none !important;
    }
    
    /* Show desktop navigation */
    .main-menu__center,
    .main-menu__right .user-section {
        display: flex !important;
    }
}

/* Creative Modern Mobile Menu Styles */
.mobile-nav__wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-nav__wrapper.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: backdrop-filter 0.3s ease;
}

.mobile-nav__wrapper.active .mobile-nav__overlay {
    backdrop-filter: blur(12px);
    background-color: #FFF;
}

.mobile-nav__content {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background-color: #ffffff;
    border-left: 1px solid #e5e7eb;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mobile-nav__wrapper.active .mobile-nav__content {
    transform: translateX(0);
    padding: 0;
    background-color: #FFF;
}

/* Clean Mobile Menu Header */
.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    z-index: 1;
}

.mobile-nav__logo {
    position: relative;
    z-index: 2;
}

.mobile-nav__logo img {
    max-height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.mobile-nav__logo:hover img {
    transform: scale(1.05);
}

.mobile-nav__close {
    background: none;
    border: none;
    font-size: 18px;
    color: #3b82f6;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.mobile-nav__close:hover {
    background: #f3f4f6;
    color: #1d4ed8;
}

/* Clean Mobile Navigation */
.mobile-nav__navigation {
    flex: 1;
    padding: 10px 0;
    position: relative;
    z-index: 1;
    background: #FFF;
}

.mobile-nav__nav-list {
    list-style: none;
    margin: 0;
    padding: 0 15px;
}

.mobile-nav__nav-item {
    margin: 0 0 4px 0;
    position: relative;
}

.mobile-nav__nav-link {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    background: transparent;
    border: none;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mobile-nav__nav-link:hover {
    background: #f3f4f6;
    color: #1d4ed8;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav__nav-link:active {
    background: #f3f4f6;
    color: #1d4ed8;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    transform: none;
}

.mobile-nav__nav-link:focus {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav__nav-link--active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav__nav-link i {
    margin-right: 16px;
    width: 24px;
    text-align: center;
    font-size: 20px;
    transition: all 0.3s ease;
    color: #3b82f6;
}

.mobile-nav__nav-link:hover i {
    color: #1d4ed8;
}

.mobile-nav__nav-link--active i {
    color: #1d4ed8;
}

/* Clean Mobile User Section */
.mobile-nav__user-section {
    padding: 10px 5px;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.mobile-nav__user-account {
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.mobile-nav__user-info {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    position: relative;
}

.mobile-nav__user-avatar {
    width: 60px;
    height: 60px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 24px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.mobile-nav__user-avatar:hover {
    transform: scale(1.05);
}

.mobile-nav__user-details {
    flex: 1;
    position: relative;
    z-index: 2;
}

.mobile-nav__user-name {
    display: block;
    font-weight: 700;
    font-size: 18px;
    color: #1d4ed8;
    margin-bottom: 6px;
}

.mobile-nav__user-phone {
    display: block;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.mobile-nav__user-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav__user-menu li {
    margin: 0 0 4px 0;
}

.mobile-nav__user-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 4px;
    background: transparent;
    border: none;
    position: relative;
}

.mobile-nav__user-link:hover {
    background: #f3f4f6;
    color: #1d4ed8;
}

.mobile-nav__user-link--danger {
    color: #ef4444;
}

.mobile-nav__user-link--danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.mobile-nav__user-link i {
    margin-right: 14px;
    width: 18px;
    text-align: center;
    font-size: 16px;
    transition: all 0.3s ease;
    color: #3b82f6;
}

.mobile-nav__user-link--danger i {
    color: #ef4444;
}

.mobile-nav__user-link:hover i {
    color: #1d4ed8;
}

.mobile-nav__user-link--danger:hover i {
    color: #dc2626;
}

/* Clean Login Section */
.mobile-nav__login-section {
    position: relative;
    z-index: 2;
}

.mobile-nav__login-links {
    display: flex;
    gap: 12px;
}

.mobile-nav__login-btn,
.mobile-nav__register-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav__login-btn {
    background: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.mobile-nav__login-btn:hover {
    background: #f3f4f6;
    color: #1d4ed8;
}

.mobile-nav__register-btn {
    background: #3b82f6;
    color: white;
    border: 1px solid #3b82f6;
}

.mobile-nav__register-btn:hover {
    background: #1d4ed8;
}

.mobile-nav__login-btn i,
.mobile-nav__register-btn i {
    margin-right: 10px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.mobile-nav__login-btn:hover i,
.mobile-nav__register-btn:hover i {
    transform: scale(1.1);
}

/* Clean Contact Section */
.mobile-nav__contact {
    padding: 25px 20px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.mobile-nav__contact-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
    background: transparent;
    border-radius: 8px;
    margin-bottom: 8px;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.mobile-nav__contact-item:hover {
    background: #f3f4f6;
    color: #1d4ed8;
}

.mobile-nav__contact-item i {
    margin-right: 16px;
    width: 20px;
    text-align: center;
    font-size: 18px;
    color: #3b82f6;
    transition: all 0.3s ease;
}

.mobile-nav__contact-item:hover i {
    color: #1d4ed8;
}

.mobile-nav__contact-item a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: inherit;
}

.mobile-nav__contact-item:hover a {
    color: #1d4ed8;
}

/* Responsive Design */
@media (max-width: 480px) {
    .mobile-nav__content {
        width: 100%;
    }
    
    .mobile-nav__header {
        padding: 15px;
    }
    
    .mobile-nav__logo img {
        max-height: 35px;
    }
}

/* Body scroll prevention when menu is open */
.mobile-nav-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Animation for smooth transitions */
.mobile-nav__nav-link,
.mobile-nav__user-link,
.mobile-nav__login-btn,
.mobile-nav__register-btn {
    position: relative;
    overflow: hidden;
}

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

.mobile-nav__nav-link:hover::before,
.mobile-nav__user-link:hover::before {
    left: 100%;
}

/* Focus styles for accessibility - Disabled for mobile nav links */
.mobile-nav__close:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.mobile-nav__nav-link:focus,
.mobile-nav__user-link:focus,
.mobile-nav__login-btn:focus,
.mobile-nav__register-btn:focus {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* Remove all click effects and outlines for mobile nav */
.mobile-nav__nav-link * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.mobile-nav__nav-link:focus,
.mobile-nav__nav-link:active,
.mobile-nav__nav-link:visited {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-nav__nav-link,
    .mobile-nav__user-link {
        border: 1px solid transparent;
    }
    
    .mobile-nav__nav-link:hover,
    .mobile-nav__user-link:hover {
        border-color: #007bff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mobile-nav__wrapper,
    .mobile-nav__content,
    .mobile-nav__nav-link,
    .mobile-nav__user-link,
    .mobile-nav__nav-link::before,
    .mobile-nav__user-link::before {
        transition: none;
    }
}
