/* YazılıMax — Mobil sağ çekmece menü + akordeon */

@media (max-width: 991px) {
    .page-site-premium .header-area .nav-desktop {
        display: none !important;
    }
}

.ymx-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 10050;
    pointer-events: none;
    visibility: hidden;
}

.ymx-mobile-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}

.ymx-mobile-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 23, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ymx-mobile-drawer.is-open .ymx-mobile-drawer__backdrop {
    opacity: 1;
}

.ymx-mobile-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100%;
    background: linear-gradient(180deg, #0b0f17 0%, #141b2b 100%);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.ymx-mobile-drawer.is-open .ymx-mobile-drawer__panel {
    transform: translateX(0);
}

.ymx-mobile-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.ymx-mobile-drawer__brand img {
    width: 120px;
    height: auto;
    display: block;
}

.ymx-mobile-drawer__close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ymx-mobile-drawer__close:hover,
.ymx-mobile-drawer__close:focus {
    background: rgba(239, 76, 35, 0.2);
    border-color: rgba(239, 76, 35, 0.45);
    outline: none;
}

.ymx-mobile-drawer__nav {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 24px;
}

.ymx-mobile-accordion {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ymx-mobile-accordion__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ymx-mobile-accordion__toggle,
.ymx-mobile-accordion__item--link > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.ymx-mobile-accordion__toggle span {
    flex: 1;
}

.ymx-mobile-accordion__toggle i {
    font-size: 12px;
    opacity: 0.7;
    transition: transform 0.25s ease;
}

.ymx-mobile-accordion__item.is-open .ymx-mobile-accordion__toggle {
    background: rgba(239, 76, 35, 0.1);
    color: #fff;
}

.ymx-mobile-accordion__item.is-open .ymx-mobile-accordion__toggle i {
    transform: rotate(180deg);
    opacity: 1;
    color: #ef4c23;
}

.ymx-mobile-accordion__item--link > a:hover,
.ymx-mobile-accordion__toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ymx-mobile-accordion__panel {
    display: none;
    background: rgba(0, 0, 0, 0.2);
}

.ymx-mobile-accordion__panel ul {
    list-style: none;
    margin: 0;
    padding: 6px 0 10px;
}

.ymx-mobile-accordion__panel li a {
    display: block;
    padding: 12px 20px 12px 32px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ymx-mobile-accordion__panel li a:hover {
    color: #fff;
    background: rgba(239, 76, 35, 0.08);
    border-left-color: #ef4c23;
}

body.ymx-drawer-open {
    overflow: hidden;
}

@media (min-width: 992px) {
    .ymx-mobile-drawer {
        display: none !important;
    }
}
