/* ==========================================================================
   HEADER-FOOTER.CSS — AE Glass Header & AE Premium Footer
   ========================================================================== */

/* === Footer hover titreme / scrollbar FIX === */

/* Footer içinde yatay taşmayı kesin kapat */
.site-footer,
.footer-container,
.footer-payment-wrapper {
  overflow-x: hidden;
}

/* Ödeme bandını stabilize et */
.footer-payment-wrapper {
  contain: paint;              /* hover efektleri scroll alanını büyütmesin */
}

/* Logoların hover'da "milim" oynamasını engelle */
.footer-payment-wrapper .iyzico-brand,
.footer-payment-wrapper .payment-cards img {
  display: block;
  height: 22px;                /* zaten var gibi ama sabitleyelim */
  width: auto;
  transform: translateZ(0);    /* render jitter azaltır */
  backface-visibility: hidden;
  will-change: filter, opacity, transform;
}

/* Eğer filter hover kullanıyorsan, başlangıç değerini de ver ki geçiş stabil olsun */
.footer-payment-wrapper .iyzico-brand,
.footer-payment-wrapper .payment-cards img {
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.footer-payment-wrapper:hover .iyzico-brand,
.footer-payment-wrapper:hover .payment-cards img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Sosyal ikon hover'ı scroll tetikliyorsa daha güvenli hover (isteğe bağlı) */
.footer-social a {
  will-change: transform;
}

.footer-social a:hover {
  transform: translateY(-2px); /* -3 yerine -2 daha az taşır */
}

/* ==========================================================================
   AE ULTRA PREMIUM HEADER (FİNAL KUSURSUZ VERSİYON)
   ========================================================================== */

.ae-glass-header {
    position: sticky; top: 0; z-index: 10000;
    background: var(--hdr-bg);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--hdr-border);
    box-shadow: var(--hdr-shadow);
    transition: all 0.4s var(--bezier);
    width: 100%;
}

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

.ae-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 170px;
    min-width: 170px;
    height: 88px;
    padding: 8px 0;
}

