﻿/* KAMPANYA BARI (En Üst) */
.campaign-bar {
    background: linear-gradient(90deg, #0dcaf0 0%, #0d6efd 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    padding: 6px 0;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1031;
}

/* MENU -- Top Bar Alanı */
.menu--top-bar {
    background-color: #f8f9fa;
    color: #495057;
    font-size: 0.8rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    font-weight: 500;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 1032;
}
.dropdown-item.active, .dropdown-item:active
{
    background-color: #0d6efd24;
}

/* Link Stilleri */
.menu--top-link {
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.menu--top-link:hover {
    color: var(--secondary-color);
}

.menu--top-link i {
    font-size: 0.9rem;
    transition: color 0.2s ease;
    color: var(--primary-color);
}

.menu--top-link:hover i {
    color: var(--secondary-color);
}

/* İkon Vurgu Rengi (Turkuaz) */
.menu--icon-highlight {
    color: var(--primary-color);
}

/* Sosyal Medya İkonları */
.menu--social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: white; 
    font-size: 0.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.menu--social-icon:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Marka Renkleri */
.social-facebook { background-color: #1877F2; }
.social-twitter { background-color: #000000; }
.social-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-youtube { background-color: #FF0000; }
.social-linkedin { background-color: #0A66C2; }
.social-tiktok { background-color: #000000; }

.social-facebook:hover { filter: brightness(1.1); }
.social-twitter:hover { filter: brightness(1.2); }
.social-instagram:hover { filter: brightness(1.1); }
.social-youtube:hover { filter: brightness(1.1); }
.social-linkedin:hover { filter: brightness(1.1); }
.social-tiktok:hover { filter: brightness(1.2); }

/* Ayırıcı Çizgi */
.menu--separator {
    width: 1px;
    height: 16px;
    background-color: #dee2e6;
    margin: 0 14px;
}

/* Dropdown Özelleştirmeleri (Top Bar - Açık Tema) */
.menu--top-bar .dropdown-toggle {
    color: #495057;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.menu--top-bar .dropdown-toggle:hover {
    color: var(--secondary-color);
}

.menu--top-bar .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-top: 2px !important;
    padding: 0.5rem;
    border-radius: 6px;
    z-index: 1050;
}

.menu--top-bar .dropdown-item {
    color: #495057;
    font-size: 0.8rem;
    border-radius: 4px;
    padding: 6px 12px;
    transition: all 0.2s;
}

.menu--top-bar .dropdown-item:hover {
    background-color: #f0f8ff;
    color: var(--secondary-color);
    padding-left: 16px;
}

/* Hesabım Butonu */
.menu--top-bar .btn-primary-custom {
    font-size: 0.75rem;
    padding: 0.35rem 1.2rem;
    font-weight: 600;
    background-color: white;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.menu--top-bar .btn-primary-custom:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.2);
}

/* --------------------------------------------------------- */
/* MENU -- Main Navbar Alanı */
/* --------------------------------------------------------- */

.menu--navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    padding-top: 0;
    padding-bottom: 0;
    transition: all 0.3s ease;
}

/* Logo Tasarımı */
.menu--brand-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: #121416;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    line-height: 1.2;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.menu--brand-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.menu--brand-suffix {
    color: var(--primary-color);
    font-weight: 300;
}

/* Navigasyon Linkleri */
.menu--nav-link {
    font-weight: 500;
    color: #1c1e21 !important;
    font-size: 0.95rem;
    padding: 1.5rem 1.2rem !important;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.85;
    /* Flex hizalama - dropdown ikonu için */
    display: flex;
    align-items: center;
}

.menu--nav-link:hover,
.menu--nav-link.active {
    color: var(--secondary-color) !important;
    opacity: 1;
}

.menu--nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 15px;
    left: 50%;
    background-color: var(--secondary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Dropdown Toggle Oku Özelleştirme */
.menu--nav-link.dropdown-toggle::after {
    /* Bootstrap'in varsayılan okunu kaldırıp kendi stilimizi verelim veya düzenleyelim */
    /* Burada position static yaparak yanına alıyoruz */
    position: static; 
    display: inline-block;
    width: auto; /* Animasyon width'ini eziyoruz */
    height: auto;
    margin-left: 0.4em;
    vertical-align: 0.15em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    background-color: transparent;
    transform: none;
}

.menu--nav-link:hover::after,
.menu--nav-link.active::after {
    /* Normal link alt çizgi efekti dropdown toggle için devre dışı veya farklı olmalı */
    /* Ancak yukarıda 'dropdown-toggle' class'ı varsa ::after ok ikonudur. */
    /* Bu çakışmayı önlemek için alt çizgi efektini sadece dropdown-toggle OLMAYANLARA verelim */
    width: 25px;
}

/* Dropdown Toggle Olan Linkte Alt Çizgi İPTAL (Çünkü after'ı ok olarak kullanıyoruz) */
.menu--nav-link.dropdown-toggle:hover::after {
    width: auto; /* Genişlemesin */
    background-color: transparent; /* Rengi olmasın */
}

/* Dropdown Toggle için ayrı bir hover efekti (Opsiyonel: Rengi değişsin yeter) */
.menu--nav-link.dropdown-toggle:hover {
    color: var(--secondary-color) !important;
}

/* --------------------------------------------------------- */
/* MENU -- Dropdown Tasarımı (Topbar Stili Entegrasyonu) */
/* --------------------------------------------------------- */

/* Desktop Görünüm İçin Özelleştirmeler */
@media (min-width: 992px) {
    .menu--navbar .dropdown-menu {
        background-color: #ffffff;
        border: 1px solid #eee !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
        margin-top: 5px !important; /* Menüye daha yakın (Eski: 20px) */
        padding: 0.5rem;
        border-radius: 8px;
        /* Varsayılan olarak gizli, show classı gelince animasyonla açılır */
    }

    .menu--navbar .dropdown-menu.show {
        animation: dropdownFadeIn 0.3s ease forwards;
    }

    /* Dropdown üstündeki küçük ok işareti (Sadece Desktop) */
    .menu--navbar .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -6px;
        left: 24px;
        width: 12px;
        height: 12px;
        background: white;
        border-top: 1px solid #eee;
        border-left: 1px solid #eee;
        transform: rotate(45deg);
    }
}

/* Genel Dropdown Item Stilleri (Hem Mobil Hem Desktop) */
.menu--navbar .dropdown-item {
    color: #495057;
    font-size: 0.9rem;
    border-radius: 4px;
    padding: 8px 16px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.menu--navbar .dropdown-item:hover,
.menu--navbar .dropdown-item:focus {
    background-color: #f0f8ff; /* Topbar ile aynı açık mavi ton */
    color: var(--secondary-color);
    padding-left: 20px; /* Kayma efekti */
}

.menu--navbar .dropdown-divider {
    border-top-color: #eee;
    margin: 0.5rem 0;
}

/* Dropdown Açılış Animasyonu */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobil İçin Düzeltmeler */
@media (max-width: 991.98px) {
    .menu--navbar .dropdown-menu {
        border: none;
        background-color: #f8f9fa; /* Mobilde hafif gri zemin */
        box-shadow: none !important;
        padding-left: 1rem;
        margin-top: 0 !important;
    }
}


/* "Bize Ulaşın" Butonu */
.menu--btn-contact {
    background: linear-gradient(45deg, var(--secondary-color), #0b5ed7);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 50rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.25);
    border: none;
    margin-left: 1rem;
}

.menu--btn-contact:hover {
    background: linear-gradient(45deg, #0b5ed7, var(--secondary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.35);
}

/* Mobil Menü Toggler */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    color: #1c1e21;
    background-color: transparent;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    color: var(--secondary-color);
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    /* İkon rengini CSS filter ile ayarlayabiliriz veya SVG değiştirebiliriz */
    /* background-image: url(...) Bootstrap default'u kullanıyor */
}

/* --------------------------------------------------------- */
/* MENU -- Custom Mobile Sidebar (jQuery Powered) */
/* --------------------------------------------------------- */

/* Overlay (Arkaplan Karartma) */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    backdrop-filter: blur(3px);
}

/* Sidebar Ana Yapı */
.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background-color: #ffffff;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 5px 0 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* Aktif Durum (Menü Açık) */
.mobile-menu-sidebar.active {
    transform: translateX(0);
}

/* Header (Logo & Kapat Butonu) */
.mobile-menu-header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fff;
}

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

/* Body (Link Listesi) */
.mobile-menu-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

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

.mobile-nav-link {
    display: block;
    padding: 0.9rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid #f9f9f9;
    transition: all 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: #f8f9fa;
    color: var(--secondary-color);
    padding-left: 1.8rem;
}

.mobile-nav-link i {
    color: #adb5bd;
    transition: color 0.2s;
}

.mobile-nav-link:hover i,
.mobile-nav-link.active i {
    color: var(--secondary-color);
}

/* Mobil Dropdown */
.mobile-dropdown-menu {
    display: none; /* jQuery ile açılacak */
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #fdfdfd;
    border-bottom: 1px solid #f9f9f9;
}

.mobile-dropdown-menu a {
    display: block;
    padding: 0.7rem 1.5rem 0.7rem 3rem; /* İçerden başlat */
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid #fcfcfc;
}

.mobile-dropdown-menu a:hover {
    color: var(--secondary-color);
    background-color: #f8f9fa;
}

.rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.3s;
}

/* Footer (İletişim) */
.mobile-menu-footer {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}
