/**
 * Voco Menu - Desktop + Mobil Styles
 */

/* === AKADÁLYMENTESSÉG === */
.voco-menu-wrapper .screen-reader-text,
.voco-language-switcher .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

.voco-desktop-menu-list a:focus-visible,
.voco-offcanvas-menu-list a:focus-visible,
.voco-language-switcher a:focus-visible,
.voco-hamburger:focus-visible,
.voco-offcanvas-close:focus-visible,
.voco-offcanvas-logo:focus-visible {
    outline: 2px solid #f8b90a;
    outline-offset: 3px;
    border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .voco-desktop-menu-list .sub-menu,
    .voco-menu-overlay,
    .voco-offcanvas-menu,
    .voco-hamburger-line,
    .voco-desktop-menu-list a,
    .voco-offcanvas-menu-list a {
        transition: none !important;
    }
}

.voco-menu-wrapper {
    display: flex;
    align-items: center;
}

/* === DESKTOP MENÜ === */
.voco-desktop-menu {
    display: block;
}

.voco-desktop-menu-list {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.voco-desktop-menu-list li {
    position: relative;
    margin: 0;
}

.voco-desktop-menu-list > li > a {
    display: block;
    padding: 10px 0;
    color: #333333;
    font-family: "Montserrat", Sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.voco-desktop-menu-list > li > a:hover {
    color: #ffffff;
}

/* Desktop almenü */
.voco-desktop-menu-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.voco-desktop-menu-list li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.voco-desktop-menu-list .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: #333333;
    font-family: "Montserrat", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.voco-desktop-menu-list .sub-menu a:hover {
    background-color: #f5f5f5;
    color: #f8b90a;
}

/* Hamburger - desktopon rejtve */
.voco-hamburger {
    display: none;
}

/* Overlay és off-canvas - desktopon rejtve */
.voco-menu-overlay,
.voco-offcanvas-menu {
    display: none;
}

/* === MOBIL MENÜ (991px alatt) === */
@media (max-width: 991px) {
    /* Desktop menü elrejtve */
    .voco-desktop-menu {
        display: none;
    }
    
    /* Hamburger gomb */
    .voco-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        padding: 8px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1000;
    }
    
    .voco-hamburger-line {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #333333;
        transition: all 0.3s ease;
    }
    
    .voco-hamburger.is-active .voco-hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .voco-hamburger.is-active .voco-hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .voco-hamburger.is-active .voco-hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Overlay */
    .voco-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 9998;
    }
    
    .voco-menu-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Off-canvas menü */
    .voco-offcanvas-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100%;
        background: #ffffff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
    }
    
    .voco-offcanvas-menu.is-active {
        right: 0;
    }
    
    /* Header */
    .voco-offcanvas-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #eee;
    }
    
    .voco-offcanvas-logo img {
        max-height: 50px;
        width: auto;
    }
    
    .voco-offcanvas-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        color: #333333;
        transition: color 0.3s ease;
    }
    
    .voco-offcanvas-close:hover {
        color: #f8b90a;
    }
    
    /* Navigáció */
    .voco-offcanvas-nav {
        padding: 20px;
    }
    
    .voco-offcanvas-menu-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .voco-offcanvas-menu-list li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .voco-offcanvas-menu-list li:last-child {
        border-bottom: none;
    }
    
    .voco-offcanvas-menu-list a {
        display: block;
        padding: 15px 0;
        color: #333333;
        font-family: "Montserrat", Sans-serif;
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .voco-offcanvas-menu-list a:hover {
        color: #f8b90a;
    }
    
    /* Almenü */
    .voco-offcanvas-menu-list .sub-menu {
        list-style: none;
        margin: 0;
        padding: 0 0 0 20px;
    }
    
    .voco-offcanvas-menu-list .sub-menu a {
        font-size: 14px;
        font-weight: 400;
        padding: 10px 0;
    }
}

/* Body scroll lock */
body.voco-menu-open {
    overflow: hidden;
}

/* === LANGUAGE SWITCHER === */
.voco-language-switcher {
    display: flex;
    align-items: center;
    gap: 0;
}

.voco-language-switcher a {
    display: inline-block;
    padding: 5px 10px;
    color: #333333;
    font-family: "Montserrat", Sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.voco-language-switcher a:hover {
    color: #ffffff;
}

.voco-language-switcher a.current-lang {
    color: #000000;
    font-weight: 700;
}

.voco-language-switcher .lang-separator {
    color: #333333;
    font-size: 14px;
}
