/* Alap konténer stílusok */
.responsive-menu-container {
    position: relative;
}

/* Desktop menü stílusok */
.desktop-menu {
    display: flex;
    flex-direction: row;
}

.desktop-menu-container {
    display: flex;
    gap: 15px;
    position: relative;
}

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

.menu-item-wrapper > a {
    letter-spacing: 0.09px;
    text-decoration: none;
    position: relative;
    display: flex;
    color: #D90416;
    font-family: "Poppins", Sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: normal;
    transition: color 0.3s ease;
}

/* Főmenü elemek aláhúzása */
.menu-item-wrapper > a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: #D90416;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.menu-item-wrapper > a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

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

/* Mobil menü stílusok */
.mobile-menu {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.mobile-menu-toggle:hover {
    opacity: 0.7;
}

svg#fi_9121er524 {
    fill: #000000;
    width: 42px;
    height: auto;
    margin-bottom: -3px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-menu-content {
    background: #fff;
    padding: 20px;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 80%;
    max-width: 300px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    transition: transform 0.3s ease;
    transform: translateX(100%);
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

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

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

button.mobile-menu-close:hover {
    color: #AFD9AD;
}

/* Mobil navigáció */
nav.mobile-menu-nav {
    margin-top: 31px;
}

.mobile-menu-item {
    padding-top: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

.mobile-menu-item-header a {
    flex-grow: 1;
    letter-spacing: 0.09px;
    text-decoration: none;
    position: relative;
    display: flex;
    color: #242424;
    font-family: "Poppins", Sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: normal;
    transition: color 0.3s ease;
}

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

/* Touch feedback mobil eszközökhöz */
@media (hover: none) and (pointer: coarse) {
    .mobile-menu-item-header a:active {
        color: #AFD9AD;
        opacity: 0.8;
    }
    
    .menu-item-wrapper > a:active {
        color: #AFD9AD;
        opacity: 0.8;
    }
}

/* Reszponzív beállítások */
@media (max-width: 768px) {
    .desktop-menu {
        display: none !important;
    }

    .mobile-menu,
    .mobile-menu-toggle {
        display: block !important;
    }
}

/* További méret specifikus beállítások */
@media (max-width: 480px) {
    .mobile-menu-content {
        width: 90%;
        max-width: 280px;
    }
    
    .mobile-menu-item-header a {
        font-size: 16px;
    }
    
    .mobile-menu-logo img.mobile-logo {
        width: 160px;
    }
}

/* Accessibility javítások */
.mobile-menu-toggle:focus,
.mobile-menu-close:focus,
.menu-item-wrapper > a:focus,
.mobile-menu-item-header a:focus {
    outline: 2px solid #AFD9AD;
    outline-offset: 2px;
}

/* Animáció optimalizálás */
@media (prefers-reduced-motion: reduce) {
    .menu-item-wrapper > a::after,
    .mobile-menu-overlay,
    .mobile-menu-content,
    .mobile-menu-toggle,
    button.mobile-menu-close,
    .mobile-menu-item-header a {
        transition: none;
    }
}