/* TEMA DEĞİŞKENLERİ */
:root {
    --zemin-beyaz: #ffffff;
    --zemin-gri: #f8f9fa;
    --yazi-koyu: #111827; 
    --yazi-acik: #6b7280;
    --vurgu-gradient: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
    --vurgu-duz: #dc2626; 
    --vurgu-hafif: rgba(220, 38, 38, 0.08);
    --golge: 0 10px 40px rgba(0, 0, 0, 0.08);
    --gecis: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
    list-style: none; 
    text-decoration: none; 
}

body { 
    background-color: var(--zemin-beyaz); 
    color: var(--yazi-koyu); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

/* --- MODERN NAVBAR --- */
header {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000; 
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

/* --- MODERN NAVBAR --- */
nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    height: 80px;
    display: flex; 
    justify-content: space-between; 
    align-items: center; /* Logo ve butonu dikey ortalar */
    position: relative;
}



.logo-alani img { 
    height: 50px; 
    display: block;
    transition: var(--gecis);
} 

.mobile-menu-btn {
    display: none;
    font-size: 1.6rem;
    color: var(--yazi-koyu);
    cursor: pointer;
    transition: var(--gecis);
    z-index: 1002;
}

/* --- MENÜ ARTIK TAM MERKEZDE KİLİTLİ --- */
.menu-linkleri { 
    position: absolute; 
    left: 50%; 
    top: 50%; /* Dikeyde merkeze aldık */
    transform: translate(-50%, -50%); /* Tam merkeze kilitledik */
    display: flex; 
    align-items: center; 
    gap: 30px; 
    margin: 0;
    padding: 0;
}

.nav-item { 
    position: relative; 
    height: 100%; 
    display: flex; 
    align-items: center; 
}

.nav-item.mega { 
    position: static; 
} 

.nav-link { 
    font-weight: 500; 
    font-size: 0.95rem; 
    color: var(--yazi-koyu); 
    transition: var(--gecis); 
    display: flex; 
    align-items: center; 
    gap: 6px; 
}

.nav-link i { 
    font-size: 0.8rem; 
    transition: transform 0.3s; 
    color: var(--yazi-acik); 
}

.nav-item:hover .nav-link { 
    color: var(--vurgu-duz); 
}

.nav-item:hover .nav-link i { 
    transform: rotate(180deg); 
    color: var(--vurgu-duz); 
}

/* --- ANİMASYONLU DROPDOWN (MASAÜSTÜ) --- */
.dropdown-menu {
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 220px;
    background: var(--zemin-beyaz); 
    box-shadow: var(--golge);
    border-radius: 12px; 
    padding: 15px 0; 
    border: 1px solid rgba(0,0,0,0.05);
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(15px); 
    transition: var(--gecis);
}

.nav-item:hover .dropdown-menu { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.dropdown-menu li a { 
    display: block; 
    padding: 10px 25px; 
    font-size: 0.9rem; 
    font-weight: 500; 
    color: var(--yazi-acik); 
    transition: var(--gecis); 
}

.dropdown-menu li a:hover { 
    color: var(--vurgu-duz); 
    background: var(--vurgu-hafif); 
    padding-left: 32px; 
}

/* --- MEGA MENÜ (MASAÜSTÜ) --- */
.mega-menu {
    position: absolute; 
    top: 100%; 
    left: 50%; 
    transform: translateX(-50%) translateY(15px);
    width: 1250px; 
    background: var(--zemin-beyaz); 
    box-shadow: var(--golge);
    border-radius: 16px; 
    padding: 30px; 
    border: 1px solid rgba(0,0,0,0.05);
    opacity: 0; 
    visibility: hidden; 
    transition: var(--gecis); 
    cursor: default;
}

.nav-item.mega:hover .mega-menu { 
    opacity: 1; 
    visibility: visible; 
    transform: translateX(-50%) translateY(0); 
}

.mega-wrapper { display: flex; gap: 30px; min-height: 360px; }
.mega-sol { flex: 2; } 
.mega-ayrac { width: 1px; background: rgba(0,0,0,0.08); margin: 10px 0; }
.mega-sag { flex: 1.8; display: flex; flex-direction: column; } 
.mega-kartlar-alani { display: flex; gap: 20px; flex-grow: 1; }

.mega-baslik { 
    font-size: 1.1rem; 
    font-weight: 800; 
    margin-bottom: 25px; 
    padding-bottom: 15px; 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    color: var(--yazi-koyu); 
}

.mega-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px 25px; 
}

.mega-item { 
    display: flex; 
    align-items: flex-start; 
    gap: 12px; 
    transition: var(--gecis); 
    padding: 8px; 
    border-radius: 10px; 
}

.mega-item:hover { 
    background: var(--vurgu-hafif); 
    transform: translateY(-3px); 
}

.mega-icon { 
    width: 40px; 
    height: 40px; 
    border-radius: 10px; 
    background: var(--vurgu-hafif); 
    color: var(--vurgu-duz); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 1.1rem; 
    transition: var(--gecis); 
    flex-shrink: 0; 
}

.mega-item:hover .mega-icon { 
    background: var(--vurgu-gradient); 
    color: white; 
}

.mega-text h4 { 
    font-size: 0.9rem; 
    font-weight: 600; 
    color: var(--yazi-koyu); 
    margin-bottom: 4px; 
    transition: var(--gecis); 
}

.mega-item:hover .mega-text h4 { color: var(--vurgu-duz); }
.mega-text p { font-size: 0.75rem; color: var(--yazi-acik); line-height: 1.4; }

.mega-kart { 
    background: var(--zemin-gri); 
    border-radius: 12px; 
    padding: 15px; 
    transition: var(--gecis); 
    border: 1px solid transparent; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    text-align: center; 
}

.mega-kart:hover { 
    background: #fff; 
    border-color: var(--vurgu-duz); 
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.1); 
    transform: translateY(-3px); 
}

