/**
 * Egyszerűsített Responsive Menü CSS v2.0
 * Poppins betűtípus, csak sima dropdown menük
 * Mega menü funkciók eltávolítva
 */

/* =============================================================================
   ALAPBEÁLLÍTÁSOK
   ============================================================================= */

.responsive-menu-container {
    position: relative;
    font-family: "Poppins", sans-serif;
}

.responsive-menu-container * {
    box-sizing: border-box;
}

/* =============================================================================
   DESKTOP MENÜ
   ============================================================================= */

.desktop-menu {
    display: flex;
    flex-direction: row;
}

.desktop-menu-container {
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;
}

.menu-item-wrapper {
    position: relative;
    display: inline-block;
}

.menu-item-wrapper > a {
    text-decoration: none;
    position: relative;
    color: #212121;
    display: flex;
    align-items: center;
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.menu-item-wrapper > a:hover {
    color: #AFD9AD;
}

/* Aláhúzás eltávolítva - csak hover színváltozás */

/* Dropdown nyíl */
.dropdown-arrow {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.dropdown-arrow svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Hover esetén nyíl forgatása */
.menu-item-wrapper.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* =============================================================================
   DROPDOWN MENÜK
   ============================================================================= */

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #ffffff;
    z-index: 1000;
    padding: 10px 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Egyszerű hover - az első menü logikája */
.menu-item-wrapper:hover .dropdown-menu {
    display: block;
}

/* Desktop dropdown linkek */
.desktop-menu .level-1 {
    width: 100%;
    background: transparent;
    position: static;
    display: block !important;
    padding: 0;
}

.desktop-menu .level-1 a {
    padding: 8px 15px;
    font-size: 16px;
    display: block;
        text-transform: none;
    width: 100%;
    color: #212121;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.desktop-menu .level-1 a:hover {
    background-color: #f8f8f8;
    color: #AFD9AD;
}

/* Második szintű almenük */
.desktop-menu .level-2 {
    position: static;
    background: transparent;
    display: block !important;
    padding: 0;
}

.desktop-menu .level-2 a {
    padding-left: 30px;
    font-size: 15px;
}

/* Harmadik szintű almenük */
.desktop-menu .level-3 {
    position: static;
    background: transparent;
    display: block !important;
    padding: 0;
}

.desktop-menu .level-3 a {
    padding-left: 45px;
    font-size: 14px;
}

/* Nested dropdown esetén az almenük mindig láthatóak */
.dropdown-menu .menu-item-wrapper {
    position: static;
    display: block !important;
    width: 100%;
}

.dropdown-menu .dropdown-menu {
    position: static !important;
    display: block !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    transform: none !important;
}

/* =============================================================================
   MOBIL MENÜ
   ============================================================================= */

.mobile-menu {
    display: none;
}

/* Toggle gomb */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #000000;
    padding: 0;
    cursor: pointer;
}

.mobile-menu-toggle svg {
    fill: #000000;
    width: 42px;
    height: 42px;
}

/* Mobil menü overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;          /* ← EZ HIÁNYZIK! */
    right: 0;
    bottom: 0;        /* ← Ez is jó, ha hozzáadod */
    width: 100%;
    height: 100%;    /* 100% helyett 100vh jobb */
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overscroll-behavior: contain;  /* ← Megakadályozza a háttér scrollozását */
}

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

/* Mobil menü tartalom */
.mobile-menu-content {
    position: fixed;      /* ← absolute helyett fixed! */
    top: 0;
    right: 0;
    width: 80%;
    max-width: 100%;     /* ← 100% helyett konkrét érték */
     height: 100%;        /* ← 100% helyett 100vh */
    background: #ffffff;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.open .mobile-menu-content {
    transform: translateX(0);
}

/* Mobil menü fejléc */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.mobile-menu-logo .mobile-logo {
    width: 190px;
    height: auto;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: #374041;
    font-size: 22px;
    padding: 0;
    cursor: pointer;
}

/* Mobil navigáció */
.mobile-menu-nav {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
}

.mobile-menu-item {
    position: relative;
}

.mobile-menu-item a {
    display: block;
    color: #050327;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.7px;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.mobile-menu-item a:hover {
    color: #AFD9AD;
}

/* =============================================================================
   MOBIL HIERARCHIKUS MEGJELENÍTÉS
   ============================================================================= */

/* Minden szintű mobil menü elem stílusa */
.mobile-menu .level-0 > a {
    font-size: 18px;
    font-weight: 700;
    padding-left: 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
    padding-bottom: 12px;
}

.mobile-menu .level-1 > a {
    font-size: 16px;
    font-weight: 600;
    padding-left: 20px;
    margin-bottom: 10px;
    text-transform: none;
    color: #333333;
}

.mobile-menu .level-2 > a {
    font-size: 15px;
    font-weight: 500;
    padding-left: 40px;
    margin-bottom: 8px;
    text-transform: none;
    color: #666666;
}

.mobile-menu .level-3 > a {
    font-size: 14px;
    font-weight: 400;
    padding-left: 60px;
    margin-bottom: 6px;
    text-transform: none;
    color: #999999;
}

/* Mobil almenük mindig láthatóak */
.mobile-menu .dropdown-menu {
    display: block !important;
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    margin-top: 5px;
}

/* Hover effektek mobil menüben */
.mobile-menu .level-1 > a:hover {
    color: #AFD9AD;
    padding-left: 25px;
}

.mobile-menu .level-2 > a:hover {
    color: #AFD9AD;
    padding-left: 45px;
}

.mobile-menu .level-3 > a:hover {
    color: #AFD9AD;
    padding-left: 65px;
}

/* =============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================= */

@media (max-width: 768px) {
    .desktop-menu {
        display: none !important;
    }
    
    .mobile-menu,
    .mobile-menu-toggle {
        display: block !important;
    }


 .mobile-menu .level-1 > a {
font-size: 16px;
    font-weight: 500;
    padding-left: 20px;
    margin-bottom: 0px;
    text-transform: none;
    color: #333333;
        letter-spacing: 0px;
}
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
    
    .desktop-menu {
        display: flex !important;
    }
}

/* =============================================================================
   ACCESSIBILITY ÉS FOCUS
   ============================================================================= */

.menu-item-wrapper a:focus,
.mobile-menu-toggle:focus,
.mobile-menu-close:focus,
.mobile-dropdown-item:focus {
    outline: 2px solid #AFD9AD;
    outline-offset: 2px;
}

/* =============================================================================
   EGYEDI WORDPRESS MENÜ OSZTÁLYOK
   ============================================================================= */

.menu-item-wrapper.current-menu-item > a,
.menu-item-wrapper.current-menu-parent > a {
    color: #AFD9AD;
}

.menu-item-wrapper.current-menu-item > a::after {
    transform: scaleX(1);
    background-color: #AFD9AD;
}

/* Current menu item jelölése mobil menüben is */
.mobile-menu-item.current-menu-item a {
    color: #AFD9AD;
}

/* =============================================================================
   UTILITY OSZTÁLYOK
   ============================================================================= */

.responsive-menu-error {
    padding: 12px 16px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    color: #dc2626;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    margin: 8px 0;
}

/* =============================================================================
   DEBUG SEGÍTSÉG (uncomment a teszteléshez)
   ============================================================================= */

/*
.menu-item-wrapper {
    border: 1px solid red;
}

.dropdown-menu {
    border: 2px solid blue;
}

.mobile-menu-item {
    border: 1px solid green;
}
*/