/* Mobil menü temel stilleri */
#mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
}

#mobile-menu.hidden {
    display: none;
}

/* Overlay stilleri */
#menu-overlay {
    position: fixed;
    inset: 0;
    background-color: black;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    backdrop-filter: blur(2px);
}

#mobile-menu:not(.hidden) #menu-overlay {
    opacity: 0.6;
}

/* Menü içerik paneli */
#menu-content {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 18rem;
    background-color: white;
    padding: 1.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

#mobile-menu:not(.hidden) #menu-content {
    transform: translateX(0);
}

/* Menü içerik animasyonları */
#menu-content ul li {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease-in-out;
}

#mobile-menu:not(.hidden) #menu-content ul li {
    opacity: 1;
    transform: translateX(0);
}

/* Her menü öğesi için kademeli gecikme */
#menu-content ul li:nth-child(1) { transition-delay: 0.1s; }
#menu-content ul li:nth-child(2) { transition-delay: 0.15s; }
#menu-content ul li:nth-child(3) { transition-delay: 0.2s; }
#menu-content ul li:nth-child(4) { transition-delay: 0.25s; }
#menu-content ul li:nth-child(5) { transition-delay: 0.3s; }
#menu-content ul li:nth-child(6) { transition-delay: 0.35s; }
#menu-content ul li:nth-child(7) { transition-delay: 0.4s; }
#menu-content ul li:nth-child(8) { transition-delay: 0.45s; }
#menu-content ul li:nth-child(9) { transition-delay: 0.5s; }

/* Menü öğeleri hover efektleri */
#menu-content ul li a {
    position: relative;
    display: block;
    padding: 0.5rem 0;
    color: #3d4750;
    transition: color 0.3s ease;
}

#menu-content ul li a:hover {
    color: #6c7fd8;
}

#menu-content ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #6c7fd8;
    transition: width 0.3s ease-in-out;
}

#menu-content ul li a:hover:after {
    width: 100%;
}

/* Menü buton stilleri */
#mobile-menu-button, #close-mobile-menu {
    padding: 0.5rem;
    transition: color 0.3s ease;
}

#mobile-menu-button:hover, #close-mobile-menu:hover {
    color: #6c7fd8;
}

/* Kapatma butonu */
#close-mobile-menu {
    position: relative;
    z-index: 60;
}
