/* ============================================================
   GK MOBILE CANVAS MENU (DRAWER) - RE-IMPLEMENTATION
   Design: Dark Theme, High Contrast, Orange Accents
   ============================================================ */

/* 1. OVERLAY */
.gk-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    /* Slightly darker for better focus */
    backdrop-filter: blur(5px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gk-mobile-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* 2. DRAWER CONTAINER */
.gk-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 360px;
    height: 100%;
    /* Fallback */
    height: 100vh;
    /* Full Viewport */
    /* Full Viewport */
    background: rgba(30, 30, 30, 0.70) !important;
    /* TRANSPARENTER: Damit man den Blur sieht */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 999999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Prevent double scrollbars */
}

.gk-mobile-drawer.is-open {
    transform: translateX(0);
}

/* 3. HEADER AREA (X-Style Profile) */
.gk-drawer-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Align Top */
    padding: 30px 25px 20px 25px;
    /* More padding top */
    background: transparent;
    /* Seamless blend */
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.05);  Optional: Remove for cleaner look */
}

/* Profile Info Container */
.gk-drawer-profile {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gk-profile-info {
    display: flex;
    flex-direction: column;
}

.gk-profile-greeting {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    margin-bottom: 2px;
}

.gk-profile-name,
.gk-drawer-title-default {
    font-size: 20px;
    /* Big & Bold like X Profile Name */
    color: #fff;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* Close Button (Top Right) */
.gk-drawer-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    /* Circle like X */
    color: #fff;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 5px;
    /* Align slightly with text */
}

.gk-drawer-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
}

/* 4. SCROLLABLE CONTENT AREA */
/* 4. SCROLLABLE CONTENT AREA */
.gk-drawer-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}

/* Wrapper for Sticky Footer Logic */
.gk-drawer-inner-layout {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-sizing: border-box;
    padding: 10px 0;
}

/* 5. MENU LIST STYLING */
.gk-mobile-menu-ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gk-mobile-menu-ul>li {
    border-bottom: none;
    /* Cleaner look, no separators */
}

/* Flex Container for Item (Link + Arrow) */
.gk-menu-item-row {
    display: flex;
    align-items: stretch;
    min-height: 60px;
    /* Taller for Touch */
    position: relative;
    background: transparent;
    transition: background 0.2s;
}

.gk-menu-item-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Main Link Styling & Icons */
.gk-menu-item-row a {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 18px;
    /* Compact Padding */
    color: #e7e9ea;
    text-decoration: none;
    font-size: 18px;
    /* Fit single line */
    font-weight: 700;
    line-height: 1.2;
}

/* ICON WRAPPER & SVG */
.gk-menu-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    /* Compact Width */
    margin-right: 10px;
    /* Tighter Spacing */
}

.gk-menu-icon-svg {
    width: 22px;
    height: 22px;
    stroke-width: 2px;
    stroke: currentColor;
    fill: none;
}


/* Active State */
.gk-mobile-menu-ul li.current-menu-item>.gk-menu-item-row a,
.gk-mobile-menu-ul li.current-menu-ancestor>.gk-menu-item-row a {
    color: #ff6600;
}

.gk-mobile-menu-ul li.current-menu-item>.gk-menu-item-row {
    background: rgba(255, 102, 0, 0.05);
    /* Slight Orange Tint */
    border-left: 4px solid #ff6600;
}

/* Toggle Arrow Button */
.gk-submenu-toggle {
    width: 55px;
    /* Same as min-height for square touch target */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.1);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s;
}

.gk-submenu-toggle:hover {
    background: #ff6600;
    color: #000;
}

.gk-submenu-toggle.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: #ff6600;
}

.gk-submenu-toggle .dashicons {
    transition: transform 0.3s ease;
}

.gk-submenu-toggle.is-active .dashicons {
    transform: rotate(180deg);
}

/* 6. SUBMENU STYLING */
/* 6. SUBMENU STYLING */
.gk-mobile-menu-ul .sub-menu {
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #121212;
    /* Darker than drawer */
    box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gk-mobile-menu-ul .sub-menu.is-expanded {
    max-height: 1200px;
    /* Large enough buffer */
    opacity: 1;
    visibility: visible;
}

.gk-mobile-menu-ul .sub-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    min-height: 0;
    /* Allow compacting */
}

/* Compact Row for Submenu */
.gk-mobile-menu-ul .sub-menu .gk-menu-item-row {
    min-height: 48px !important;
    /* Shorter than main items */
}

.gk-mobile-menu-ul .sub-menu .gk-menu-item-row a {
    font-size: 15px;
    padding-left: 25px;
    /* Less indent */
    color: rgba(255, 255, 255, 0.8);
    text-transform: none;
    font-weight: 500;
}

.gk-mobile-menu-ul .sub-menu .gk-menu-item-row a:hover {
    color: #fff;
    padding-left: 30px;
    transition: padding 0.2s;
}

/* Level 2 Submenu */
.gk-mobile-menu-ul .sub-menu .sub-menu {
    background: #0a0a0a;
}

.gk-mobile-menu-ul .sub-menu .sub-menu .gk-menu-item-row a {
    padding-left: 40px;
    /* Indent Level 2 */
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* 7. FOOTER AREA (LINKS) */
/* 7. FOOTER AREA (LINKS) */
.gk-drawer-params-section {
    /* WICHTIG: Viel Abstand unten (160px), damit man über die Bottom Nav & Browser Bar hinaus scrollen kann */
    padding: 20px 20px 160px 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto !important;
}

.gk-footer-title {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
}

.gk-footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gk-footer-link-list li {
    margin-bottom: 12px;
}

.gk-footer-link-list li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    /* Normal weight */
    display: block;
    transition: color 0.2s;
}

.gk-footer-link-list li a:hover {
    color: #ff6600;
    padding-left: 5px;
}

@keyframes gkSlideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* TRIGGER ICON SIZE & ALIGNMENT OVERRIDE */
.gk-trigger-mobile-menu {
    font-size: 30px !important;
    display: flex !important;
    align-items: center !important;
    /* Vertikal zentrieren */
    justify-content: center !important;
    line-height: 1 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gk-trigger-mobile-menu .dashicons {
    width: 30px !important;
    height: 30px !important;
    font-size: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}