/**
 * SH Sözlük Mobil Menü Stilleri
 * Basitleştirilmiş ve iyileştirilmiş CSS
 */

/* Mobil menü için temel stil */
.mobile-menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

/* Aktif durumunda görünür hale getir */
.mobile-menu-wrapper.mobile-menu-active {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Overlay */
.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

/* Panel */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85%;
    height: 100%;
    background-color: var(--white);
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

/* Panel aktif durumda */
.mobile-menu-wrapper.mobile-menu-active .mobile-menu-panel {
    transform: translateX(0);
}

/* Başlık bölümü */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-bg);
}

.mobile-menu-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

/* Kapatma butonu */
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.mobile-menu-close:hover {
    background-color: var(--light-bg);
}

/* İçerik alanı */
.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
}

/* Menü listesi */
.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list .menu-item {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-list .menu-item a {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s;
}

.mobile-menu-list .menu-item a:hover {
    background-color: var(--light-bg);
}

/* Alt menüler */
.mobile-menu-list .sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
}

.mobile-menu-list .sub-menu .menu-item a {
    padding-left: 30px;
    font-size: 14px;
}

/* Alt menü ok işareti */
.mobile-menu-list .menu-item-has-children > a {
    position: relative;
}

.mobile-menu-list .menu-item-has-children > a:after {
    content: "▼";
    font-size: 10px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.mobile-menu-list .menu-item-has-children.submenu-open > a:after {
    transform: translateY(-50%) rotate(180deg);
}

/* Footer */
.mobile-menu-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--light-bg);
    font-size: 12px;
    color: var(--light-text);
}

/* Hamburger menü butonu */
.menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    color: var(--header-text);
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: background-color 0.3s;
    z-index: 10000;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle i {
    font-size: 18px;
    transition: transform 0.3s;
}

.menu-toggle.menu-open {
    background-color: var(--primary-color);
}

.menu-toggle.menu-open i {
    transform: rotate(90deg);
}

/* Sayfa kaymasını engelle */
body.mobile-menu-open {
    overflow: hidden;
}

/* Sadece mobil ekranlarda göster */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .desktop-menu-wrapper {
        display: none;
    }
}

/* Masaüstü boyutunda menüyü gizle */
@media (min-width: 769px) {
    .mobile-menu-wrapper {
        display: none !important;
    }
    
    .mobile-menu-wrapper.mobile-menu-active {
        display: none !important;
    }
}