.ae-logo-img {
    display: block;
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s var(--bezier);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.ae-logo-wrapper:hover .ae-logo-img {
    transform: scale(1.02);
}

/* --- MERKEZ NAVİGASYON (Yeni linkler sığsın diye boşluk daraltıldı) --- */
.ae-main-nav { display: flex; align-items: center; gap: 20px; height: 100%; }

.ae-nav-item {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px; font-weight: 600; color: var(--hdr-text);
    text-decoration: none; padding: 10px 0; border: none; background: transparent; cursor: pointer;
    display: flex; align-items: center; gap: 6px; position: relative;
    transition: color 0.3s ease;
}

.ae-nav-item:hover { color: var(--hdr-text-hover); }

/* Aktiflik Belirteci */
.ae-nav-item.active { color: #0284c7; font-weight: 800; }
.ae-active-dot { display: none !important; }

.ae-drop-icon { font-size: 10px; color: #94a3b8; transition: transform 0.4s var(--bezier); }
.ae-dropdown-trigger { position: relative; height: 100%; display: flex; align-items: center; }
.ae-dropdown-trigger:hover .ae-drop-icon { transform: rotate(180deg); color: var(--hdr-text-hover); }
.ae-dropdown-trigger::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 30px; transform: translateY(100%); }

/* --- MEGA MENÜ PANOSU --- */
.ae-mega-pane {
    position: absolute;
    top: 108px;
    background: #ffffff; border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(0,0,0,0.03);
    opacity: 0; visibility: hidden; transform: translate(-50%, 15px);
    transition: all 0.4s var(--bezier);
    z-index: 100000; pointer-events: none; padding: 24px;
}
.ae-dropdown-trigger:hover .ae-mega-pane { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }

/* Kurumsal Pano (İçerik azaldığı için daraltıldı) */
.ae-mega-corp { width: 680px; left: 50%; padding: 0 !important; overflow: hidden; }
.ae-corp-layout { display: flex; width: 100%; }

.ae-corp-brand-panel { width: 35%; background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); padding: 32px 24px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.ae-corp-brand-panel img {
    width: 180px;
    max-width: 100%;
    height: auto;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
    object-fit: contain;
}
.ae-corp-brand-panel p { color: #cbd5e1; font-size: 13px; line-height: 1.6; margin: 0; position: relative; z-index: 2; }
.ae-corp-brand-bg { position: absolute; bottom: -20px; right: -20px; width: 150px; height: 150px; background: radial-gradient(circle, rgba(14,165,233,0.2) 0%, transparent 70%); z-index: 1; border-radius: 50%; }
.ae-corp-grid { width: 65%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 24px; }

.ae-c-card { display: flex; align-items: center; gap: 15px; padding: 12px; border-radius: 14px; text-decoration: none; border: 1px solid transparent; transition: all 0.3s var(--bezier); }
.ae-c-card:hover { background: #f8fafc; border-color: #f1f5f9; transform: translateX(4px); }
.ae-c-icon { width: 42px; height: 42px; border-radius: 12px; border: 1px solid; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all 0.3s var(--bezier); }
.ae-c-card:hover .ae-c-icon { transform: scale(1.1); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.ae-c-info { display: flex; flex-direction: column; }
.ae-c-info strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 800; color: #0f172a; margin-bottom: 2px; }
.ae-c-info span { font-size: 12px; color: #64748b; font-family: 'Inter', sans-serif;}

/* Bilgi Merkezi Panosu */
.ae-mega-info { width: 950px; left: 50%; padding: 32px; }
.ae-info-layout { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.ae-col-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 900; color: #94a3b8; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 16px 8px; }
.ae-b-list { display: flex; flex-direction: column; gap: 8px; }

.ae-b-card { display: flex; align-items: flex-start; gap: 16px; padding: 16px; background: #fafafa; border: 1px solid #e2e8f0; border-radius: 16px; text-decoration: none; transition: all 0.4s var(--bezier); }
.ae-b-card:hover { background: #ffffff; border-color: #bae6fd; box-shadow: 0 15px 30px -10px rgba(14, 165, 233, 0.15); transform: translateY(-2px); }
.ae-b-icon { width: 44px; height: 44px; border-radius: 12px; background: #ffffff; border: 1px solid #e2e8f0; color: #94a3b8; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; transition: all 0.4s var(--bezier); }
.ae-b-card:hover .ae-b-icon { background: #f0f9ff; border-color: #7dd3fc; color: var(--hdr-blue); }
.ae-b-content { display: flex; flex-direction: column; width: 100%; }
.ae-b-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ae-b-head h5 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 14px; color: #0f172a; margin: 0; transition: color 0.3s; }
.ae-b-card:hover .ae-b-head h5 { color: var(--hdr-blue); }
.ae-micro-badge { font-size: 9px; font-weight: 800; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; letter-spacing: 0.5px; }
.ae-micro-badge.pop { background: #f0fdf4; color: #16a34a; border: 1px solid #dcfce7; }
.ae-micro-badge.eco { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.ae-micro-badge.str { background: #fdf2f8; color: #e11d48; border: 1px solid #ffe4e6; }
.ae-b-content p { font-size: 12px; color: #64748b; line-height: 1.4; margin: 0; }

.ae-sss-box { background: linear-gradient(145deg, #f8fafc 0%, #f0f9ff 100%); border: 1px solid #bae6fd; border-radius: 20px; padding: 32px 24px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 100%; transition: all 0.4s var(--bezier); position: relative; overflow: hidden; }
.ae-sss-box:hover { box-shadow: 0 20px 40px -10px rgba(14, 165, 233, 0.15); border-color: #7dd3fc; }
.ae-sss-icon { width: 48px; height: 48px; border-radius: 14px; background: #ffffff; box-shadow: 0 4px 10px rgba(0,0,0,0.05); color: var(--hdr-blue); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 20px; }
.ae-sss-box h4 { font-size: 18px; font-weight: 800; color: #0f172a; margin: 0 0 10px 0; }
.ae-sss-box p { font-size: 13px; color: #64748b; line-height: 1.6; margin: 0 0 24px 0; }
.ae-sss-btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 800; color: #ffffff; background: var(--hdr-blue); padding: 10px 20px; border-radius: 10px; text-decoration: none; transition: all 0.3s ease; }
.ae-sss-btn:hover { background: #0284c7; box-shadow: 0 8px 16px rgba(14, 165, 233, 0.3); transform: translateY(-2px); }

/* --- SAĞ E-TİCARET KOKPİTİ --- */
.ae-tools-wrapper { display: flex; align-items: center; gap: 12px; }

.ae-tool-box {
    width: 44px; height: 44px; border-radius: 14px;
    background: #ffffff; border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    color: #64748b; font-size: 18px; text-decoration: none; cursor: pointer;
    transition: all 0.4s var(--bezier); position: relative;
}
.ae-tool-box:hover { border-color: #bae6fd; color: var(--hdr-blue); box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.2); transform: translateY(-3px); }

.ae-tool-divider { width: 1px; height: 28px; background: #e2e8f0; margin: 0 4px; }
.ae-tool-store { width: auto; padding: 0 16px; gap: 8px; background: #f8fafc; }
.ae-tool-store span { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 800; color: #334155; }
.ae-tool-store:hover span { color: var(--hdr-blue); }

.ae-tool-cart { background: #0f172a; border-color: #0f172a; color: #ffffff; }
.ae-tool-cart:hover { background: var(--hdr-blue); border-color: var(--hdr-blue); color: #ffffff; box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.4); }
.ae-cart-badge { position: absolute; top: -6px; right: -6px; background: #ef4444; color: #ffffff; font-size: 10px; font-weight: 900; height: 22px; min-width: 22px; border-radius: 11px; display: flex; align-items: center; justify-content: center; padding: 0 6px; border: 2px solid #ffffff; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3); }

/* --- KULLANICI MENÜSÜ DROPDOWN (GİRİŞ YAPILDIĞINDA) --- */
.ae-logged-in-btn { background: #f0fdf4 !important; border-color: #bbf7d0 !important; }
.ae-user-initial { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900; font-size: 16px; color: #16a34a; }

/* Menü boşluğu onarıldı: Görünmez köprü özel olarak atandı */
#user-area-container .ae-dropdown-trigger::after {
    content: ''; position: absolute; top: 100%; left: -30px; width: 100px; height: 35px;
}

/* 90px'lik header'ın altına tam oturması sağlandı */
.ae-user-pane {
    width: 260px; left: auto; right: 0;
    top: calc(100% + 23px);
    transform: translate(0, 15px);
    padding: 0 !important; overflow: hidden;
}
.ae-dropdown-trigger:hover .ae-user-pane { transform: translate(0, 0); }

.ae-up-header { background: #f8fafc; padding: 20px; border-bottom: 1px solid #e2e8f0; display: flex; flex-direction: column; }
.ae-up-header strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 800; color: #0f172a; }
.ae-up-header span { font-size: 12px; color: #64748b; }

.ae-up-links { display: flex; flex-direction: column; padding: 12px 0; }
.ae-up-links a { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: #475569; font-size: 14px; font-weight: 600; text-decoration: none; transition: all 0.2s ease; }
.ae-up-links a i { font-size: 16px; color: #94a3b8; width: 20px; text-align: center; transition: color 0.2s ease; }
.ae-up-links a:hover { background: #f1f5f9; color: #0ea5e9; padding-left: 24px; }
.ae-up-links a:hover i { color: #0ea5e9; }

.ae-up-footer { padding: 12px; border-top: 1px solid #e2e8f0; background: #fafafa; }
.ae-up-footer button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; background: #fff0f2; border: 1px solid #ffe4e6; color: #e11d48; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; font-weight: 800; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; }
.ae-up-footer button:hover { background: #e11d48; color: #ffffff; }

/* --- HAMBURGERÄBUTONU (Animated Bars → X) --- */
.ae-mobile-btn {
    display: none; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px; padding: 0;
    align-items: center; justify-content: center;
}
.ae-hamburger {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    width: 24px; height: 20px; position: relative;
}
.ae-hamburger span {
    display: block; width: 100%; height: 2px; background: #334155; border-radius: 2px;
    position: absolute; left: 0; transition: all 0.3s ease;
}
.ae-hamburger span:nth-child(1) { top: 0; }
.ae-hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.ae-hamburger span:nth-child(3) { bottom: 0; }

/* Hamburger → X animasyonu */
.ae-mobile-btn.is-active .ae-hamburger span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.ae-mobile-btn.is-active .ae-hamburger span:nth-child(2) { opacity: 0; }
.ae-mobile-btn.is-active .ae-hamburger span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ==========================================================================
   MOBİL MENÜ — 1200px ALTI
   ========================================================================== */
@media (max-width: 1200px) {
    .ae-main-nav { display: none; }
    .ae-tool-divider { display: none; }
    .ae-tool-store span { display: none; }
    .ae-tool-store { width: 44px; padding: 0; justify-content: center; }
    .ae-mobile-btn { display: flex; margin-left: 8px; }

    .ae-header-container { height: 80px; padding: 0 16px; }
    .ae-logo-wrapper { width: 140px; min-width: 140px; height: 64px; }
    .ae-logo-img { max-height: 54px; }
    .ae-mega-pane { top: 80px; }

    /* --- Mobil Menü Full-screen Overlay --- */
    .ae-main-nav.mobile-open {
        display: flex !important;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh; height: 100dvh;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        z-index: 100001;
        padding: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        animation: mobMenuSlideIn 0.3s ease;
    }

    @keyframes mobMenuSlideIn {
        from { opacity: 0; transform: translateX(100%); }
        to { opacity: 1; transform: translateX(0); }
    }

    /* --- Kapatma Barı (Logo + X) --- */
    .mob-close-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #e2e8f0;
        flex-shrink: 0;
        background: #ffffff;
        position: sticky;
        top: 0;
        z-index: 2;
    }
    .mob-close-logo { height: 44px; width: auto; }
    .mob-close-btn {
        width: 44px; height: 44px; border-radius: 12px;
        border: 1px solid #e2e8f0; background: #f8fafc;
        display: flex; align-items: center; justify-content: center;
        font-size: 20px; color: #475569; cursor: pointer;
        transition: all 0.2s ease;
    }
    .mob-close-btn:hover { background: #fee2e2; color: #ef4444; border-color: #fca5a5; }

    /* --- Menü Linkleri (Düz) --- */
    .ae-main-nav.mobile-open > .ae-nav-item {
        display: flex;
        align-items: center;
        font-size: 16px;
        font-weight: 700;
        padding: 16px 24px;
        color: #0f172a;
        border-bottom: 1px solid #f1f5f9;
        min-height: 52px;
        text-decoration: none;
    }
    .ae-main-nav.mobile-open > .ae-nav-item:active { background: #f1f5f9; }

    /* --- Dropdown Trigger (Accordion) --- */
    .ae-main-nav.mobile-open > .ae-dropdown-trigger {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        border-bottom: 1px solid #f1f5f9;
    }
    .ae-main-nav.mobile-open > .ae-dropdown-trigger > .ae-nav-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        font-size: 16px;
        font-weight: 700;
        padding: 16px 24px;
        color: #0f172a;
        min-height: 52px;
        text-decoration: none;
    }
    .ae-main-nav.mobile-open > .ae-dropdown-trigger > .ae-nav-item .ae-drop-icon {
        font-size: 12px; color: #94a3b8;
        transition: transform 0.3s ease;
    }
    .ae-main-nav.mobile-open > .ae-dropdown-trigger.mob-open > .ae-nav-item .ae-drop-icon {
        transform: rotate(180deg); color: #0ea5e9;
    }

    /* --- Mega Pane → Accordion İçerik --- */
    .ae-main-nav.mobile-open .ae-mega-pane {
        position: static !important;
        transform: none !important;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        pointer-events: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    }
    /* Accordion açık durum */
    .ae-main-nav.mobile-open .ae-dropdown-trigger.mob-open .ae-mega-pane {
        opacity: 1;
        visibility: visible;
        max-height: 2000px;
        pointer-events: auto;
        padding: 8px 16px 16px !important;
        background: #f8fafc;
        border-top: 1px solid #e2e8f0;
    }

    /* Hover davranışını mobilde devre dışı bırak */
    .ae-main-nav.mobile-open .ae-dropdown-trigger:hover .ae-mega-pane {
        opacity: 0; visibility: hidden; max-height: 0; pointer-events: none;
    }
    .ae-main-nav.mobile-open .ae-dropdown-trigger.mob-open:hover .ae-mega-pane {
        opacity: 1; visibility: visible; max-height: 2000px; pointer-events: auto;
    }

    /* Dropdown invisible bridge kaldır (mobilde gereksiz) */
    .ae-main-nav.mobile-open .ae-dropdown-trigger::after { display: none; }

    /* --- Kurumsal Pano → Mobil Stack --- */
    .ae-main-nav.mobile-open .ae-mega-corp { width: 100% !important; }
    .ae-main-nav.mobile-open .ae-corp-layout { flex-direction: column; }
    .ae-main-nav.mobile-open .ae-corp-brand-panel { display: none; }
    .ae-main-nav.mobile-open .ae-corp-grid {
        width: 100%; grid-template-columns: 1fr;
        padding: 8px 0; gap: 4px;
    }
    .ae-main-nav.mobile-open .ae-c-card {
        padding: 12px 8px; border-radius: 12px;
    }
    .ae-main-nav.mobile-open .ae-c-card:hover { transform: none; }

    /* --- Bilgi Merkezi Pano → Mobil Stack --- */
    .ae-main-nav.mobile-open .ae-mega-info { width: 100% !important; padding: 0 !important; }
    .ae-main-nav.mobile-open .ae-info-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .ae-main-nav.mobile-open .ae-b-card {
        padding: 12px; border-radius: 12px;
    }
    .ae-main-nav.mobile-open .ae-b-card:hover { transform: none; }
    .ae-main-nav.mobile-open .ae-highlight-col { order: -1; }
    .ae-main-nav.mobile-open .ae-sss-box { padding: 20px 16px; border-radius: 16px; }
}

/* --- 768px altı: Daha kompakt header --- */
@media (max-width: 768px) {
    .ae-header-container { height: 70px; padding: 0 12px; }
    .ae-logo-wrapper { width: 120px; min-width: 120px; height: 56px; }
    .ae-logo-img { max-height: 46px; }
    .ae-tool-box { width: 40px; height: 40px; font-size: 16px; border-radius: 12px; }
    .ae-mobile-btn { width: 40px; height: 40px; }
    .ae-tools-wrapper { gap: 8px; }
}

/* --- 480px altı: Minimum padding --- */
@media (max-width: 480px) {
    .ae-header-container { padding: 0 10px; }
    .ae-logo-wrapper { width: 100px; min-width: 100px; }
    .ae-logo-img { max-height: 40px; }
    .ae-tool-box { width: 38px; height: 38px; font-size: 15px; }
    .ae-cart-badge { height: 18px; min-width: 18px; font-size: 9px; top: -4px; right: -4px; }
}

/* ==========================================================================
   AE ULTRA PREMIUM FOOTER (BARKOD SİLÜETİ, SARI AI BADGE & YTG LOGO FIX)
   ========================================================================== */

/* Footer'ı sayfa altına yapıştır (flex body ile çalışır) */
#footer-placeholder {
    margin-top: auto;
}

.ae-premium-footer {
    background: #0f172a; /* Çok derin lacivert/siyah */
    color: #94a3b8;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid #1e293b;
    /* Container breakout — footer her zaman tam genişlikte */
    width: 100vw;
    max-width: 100vw !important;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Sonsuz Barkod Silüeti (Sadece CSS ile) */
.ae-barcode-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: repeating-linear-gradient(
        90deg,
        #ffffff, #ffffff 2px,
        transparent 2px, transparent 8px,
        #ffffff 8px, #ffffff 12px,
        transparent 12px, transparent 15px,
        #ffffff 15px, #ffffff 17px,
        transparent 17px, transparent 25px,
        #ffffff 25px, #ffffff 30px,
        transparent 30px, transparent 40px
    );
    opacity: 0.025; /* Belli belirsiz, premium his */
    z-index: 1;
    pointer-events: none;
    /* Aşağıdan ve yukarıdan yumuşakça kaybolması için maske */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

/* Dekoratif Aydınlatmalar (Ambient Glow) */
.ae-footer-glow-left {
    position: absolute; top: -100px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none; z-index: 2;
}
.ae-footer-glow-right {
    position: absolute; bottom: -150px; right: -50px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none; z-index: 2;
}

.ae-footer-top {
    max-width: 1450px; margin: 0 auto; padding: 80px 24px 60px 24px;
    position: relative; z-index: 10;
}

.ae-footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px;
}

/* 1. Kolon: Marka (Hizalama Düzeltildi) */
.ae-f-brand p {
    margin: 0 0 24px 0;
    max-width: 460px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    line-height: 1.75;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.ae-f-brand p strong {
    color: #ffffff;
    font-weight: 800;
}

.ae-f-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.ae-f-logo {
    display: block;
    width: 240px;
    max-width: 100%;
    height: auto;
    margin-bottom: 24px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-sizing: border-box;
    object-fit: contain;
    filter: none;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.ae-f-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}
.ae-f-brand p {
    font-size: 14px; line-height: 1.7; margin: 0 0 24px 0;
    color: #cbd5e1; max-width: 320px;
}
.ae-f-socials { display: flex; gap: 12px; }
.ae-f-social {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1; display: flex; align-items: center; justify-content: center;
    font-size: 16px; text-decoration: none; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ae-f-social:hover {
    background: #0ea5e9; border-color: #0ea5e9; color: #ffffff;
    transform: translateY(-4px); box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
}

/* 2 & 3. Kolonlar: Linkler */
.ae-f-links h4, .ae-f-contact h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #ffffff; font-size: 16px; font-weight: 800;
    margin-bottom: 24px; position: relative; padding-bottom: 12px;
}
.ae-f-links h4::after, .ae-f-contact h4::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 30px; height: 3px; background: #0ea5e9; border-radius: 4px;
}
.ae-f-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ae-f-links a {
    color: #94a3b8; text-decoration: none; font-size: 14px; font-weight: 500;
    transition: all 0.3s ease; display: inline-flex; align-items: center;
}
.ae-f-links a::before {
    content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    font-size: 10px; margin-right: 8px; color: #334155; transition: all 0.3s ease;
}
.ae-f-links a:hover { color: #38bdf8; transform: translateX(6px); }
.ae-f-links a:hover::before { color: #0ea5e9; }

/* 4. Kolon: İletişim */
.ae-f-contact ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.ae-f-contact li { display: flex; align-items: flex-start; gap: 16px; }
.ae-fc-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(14, 165, 233, 0.1); color: #38bdf8;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0; border: 1px solid rgba(14, 165, 233, 0.2);
}
.ae-fc-text { display: flex; flex-direction: column; gap: 4px; }
.ae-fc-text strong { font-size: 13px; font-weight: 700; color: #e2e8f0; font-family: 'Plus Jakarta Sans', sans-serif;}
.ae-fc-text span { font-size: 13px; line-height: 1.5; color: #94a3b8; }
.ae-fc-text a { color: #94a3b8; text-decoration: none; font-size: 14px; font-weight: 600; transition: color 0.2s; }
.ae-fc-text a:hover { color: #38bdf8; }

/* --- Alt Bar (Payment & Copyright) --- */
.ae-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #0b1121; padding: 24px 0; position: relative; z-index: 10;
}
.ae-fb-container {
    max-width: 1450px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}

/* Ödeme Logoları */
.ae-fb-payment { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.ae-pay-trust { display: flex; align-items: center; gap: 12px; }
.ae-pay-iyzico { height: 20px; filter: brightness(0) invert(1); opacity: 0.9; }
.ae-pay-trust span { font-size: 12px; color: #64748b; border-left: 1px solid #334155; padding-left: 12px; }

.ae-pay-cards { display: flex; align-items: center; gap: 10px; }
.ae-pay-cards img { height: 22px; opacity: 0.7; filter: grayscale(100%); transition: all 0.3s ease; }
.ae-pay-cards img:hover { opacity: 1; filter: grayscale(0%); transform: scale(1.05); }
.troy-logo { height: 18px !important; }

/* Telif ve Krediler */
.ae-fb-copy-area { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ae-copyright { font-size: 13px; color: #64748b; margin: 0; }
.ae-fb-credits { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #64748b; }

/* YTG Design Logo Görünürlüğü Düzeltildi */
.ae-fb-credits img {
    height: 18px; /* Biraz daha büyütüldü */
    opacity: 0.8;
    filter: brightness(0) invert(1); /* Karanlık zeminde görünmesi için beyaza çevrildi */
    transition: opacity 0.3s;
}
.ae-fb-credits a:hover img { opacity: 1; }
.ae-credit-divider { width: 1px; height: 14px; background: #334155; }

/* AI Powered Sarı Renk */
.ae-ai-badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
    background: rgba(234, 179, 8, 0.1); /* Sarımtırak arkaplan */
    color: #eab308; /* Altın Sarısı */
    border-radius: 6px; font-weight: 800; font-size: 10px;
    border: 1px solid rgba(234, 179, 8, 0.25);
}

/* Mobil Uyumluluk */
@media (max-width: 1024px) {
    .ae-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .ae-fb-container { flex-direction: column; text-align: center; justify-content: center; }
    .ae-fb-payment { justify-content: center; }
    .ae-fb-copy-area { align-items: center; }
}

@media (max-width: 640px) {
    .ae-footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .ae-f-brand { align-items: center; text-align: center; }
    .ae-f-brand p { max-width: 100%; }
    .ae-pay-trust { flex-direction: column; border-left: none; padding-left: 0; border-bottom: 1px solid #334155; padding-bottom: 10px; }
    .ae-pay-trust span { border-left: none; padding-left: 0; }
}

@media (max-width: 640px) {
    .ae-f-logo {
        width: 210px;
        padding: 8px 10px;
    }
}
