/**
 * Header és navigáció stílusok
 */

/* Header alapstílusok */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #5c5e6b;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    min-height: 80px;
}

/* Logo és cím */
.header-left .logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    height: auto !important;
    width: 200px !important;
    max-width: 200px !important;
    transition: transform 0.3s ease;
}

.header-left .logo:hover .header-logo {
    transform: scale(1.05);
}

.header-left .logo h1 {
    color: #5c5e6b;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-left .logo:hover h1 {
    color: #464852;
    transform: scale(1.05);
}

/* Fő navigáció */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.nav-link {
    color: #2c3e50;
    font-weight: 500;
    text-decoration: none;
    padding: 0.75rem 1rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 0;
}

.nav-link:hover {
    color: #5c5e6b;
    background-color: #f0f1f3;
}

.nav-link.active {
    color: #5c5e6b !important;
    background-color: #f0f1f3 !important;
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background-color: #5c5e6b;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobil menü toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    transition: all 0.3s ease;
    border-radius: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobil navigáció */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: left 0.3s ease;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    background-color: #5c5e6b;
}

.mobile-nav-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.2rem;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.mobile-nav-close:hover {
    color: #f8f6f3;
}

.mobile-nav-menu {
    padding: 1rem;
}

.mobile-nav-list {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
}

.mobile-nav-item {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: #f0f1f3;
    color: #5c5e6b;
    padding-left: 1.5rem;
}

.mobile-nav-actions {
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-actions .btn {
        display: none;
    }
    
    .header-content {
        padding: 0.75rem 0;
        min-height: 70px;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-left {
        flex: 1;
        display: flex;
        justify-content: flex-start;
    }
    
    .header-logo {
        height: 60px !important;
        width: auto !important;
        max-width: 180px !important;
        object-fit: contain;
    }
    
    .header-left .logo {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .header-left .logo h1 {
        font-size: 1.5rem;
    }
    
    .header-actions {
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0.5rem 0;
        min-height: 60px;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-left {
        flex: 1;
        display: flex;
        justify-content: flex-start;
    }
    
    .header-logo {
        height: 50px !important;
        width: auto !important;
        max-width: 140px !important;
        object-fit: contain;
    }
    
    .header-left .logo {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .header-left .logo h1 {
        font-size: 1.3rem;
    }
    
    .header-actions {
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    
    .mobile-nav-content {
        width: 90%;
    }
    
    .mobile-nav-header {
        padding: 0.75rem;
    }
    
    .mobile-nav-menu {
        padding: 0.75rem;
    }
}

/* Animációk */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.site-header {
    animation: slideInDown 0.5s ease-out;
}

/* Hover effektek */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #5c5e6b;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    opacity: 0.1;
}

/* Focus stílusok */
.nav-link:focus,
.mobile-nav-link:focus,
.mobile-menu-toggle:focus,
.mobile-nav-close:focus {
    outline: 2px solid #5c5e6b;
    outline-offset: 2px;
}

/* Print stílusok */
@media print {
    .site-header {
        position: static;
        box-shadow: none;
        border-bottom: 1px solid #000;
    }
    
    .mobile-menu-toggle,
    .mobile-nav {
        display: none !important;
    }
}