.mega-kart img { 
    width: 100%; 
    height: 150px; 
    object-fit: cover; 
    border-radius: 8px; 
    margin-bottom: 15px; 
    background: #fff; 
    padding: 5px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
}

.mega-kart h4 { font-size: 0.95rem; color: var(--yazi-koyu); margin-bottom: 8px; font-weight: 700; }
.mega-kart p { font-size: 0.75rem; color: var(--yazi-acik); margin-bottom: 15px; line-height: 1.5; flex-grow: 1; }
.mega-kart .kart-link { font-size: 0.8rem; font-weight: 600; color: var(--vurgu-duz); }

/* BUTON (GENEL) */
.btn-ana { 
    background: var(--vurgu-gradient); 
    color: #fff; 
    padding: 10px 24px; 
    border-radius: 8px; 
    font-weight: 600; 
    font-size: 0.95rem; 
    transition: var(--gecis); 
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.25); 
    white-space: nowrap; 
}

.btn-ana:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4); 
    color: #fff; 
}


/* =========================================
    MOBİL UYUMLULUK KODLARI (TELEFON & TABLET)
========================================= */
@media (max-width: 992px) {
  nav { 
        height: 80px; 
        display: grid;
        grid-template-columns: 1fr auto 1fr; /* Sol, Orta, Sağ alanları kusursuz böler */
        align-items: center;
        padding: 0 5%;
    }
    
    .mobile-menu-btn { 
        display: block; 
        justify-self: start; /* Sola yasla */
        z-index: 1002;
    }
    
    /* LOGO: ARTIK EKRANIN %100 TAM MERKEZİNDE */
    .logo-alani { 
        position: static; /* Absolute iptal */
        transform: none; 
        justify-self: center; /* Merkeze yasla */
        z-index: 1002;
        margin: 0;
    }
    
    .logo-alani img { 
        height: 40px !important; /* Çok büyük olursa taşabilir, 40px en idealidir */
    }

    /* BUTON: SAĞA YASLA */
    .header-teklif-btn { 
        display: block !important; 
        justify-self: end; /* Sağa yasla */
        padding: 8px 12px !important; 
        font-size: 0.85rem !important; 
        z-index: 1002;
        margin: 0;
        white-space: nowrap; /* Yazının alt satıra düşmesini engeller */
    }
    /* Sidebar (Menü İçeriği) */
    .nav-menu-container {
        position: fixed; 
        top: 0; 
        left: -100%; 
        width: 100%; 
        height: 100vh; 
        background: var(--zemin-beyaz);
        padding: 100px 5% 50px; 
        transition: 0.4s ease; 
        z-index: 1000;
        overflow-y: auto;
    }
    .nav-menu-container.active { left: 0; }
    
    .menu-linkleri { position: static; transform: none; flex-direction: column; width: 100%; gap: 0; align-items: flex-start; height: auto; }
    .nav-item { width: 100%; flex-direction: column; align-items: flex-start; height: auto; }
    .nav-link { width: 100%; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,0.05); font-size: 1.1rem; }
    
    .mega-menu, .dropdown-menu { position: static; width: 100%; opacity: 1; visibility: visible; box-shadow: none; border: none; background: var(--zemin-gri); border-radius: 12px; margin-top: 5px; margin-bottom: 10px; padding: 10px; display: none; transform: none !important; }
    .nav-item:hover .mega-menu, .nav-item:hover .dropdown-menu { display: none; }
    .nav-item.mobile-open .mega-menu, .nav-item.mobile-open .dropdown-menu { display: block; animation: fadeUp 0.3s ease; }
    .nav-item.mobile-open .nav-link i { transform: rotate(180deg); color: var(--vurgu-duz); }
    
    .mega-wrapper { flex-direction: column; gap: 10px; min-height: auto; }
    .mega-sol { width: 100%; }
    .mega-sag, .mega-ayrac { display: none; }
    .mega-baslik { font-size: 1rem; margin-bottom: 15px; padding-bottom: 10px; }
    .mega-grid { grid-template-columns: 1fr; gap: 10px; } 
    .mega-item { padding: 12px; background: #fff; border: 1px solid rgba(0,0,0,0.03); border-radius: 10px;}
    .mega-text p { display: none; } 
}

