/* Mobile Header CSS */
:root {
    --mobile-header-bg: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #243342 100%);
    --mobile-header-text: #ffffff;
    --mobile-accent: #64b5f6;
    --mobile-accent-hover: #42a5f5;
    --mobile-shadow: rgba(0, 0, 0, 0.4);
    --mobile-overlay-bg: rgba(15, 20, 25, 0.95);
    --mobile-border: #37474f;
}

/* Mobile Header - Gizli olarak başlar */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--mobile-header-bg);
    box-shadow: 0 2px 10px var(--mobile-shadow);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.mobile-header.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Header Top Row */
.mobile-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    height: 60px;
    border-bottom: 1px solid var(--mobile-border);
}

/* Body padding düzeltmesi - sadece mobile header aktifken */
@media (max-width: 768px) {
    body {
        padding-top: 60px !important;
    }
}

/* Mobile Logo */
.mobile-logo {
    flex: 1;
}

.mobile-logo-img {
    height: 40px;
    max-width: 120px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.mobile-logo-img:hover {
    transform: scale(1.05);
}

/* Hamburger Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(100, 181, 246, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--mobile-header-text);
    margin: 2px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger Animation */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--mobile-overlay-bg);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 10000;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Content */
.mobile-menu-content {
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
}

/* Close Button */
.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--mobile-header-text);
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background: rgba(100, 181, 246, 0.2);
    color: var(--mobile-accent);
    transform: rotate(90deg);
}

/* Mobile Navigation */
.mobile-nav {
    flex: 1;
    margin-bottom: 30px;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list > li {
    margin-bottom: 8px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: var(--mobile-header-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
}

.mobile-nav-link.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-link:hover {
    background: rgba(100, 181, 246, 0.15);
    border-color: var(--mobile-accent);
    color: var(--mobile-accent);
    transform: translateX(5px);
}

.mobile-nav-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Mobile Dropdown */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle.active i {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    max-height: 0;
    transition: all 0.3s ease;
}

.mobile-dropdown-menu.active {
    max-height: 300px;
    padding: 8px 0;
}

.mobile-dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--mobile-header-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-dropdown-item:hover {
    background: rgba(100, 181, 246, 0.1);
    border-left-color: var(--mobile-accent);
    color: var(--mobile-accent);
    transform: translateX(5px);
}

/* Mobile Contact */
.mobile-contact {
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-phone-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--mobile-header-text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid var(--mobile-accent);
    transition: all 0.3s ease;
}

.mobile-phone-link:hover {
    background: rgba(100, 181, 246, 0.2);
    transform: scale(1.02);
}

.mobile-phone-link i {
    font-size: 18px;
    color: var(--mobile-accent);
}

/* Mobile Flags */
.mobile-flags {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-flag {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mobile-flag:hover {
    transform: scale(1.2);
    border-color: var(--mobile-accent);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

.mobile-flag.flag-active {
    border: 2px solid var(--mobile-accent) !important;
    box-shadow: 0 0 8px rgba(100, 181, 246, 0.5) !important;
    transform: scale(1.1) !important;
}

/* Mobile Header Active State */
.mobile-header.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-header.show {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .mobile-header-top {
        padding: 10px 12px;
        height: 55px;
    }
    
    body {
        padding-top: 55px !important;
    }
    
    .mobile-logo-img {
        height: 35px;
        max-width: 100px;
    }
    
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
    }
    
    .hamburger-line {
        width: 20px;
    }
    
    .mobile-menu-content {
        padding: 15px 12px;
    }
    
    .mobile-nav-link {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .mobile-dropdown-item {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .mobile-phone-link {
        padding: 10px 16px;
        font-size: 15px;
    }
}

@media (max-width: 320px) {
    .mobile-header-top {
        padding: 8px 10px;
        height: 50px;
    }
    
    body {
        padding-top: 50px !important;
    }
    
    .mobile-logo-img {
        height: 30px;
        max-width: 80px;
    }
    
    .mobile-menu-btn {
        width: 32px;
        height: 32px;
    }
    
    .hamburger-line {
        width: 18px;
    }
    
    .mobile-nav-link {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .mobile-dropdown-item {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .mobile-flag {
        width: 28px;
        height: 20px;
    }
}

/* Animasyonlar */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-nav-link {
    animation: fadeInUp 0.3s ease forwards;
}

.mobile-nav-list > li:nth-child(1) .mobile-nav-link { animation-delay: 0.1s; }
.mobile-nav-list > li:nth-child(2) .mobile-nav-link { animation-delay: 0.2s; }
.mobile-nav-list > li:nth-child(3) .mobile-nav-link { animation-delay: 0.3s; }
.mobile-nav-list > li:nth-child(4) .mobile-nav-link { animation-delay: 0.4s; }
.mobile-nav-list > li:nth-child(5) .mobile-nav-link { animation-delay: 0.5s; }

/* Scroll Prevention */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}