/* --- PREMIUM MOBILE DRAWER --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%; /* Ukryte poza ekranem */
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: #ec8088;
    z-index: 2000;
    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 (Logo + Zamknij) */
.drawer-header {
    padding: 20px 30px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Stylizacja Logo w Szufladzie */
.mobile-drawer .site-logo img.custom-logo {
    max-height: 42px; /* Zoptymalizowana wysokość w menu mobilnym */
    width: auto;
    display: block;
}

.mobile-drawer .logo-text {
    font-size: 1.2rem; /* Fallback tekstowy */
    margin: 0;
}

/* Przycisk Zamknij */
.close-drawer {
    background: #FFF;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--ks-slate, #64748b);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ks-transition);
}

.close-drawer:hover {
    background: var(--ks-dark, #0f172a);
    color: #ffffff;
    transform: rotate(90deg);
}

/* Zawartość Menu */
.drawer-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

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

.mobile-menu-list li {
    margin-bottom: 30px;
    transform: translateX(-30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

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

/* Kaskadowe opóźnienie linków (do 6 elementów) */
.mobile-menu-list li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-list li:nth-child(2) { transition-delay: 0.18s; }
.mobile-menu-list li:nth-child(3) { transition-delay: 0.26s; }
.mobile-menu-list li:nth-child(4) { transition-delay: 0.34s; }
.mobile-menu-list li:nth-child(5) { transition-delay: 0.42s; }
.mobile-menu-list li:nth-child(6) { transition-delay: 0.50s; }

.mobile-menu-list a {
    font-family: 'Archivo', sans-serif;
    color: #FFF;
    text-decoration: none;
}

.mobile-menu-list a:hover {
    color: #000;
}

/* Footer Szuflady */
.drawer-footer {
    padding: 40px;
    /* Głęboki, ciemniejszy koral dla lepszego kontrastu */
    background: linear-gradient(180deg, #ec8088 0%, #d46a72 100%); 
    
    /* Subtelny border na górze – użycie rgba dla płynnego przejścia */
    border-top: 1px solid #FFF;
    
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ks-slate, #64748b);
    margin-bottom: 15px;
}

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

.drawer-socials a {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ks-dark, #0f172a);
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: var(--ks-transition);
    text-decoration: none;
}

.drawer-socials a:hover {
    background: var(--ks-gradient, linear-gradient(135deg, #6366f1 0%, #a855f7 100%));
    color: #ffffff;
    transform: translateY(-3px);
}

/* Overlay i Blokada scrolla */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    z-index: 1999;
}

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

body.menu-open {
    overflow: hidden;
}