/* ANİMASYONLAR */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- YENİ EKLENEN 3. SEVİYE ALT MENÜ (GALERİ) CSS'İ --- */
.alt-menu-kapsayici {
    position: relative;
}

.alt-menu-baslik {
    display: flex !important; 
    justify-content: space-between; 
    align-items: center;
}

.alt-menu-baslik i {
    font-size: 0.75rem;
    transition: transform 0.3s;
}

/* Bilgisayar Görünümü (Sağa Doğru Açılma) */
@media (min-width: 993px) {
    .alt-dropdown-menu {
        position: absolute;
        left: 100%; /* Menüyü sağa atar */
        top: 0;
        background: #ffffff;
        min-width: 220px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 10px 0;
        list-style: none;
        opacity: 0;
        visibility: hidden;
        transform: translateX(15px); /* Hafif soldan sağa kayma animasyonu */
        transition: all 0.3s ease;
    }
    
    /* Ana açılır menünün içine çok girmesin diye */
    .alt-dropdown-menu::before {
        content: '';
        position: absolute;
        left: -10px;
        top: 0;
        width: 10px;
        height: 100%;
    }

    .alt-menu-kapsayici:hover .alt-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
    
    .alt-dropdown-menu li a {
        display: block;
        padding: 10px 20px;
        color: #475569;
        font-size: 0.95rem;
        font-weight: 500;
        text-decoration: none;
        transition: 0.3s;
    }

    .alt-dropdown-menu li a:hover {
        background: #f8fafc;
        color: #ef4444;
        padding-left: 25px; /* Hover efekti */
    }
}

/* Mobil Görünüm (Aşağı Doğru Akordeon Açılma) */
@media (max-width: 992px) {
    .alt-dropdown-menu {
        display: none; /* Mobilde ilk başta kapalı */
        list-style: none;
        padding-left: 15px; /* Mobilde biraz daha içeriden başlasın */
        margin-top: 5px;
        border-left: 2px solid #e2e8f0;
        margin-left: 10px;
    }

    .alt-menu-kapsayici.mobile-open .alt-dropdown-menu {
        display: block;
    }
    
    .alt-menu-kapsayici.mobile-open .alt-menu-baslik i {
        transform: rotate(90deg); /* Oku aşağı döndür */
    }

    .alt-dropdown-menu li a {
        display: block;
        padding: 10px 15px;
        color: #64748b;
        font-size: 0.95rem;
        text-decoration: none;
    }
}