/* =================================================
   PREMIUM MOBILE DRAWER - KRYSTALSPACE
================================================= */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%; 
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: #ec8088; /* Twój kolor bazowy */
    z-index: 2500;
    transition: var(--ks-transition, all 0.5s cubic-bezier(0.2, 1, 0.3, 1));
    box-shadow: 20px 0 80px rgba(15, 23, 42, 0.15);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.is-active {
    left: 0;
}

/* Header Szuflady */
.drawer-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-drawer {
    background: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ec8088;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--ks-transition);
}

/* Zawartość Menu Mobilnego */
.drawer-content {
    flex-grow: 1;
    padding: 30px 25px;
    overflow-y: auto;
}

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

.mobile-menu-list li {
    margin-bottom: 20px;
    list-style: none !important;
    position: relative;
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.mobile-drawer.is-active li {
    transform: translateX(0);
    opacity: 1;
}

/* Linki Główne w Mobile */
.mobile-menu-list a {
    font-family: 'Archivo', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: block;
    transition: opacity 0.3s;
}

.mobile-menu-list a:hover {
    opacity: 0.8;
}

/* --- OBSŁUGA PODMENU W MOBILE (AAA, CCC) --- */
.mobile-menu-list .menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ikona plusa/strzałki dla rozwijanych elementów */
.mobile-menu-list .menu-item-has-children > a::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

/* Stylizacja otwartego podmenu */
.mobile-menu-list .sub-menu {
    list-style: none !important;
    padding: 10px 0 0 20px;
    margin: 0;
    display: none; /* Domyślnie ukryte - wymaga prostego JS toggle */
}

/* Gdy podmenu jest aktywne (klasa dodawana przez JS) */
.mobile-menu-list .menu-item-has-children.is-open > .sub-menu {
    display: block;
}

.mobile-menu-list .menu-item-has-children.is-open > a::after {
    content: '-';
    transform: rotate(180deg);
}

.mobile-menu-list .sub-menu li {
    margin-bottom: 12px;
}

.mobile-menu-list .sub-menu a {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Footer Szuflady */
.drawer-footer {
    padding: 30px 25px;
    background: rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-socials {
    display: flex;
    gap: 12px;
}

.drawer-socials a {
    width: 38px;
    height: 38px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ec8088;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.drawer-socials a:hover {
    transform: translateY(-3px);
}

/* Overlay tła */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 2400;
}

body.menu-open .drawer-overlay {
    opacity: 1;
    visibility: visible;
}