/* =========================================================
   OVERLAY — OFF (no influence)
   ========================================================= */
.overlay {
    position: fixed;
    inset: 0;
    background: transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none;
    z-index: 0;
}

.overlay.show {
    opacity: 0 !important;
    pointer-events: none !important;
}

html.sidebar-open {
    overflow: hidden;
}

/* =========================================================
     SIDEBAR — wood background (sharp), NO blur/overlay
   ========================================================= */
.sidebar {
    position: fixed;
    inset: 0 0 0 auto;
    width: 100vw;
    max-width: 100vw;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden auto;

    background-color: #1a1c20;
    background-image: image-set(url("/assets/img/sidebar/sidebar-wood-840x1680.webp") 1x,
            url("/assets/img/sidebar/sidebar-wood-960x1920.webp") 1.5x,
            url("/assets/img/sidebar/sidebar-wood-1200x2400.webp") 2x,
            url("/assets/img/sidebar/sidebar-wood-1600x3200.webp") 3x);
    background-position: center 18%;
    background-size: cover;
    background-repeat: no-repeat;

    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;

    border-left: 1px solid rgba(255, 255, 255, .06);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;

    transform: translateX(100%);
    box-shadow:
        rgba(0, 0, 0, .25) 0 54px 55px,
        rgba(0, 0, 0, .12) 0 -12px 30px,
        rgba(0, 0, 0, .12) 0 4px 6px,
        rgba(0, 0, 0, .17) 0 12px 13px,
        rgba(0, 0, 0, .09) 0 -3px 5px;
}

.sidebar.open {
    transform: translateX(0);
}

/* tone overlays off */
.sidebar.tone-1::before,
.sidebar.tone-2::before,
.sidebar.tone-3::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: none !important;
    opacity: 0 !important;
}

/* header inside panel */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    background: transparent;
}

.sidebar-title {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 600;
    font-size: 13px;
    color: #f6f8fb;
}

.sidebar-close {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #cbd3dc;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

/* nav */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 10px;
    flex: 1 1 auto;
}

.sidebar-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    color: #f7f9fb;
    text-decoration: none;
    background: rgba(12, 14, 16, .60);
    border: 1px solid rgba(110, 255, 180, .25);
    box-shadow: 0 0 0 1px rgba(110, 255, 180, .15), 0 8px 14px rgba(0, 0, 0, .30);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease;
    will-change: transform, box-shadow;
}

.sidebar-nav a:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .36);
}

.sidebar-nav .ico {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: .95;
}

.sidebar-nav .ico svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* footer logo (szalagos) */
.sidebar-footer {
    margin-top: auto;
    padding: 12px 10px;
    background: none;
    border: 0;
}

.sidebar-footer .sidebar-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

/* NINCS árnyék a brand kép alatt */
.sidebar-footer .sidebar-brand img {
    display: block;
    width: min(62%, 220px);
    height: auto;
    image-rendering: auto;
    filter: none;
    box-shadow: none;
    /* <- kérés szerint eltávolítva */
}

.sidebar-footer .brand-mark,
.sidebar-footer .brand-name {
    display: none !important;
}

/* scrollbar */
.sidebar::-webkit-scrollbar {
    width: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .10);
    border: 2px solid transparent;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

/* widths */
@media (min-width:992px) {
    .sidebar {
        width: 440px;
        max-width: 440px;
        border-top-left-radius: 16px;
        border-bottom-left-radius: 16px;
    }
}

@media (min-width:1600px) {
    .sidebar {
        width: 480px;
        max-width: 480px;
    }
}

@media (max-width:991.98px) {
    .sidebar {
        width: 100vw;
        max-width: 100vw;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
}

/* reduced motion */
@media (prefers-reduced-motion:reduce) {
    .overlay {
        transition: none !important;
    }

    .sidebar-nav a {
        transition: none !important;
    }
}

/* fallback, ha nincs backdrop-filter támogatás */
@supports not ((-webkit-backdrop-filter: blur(6px)) or (backdrop-filter: blur(6px))) {
    .sidebar {
        background-image: image-set(url("/assets/img/sidebar/sidebar-wood-840x1680.webp") 1x,
                url("/assets/img/sidebar/sidebar-wood-960x1920.webp") 1.5x,
                url("/assets/img/sidebar/sidebar-wood-1200x2400.webp") 2x,
                url("/assets/img/sidebar/sidebar-wood-1600x3200.webp") 3x);
        background-position: center 18%;
        background-size: cover;
        background-repeat: no-repeat;
        background-color: transparent;
    }
}

/* hover */
.sidebar-nav a:hover {
    box-shadow: 0 0 0 1px rgba(110, 255, 180, .30), 0 12px 20px rgba(0, 0, 0, .36);
    border-color: rgba(110, 255, 180, .40);
}