/* Desktop menü */
.desktop-menu {
    display: block;
}

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

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

.menu-item-wrapper > a {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 29px;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Dropdown menü */
.menu-item-wrapper.has-dropdown {
    position: relative;
}

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

.menu-item-wrapper.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #000000;
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

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

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.mobile-menu-toggle svg {
    width: 31px;
    height: 23px;
}

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

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

.mobile-menu-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
}

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

/* Mobil menü header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
}

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

.mobile-menu-logo .site-name {
    font-family: "Onest", sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #000000;
    text-decoration: none;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 40px;
    color: #000000;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobil menü navigáció */
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 60px 24px;
    align-items: center;
    gap: 40px;
}

.mobile-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mobile-menu-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.mobile-menu-item > .mobile-menu-item-header > a {
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: color 0.3s ease;
    font-size: 18px;
    line-height: 29px;
    font-family: "Inter", sans-serif;
    letter-spacing: 0px;
    color: #000000;
}

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

/* Submenu toggle gomb */
.mobile-submenu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.mobile-submenu-toggle svg {
    width: 24px;
    height: 24px;
    color: #000000;
}

.mobile-menu-item.has-submenu.submenu-open .mobile-submenu-toggle {
    transform: rotate(180deg);
}

/* Mobil almenü */
.mobile-submenu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-item.has-submenu.submenu-open .mobile-submenu {
    display: flex;
    max-height: 1000px;
}

.mobile-submenu a {
font-weight: bold;
font-size: 18px;
line-height: 29px;
font-family: "Inter", sans-serif;
letter-spacing: 0px;
color: #000000;
text-align: center;
    transition: color 0.3s ease;
}

.mobile-submenu a:hover {
    color: #e09850;
}

/* 1600px alatti nézet - arányosított méretek */
@media (max-width: 1600px) {
    .desktop-menu-container {
        gap: 29px; /* 40px × 0.715 */
    }
    
    .menu-item-wrapper > a {
        line-height: 21px; /* 29px × 0.715 - betűméret marad 18px */
    }
    
    .dropdown-menu {
        padding: 7px 0; /* 10px × 0.715 */
        min-width: 143px; /* 200px × 0.715 */
        border-radius: 6px; /* 8px × 0.715 */
    }
    
    .dropdown-menu a {
        padding: 7px 14px; /* 10px × 0.715, 20px × 0.715 */
    }
}

/* Mobil nézet breakpoint */
@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
}
