/**
 * Modern Header CSS
 * Temizlenmiş ve optimize edilmiş versiyon
 */

/* Modern Header Container */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 25%, #ff8c42 50%, #ffa726 75%, #ffb74d 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.header-container {
    width: 100%;
    max-width: 100%;
}

/* Tek Satır Header */
.header-main {
    padding: 8px 0;
    position: relative;
    z-index: 25;
    width: 100%;
    max-width: 100%;
}

.header-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

/* Sol - Logo */
.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-logo a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

.header-logo img {
    max-height: 40px;
    width: auto;
    max-width: 100%;
}

.header-logo h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Orta - Menüler */
.header-nav {
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.header-nav .nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    max-width: 100%;
}

.header-nav .nav-item {
    position: relative;
}

.header-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.header-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
    z-index: -1;
}

.header-nav .nav-link:hover::before {
    left: 0;
}

.header-nav .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.header-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.header-nav .nav-icon {
    font-size: 16px;
    transition: all 0.3s ease;
}

.header-nav .nav-link:hover .nav-icon {
    transform: scale(1.1);
}

.header-nav .nav-text {
    font-size: 14px;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Sağ - Kontroller */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .header-main-container {
        padding: 0 15px;
        gap: 15px;
    }
    
    .header-logo img {
        max-height: 35px;
    }
    
    .header-nav {
        display: none;
    }
    
    .header-controls {
        gap: 10px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 480px) {
    .header-main-container {
        padding: 0 10px;
        gap: 10px;
    }
    
    .header-logo h1 {
        font-size: 18px;
    }
    
    .header-logo img {
        max-height: 30px;
    }
}

/* Mobile Menu */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9999;
    display: none;
    overflow-y: auto;
}

.mobile-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: -8px 0px 20px 0px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    overflow-y: auto;
    z-index: 10000;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-overlay.active .mobile-menu {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 20px;
    position: relative;
    margin-bottom: 20px;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary-color);
    border: 1px solid rgba(255,107,53,0.2);
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(255,255,255,0.95);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255,107,53,0.2);
}

/* Mobile Menu Items */
.mobile-menu-items {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-menu-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.mobile-menu-item:hover {
    background: rgba(255,107,53,0.1);
    backdrop-filter: blur(5px);
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.mobile-menu-link i {
    margin-right: 15px;
    font-size: 18px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: translateX(-5px);
}

.mobile-menu-link:hover i {
    color: var(--white);
    transform: scale(1.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Animations */
.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hover-effect {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.nav-icon.animate {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.mobile-menu-open {
    overflow: hidden;
}