/**
 * Mobil Slide MenÃ¼ CSS
 * Sadece 768px ve altÄ±nda gÃ¶rÃ¼nÃ¼r
 */

/* MenÃ¼ Toggle Butonu - Header iÃ§inde gÃ¶sterilecek (CSS electrolit/style.css'te tanÄ±mlÄ±) */

.mobile-menu-toggle-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 16px;
    margin: 0 auto;
}

.mobile-menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* MenÃ¼ aÃ§Ä±k deÄŸilken tÄ±klamalarÄ± engelleme */
}

/* Scroll-to-top butonunun overlay'in altÄ±nda kalmasÄ±nÄ± Ã¶nle */
.mobile-menu-overlay ~ .scroll-to-top-btn,
.scroll-to-top-btn {
    z-index: 10000 !important;
    pointer-events: auto !important;
    position: fixed !important;
}

.mobile-menu-overlay.active {
    display: block !important;
    opacity: 1;
    pointer-events: auto; /* MenÃ¼ aÃ§Ä±kken tÄ±klamalara izin ver */
}

/* Scroll-to-top butonunun overlay'in altÄ±nda kalmasÄ±nÄ± Ã¶nle - overlay aktifken bile */
.mobile-menu-overlay.active ~ .scroll-to-top-btn,
.scroll-to-top-btn {
    z-index: 10000 !important;
    pointer-events: auto !important;
    position: fixed !important;
}

/* MenÃ¼ Panel */
.mobile-menu-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: #ffffff;
    z-index: 1003;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-menu-panel.active {
    display: block !important;
    transform: translateX(0);
}

/* MenÃ¼ Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px 17px;
    background: #dddddd;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.mobile-menu-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mobile-menu-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* MenÃ¼ Ä°Ã§erik */
.mobile-menu-content {
    padding: 0;
}

/* KullanÄ±cÄ± Ä°ÅŸlemleri */
.mobile-menu-user {
    padding: 15px 20px;
    background: var(--mobil-menu-background);
    border-bottom: 1px solid var(--mobil-menu-border-head);
    display: flex;
    justify-content: space-evenly;
}

.mobile-menu-user-link {
    display: flex;
    color: var(--mobil-menu-icons);
    text-decoration: none;
    font-size: 19px;
    transition: color 0.2s ease;
    justify-content: center;
    flex-direction: column;
    width: 48px;
    align-items: center;
    gap: 7px;
}

.mobile-menu-user-link:hover {
    color: #fc4f00;
}

.mobile-menu-user-link i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}
.mobile-menu-user-link span {
    font-size: 11px;
    width: 74%;
    white-space: nowrap;
}

/* Sayfa Listesi MenÃ¼sÃ¼ */
.mobile-menu-content .pagesbar {
    padding: 15px 20px;
    background: #f7f7f7;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-menu-content .pagesbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-content .pagesbar ul li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e8e8e8;
}

.mobile-menu-content .pagesbar ul li:last-child {
    border-bottom: none;
}

.mobile-menu-content .pagesbar ul li a {
    display: block;
    padding: 14px 0;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu-content .pagesbar ul li a:hover {
    color: #fc4f00;
}

.mobile-menu-content .pagesbar ul li a i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

/* Navigasyon */
.mobile-menu-nav {
    position: relative;
}

.mobile-menu-nav-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: #ffffff;
    gap: 10px;
}

.mobile-menu-back,
.mobile-menu-show-all {
    padding: 8px 12px;
    border: none;
    background: var(--mobil-menu-buttons-back);
    color: var(--mobil-menu-buttons-color);
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-menu-back:hover,
.mobile-menu-show-all:hover {
    background: #5c636e;
}

.mobile-menu-back i,
.mobile-menu-show-all i {
    font-size: 12px;
}

/* Kategori Listesi */
.mobile-menu-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-cat-item {
    border-bottom: 1px solid var(--mobil-menu-border-items);
}

.mobile-menu-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-cat-link {
    flex: 1;
    display: block;
    padding: 9px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

.mobile-menu-cat-link:hover {
    background: #f7f7f7;
    color: #fc4f00;
}

.mobile-menu-cat-toggle {
    width: 44px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--mobil-menu-arrows);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-menu-cat-toggle:hover {
    color: #fc4f00;
}

.mobile-menu-cat-toggle.active {
    transform: rotate(90deg);
    color: #fc4f00;
}

.mobile-menu-cat-toggle i {
    transition: transform 0.2s ease;
}

/* Alt Kategoriler */
.mobile-menu-cat-children {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--mobil-menu-child-back);
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-cat-children.active {
    display: block;
    max-height: 5000px;
}

.mobile-menu-cat-children .mobile-menu-cat-item {
    border-bottom: 1px solid var(--mobil-menu-border-items2);
}

.mobile-menu-cat-children .mobile-menu-cat-link {
    padding-left: 35px;
    font-size: 14px;
}

.mobile-menu-cat-children .mobile-menu-cat-children .mobile-menu-cat-link {
    padding-left: 50px;
    font-weight: 400;
}

.mobile-menu-cat-children .mobile-menu-cat-children .mobile-menu-cat-children .mobile-menu-cat-link {
    padding-left: 65px;
}

/* Mobil gÃ¶rÃ¼nÃ¼m (768px ve altÄ±) */
@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-overlay {
        display: block;
    }
    
    .mobile-menu-panel {
        display: block;
    }
    
    /* Header'Ä±n z-index'ini artÄ±r ki overlay'in altÄ±nda kalsÄ±n */
    #headerTop,
    #header-main {
        position: relative;
        z-index: 1000; /* Overlay'den dÃ¼ÅŸÃ¼k ama normal iÃ§erikten yÃ¼ksek */
    }
    
    /* MenÃ¼ aÃ§Ä±kken header'Ä± overlay'in altÄ±na gÃ¶nder */
    body.mobile-menu-open #headerTop,
    body.mobile-menu-open #header-main {
        z-index: 999;
    }
}

/* Body scroll lock when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

