/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Header Styles */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
    margin: 0;
}

.topbar {
    position: relative;
    z-index: 1001;
}

.site-header .container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo Bölümü */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    color: #000;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 20px;
    font-weight: 500;
    color: #0b1e35;
    line-height: 1.2;
    margin: 0;
}

.logo-slogan {
    font-size: 13px;
    color: var(--primary, #2771eb);
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

/* Navigation */
.site-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.site-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.site-nav li {
    margin: 0;
}

.site-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 12px;
    text-decoration: none;
    color: #000;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.site-nav a:hover {
    color: var(--primary, #2771eb);
}

.site-nav a i {
    font-size: 16px;
}

/* Dropdown Menu Styles */
.dropdown-menu-item {
    position: relative;
}

.dropdown-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: 4px;
    display: inline-block;
}

.dropdown-menu-item.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    margin-top: 8px;
    min-width: 220px;
    z-index: 1000;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.dropdown-menu-item.active .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 14px;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: #f5f5f5;
    color: var(--primary, #2771eb);
}

.dropdown-menu li a i {
    font-size: 16px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* Mobile Dropdown */
.mobile-menu .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: #f8f9fa;
    border-radius: 0;
    margin: 0;
    padding: 0;
    padding-left: 20px;
    border-left: 2px solid #e5e7eb;
}

.mobile-menu .dropdown-menu-item.active .dropdown-menu {
    display: block;
}

.mobile-menu .dropdown-menu li a {
    padding: 12px 20px;
    font-size: 14px;
}

/* Header Actions - Çağrı Merkezi */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.desktop-call-center {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #000;
}

.desktop-call-center-icon {
    width: 40px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    border-radius: 8px;
    background: var(--primary, #2771eb);
    transition: all 0.2s;
}

.desktop-call-center-icon:hover {
    background: #1f5fe0;
}

.desktop-call-center-icon i {
    font-size: 18px;
    color: #ffffff;
}

.desktop-call-center-text {
    display: flex;
    flex-direction: column;
}

.desktop-call-center-label {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
    margin: 0;
    margin-bottom: 4px;
}

.desktop-call-center-phone {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin: 0;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    background: #f5f5f5;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    flex-direction: row;
    gap: 0;
    order: -1;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.nav-toggle:hover {
    background: #e5e5e5;
    transform: scale(1.05);
}

.nav-toggle:active {
    transform: scale(0.95);
}

.nav-toggle i {
    font-size: 22px;
    color: #000000;
}

.nav-toggle[aria-expanded="true"] {
    background: #f5f5f5;
}

.nav-toggle[aria-expanded="true"]:hover {
    background: #e5e5e5;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    width: 22px;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    width: 22px;
}

/* Mobile Header Actions */
.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

.mobile-header-actions .mobile-action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #000;
    font-size: 18px;
    text-decoration: none;
    transition: background 0.2s;
}

.mobile-header-actions .mobile-action-btn:hover {
    background: #e5e5e5;
}

.mobile-header-actions .mobile-action-btn.whatsapp {
    background: #25d366;
    color: #fff;
}

.mobile-header-actions .mobile-action-btn.whatsapp:hover {
    background: #20ba5a;
}

/* Mobile Menu */
.mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    max-width: 420px;
    background: #fff;
    z-index: 1200; /* Topbar ve header'ın üzerinde */
    overflow-y: auto;
    padding: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    margin-top: 0;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.18);
}

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

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.mobile-menu li {
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
}

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

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: #000;
    font-size: 14.5px;
    font-weight: 500;
    width: 100%;
}

.mobile-menu a:hover {
    background: #f5f5f5;
    color: var(--primary, #2771eb);
}

.mobile-menu a i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* Mobil Logo - Varsayılan olarak gizli */
.mobile-logo-center {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .site-header .container {
        justify-content: space-between;
    }
    
    .site-nav {
        display: none;
    }
    
    .header-actions .desktop-call-center {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
        order: 1;
        margin-right: 10px;
    }
    
    .header-logo {
        display: none; /* Mobilde gizle */
    }
    
    .mobile-logo-center {
        display: flex;
        order: 2;
        flex: 1;
        justify-content: center;
        align-items: center;
    }
    
    .header-logo-mobile {
        display: flex;
        align-items: center;
        gap: 0;
        text-decoration: none;
        color: #000;
    }
    
    .logo-text-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .logo-title-mobile {
        font-size: 18px;
        font-weight: 500;
        color: #0b1e35;
        line-height: 1.2;
        margin: 0;
    }
    
    .logo-slogan-mobile {
        font-size: 12px;
        color: var(--primary, #2771eb);
        font-weight: 600;
        line-height: 1.2;
        margin: 2px 0 0 0;
    }
    
    .mobile-header-actions {
        display: flex;
        order: 3;
        margin-left: 10px;
    }
    
    .mobile-menu {
        display: block;
        top: 0;
    }
    
}

/* Global Styles */
html, body {
    margin: 0;
    padding: 0;
    background: #ffffff;
}

/* Scrollbar Styles */
:root {
    --scrollbar-thumb: var(--primary, #2771eb);
    --scrollbar-track: #f1f1f1;
}

/* Webkit Scrollbar (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track, #f1f1f1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb, var(--primary, #2771eb));
    border-radius: 5px;
    border: 2px solid var(--scrollbar-track, #f1f1f1);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary, #2771eb);
    opacity: 0.9;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb, var(--primary, #2771eb)) var(--scrollbar-track, #f1f1f1);
}

@media (max-width: 768px) {
    .site-header .container {
        height: 70px;
        padding: 0 15px;
    }
    
    
    .logo-icon {
        width: 45px;
        height: 45px;
    }
    
    .logo-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .logo-title {
        font-size: 20px;
        color: #0b1e35;
        font-size: 20px;
    }
    
    .logo-slogan {
        font-size: 11px;
    }
    
    .mobile-menu {
        top: 0;
        z-index: 1200;
    }
}
