/* =====================================================================
   📁 Dosya: /assets/css/menu-footer.css — FINAL SÜRÜM
   🎨 Amaç:
      AllImageLab ana sayfa UI tasarımını oluşturur.
      Header, Mega Menü, Hero, Grid, Promo, Footer ve mobil tasarımı içerir.

   ✔ Tek satır HEADER için optimize edildi
   ✔ Mega menu gap fix + hover stabilizasyonu
   ✔ 9 noktali apps menü eklendi
   ✔ Mobil menü + hamburger tam uyumlu
   ✔ Dark/Light uyumu tamamlandı
   ===================================================================== */
html {
    overflow-y: scroll;
}


/* =====================================================================
   TEMA RENK PALETİ — Global değişkenler
   ===================================================================== */
:root {
    --dark-bg: #0C1B33;
    --primary-blue: #3577FF;
    --mint: #1DD1A1;
    --white: #FFFFFF;
    --text-dark: #0C1B33;
    --text-light: #7A869F;
	
    /* 🔧 Legal Sayfaları İçin Eklenen Değişkenler */
    --heading-color: #0C1B33; /* Açık mod başlık rengi */
    --text-color: #4a4a4a;    /* Açık mod metin rengi */
    --muted-text: #888888;    /* Açık mod silik metin rengi */
	
}

/* =====================================================================
    Class ekle + CSS ile gizle ➜ BLOĞU CSS İLE GÖRÜNMEZ YAP
   ===================================================================== */
.is-hidden-nt {
	display: none !important;
}


/* =====================================================================
   BODY — Tema başlangıcı
   ===================================================================== */
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: var(--white);
    color: var(--text-dark);
    transition: background .25s ease, color .25s ease;
}

body.dark {
    background: var(--dark-bg);
    color: var(--white);
}


/* =====================================================================
   HEADER — TEK SATIR YENİ DÜZEN
   ===================================================================== */
.topbar {
    min-height: 84px; /* Menünün minimum yüksekliğini korur */
    padding: 8px 24px; /* ⬅️ Dikey padding sıfırlandı */
    position: sticky;
	width: 100%;
    box-sizing: border-box;
	contain: layout size style;
    top: 0;
    z-index: 2000;
    border-bottom: 1px solid #e2e2e2;
    background: var(--white);
    transition: background .25s ease, border-color .25s ease, padding .25s ease, box-shadow .25s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.topbar.shrink {
    padding: 8px 24px; /* ⬅️ **ÇÖZÜM** Olarak BU PADDING'i YÜKSEKLİKLE OYNAYARAK SABİT TUTUN. */
    height: 68px; /* ⬅️ Menünün yüksekliği değiştiği için kayma oluyor. */
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

body.dark .topbar {
    background: #0B1427;
    border-bottom-color: #182645;
}


/* =====================================================================
   HEADER YERLEŞİM — LOGO + MENÜ + UTILITIES
   ===================================================================== */
.header-container {
    width: 100%;
	margin: 0 auto; /* Ortalamak için */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo-column {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 200px;
    height: auto;
}

@media (max-width: 600px) {
    .logo-icon {
        width: 150px;
    }
}


/* =====================================================================
   ANA NAV (TEK SATIR)
   ===================================================================== */
.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: nowrap;
    flex-grow: 1;
    justify-content: center;
}

/* Menü başlıkları */
.menu-item {
    position: relative;
    font-size: 15px;
    cursor: pointer;
    padding: 10px 8px;
    color: var(--text-dark);
    transition: color .2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

body.dark .menu-item {
    color: var(--white);
}

.menu-item:hover {
    color: var(--primary-blue);
}

body.dark .menu-item:hover {
    color: var(--mint);
}
/* ============================================================
   🔗 ANA MENÜ → <a> linkleri span gibi dursun (alt çizgisiz & hover)
============================================================ */
.main-nav .menu-item > span > a {
    text-decoration: none !important;
    color: inherit !important;
    font-weight: inherit;
    font-size: inherit;
    display: inline-block;
    padding: 0;
    transition: color .25s ease;
}

/* Hover efektini geri getir */
.main-nav .menu-item:hover > span > a {
    color: var(--primary-blue);
}

body.dark .main-nav .menu-item:hover > span > a {
    color: var(--mint);
}




/* =====================================================================
   UTILITIES — Dil, Tema, 9 Nokta Menüsü
   ===================================================================== */
.utilities {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

/* DİL */
.lang-box {
    display: flex;
    gap: 6px;
}

.lang-box span {
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    transition: color .2s ease;
}

.lang-box .active {
    color: var(--primary-blue);
    font-weight: 600;
}

body.dark .lang-box .active {
    color: var(--mint);
}

/* Tema butonu */
.theme-btn {
    font-size: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform .2s ease;
}

.theme-btn:hover {
    transform: scale(1.12);
}

body.dark .theme-btn {
    color: var(--mint);
}


/* =====================================================================
   9 NOKTA APPS MENÜ — iloveimg Tarzı
   ===================================================================== */
.apps-menu-wrapper {
    position: relative;
}

.apps-button {
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    user-select: none;
}

.apps-menu-panel {
    position: absolute;
    top: 38px;
    right: 0;
    width: 420px;
    background: var(--white);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border: 1px solid #e5e9f2;
    display: none;
    z-index: 4000;
}

body.dark .apps-menu-panel {
    background: #0F2244;
    border-color: #1d305a;
}

/* Açıkken */
.apps-menu-panel.open {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.apps-col h4 {
    margin-bottom: 12px;
    font-size: 15px;
}

.apps-col a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    background: #f7f9fc;
    border: 1px solid #e5e9f2;
    margin-bottom: 8px;
    font-size: 14px;
    transition: .2s ease;
}

.apps-col a:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

body.dark .apps-col a {
    background: #152a52;
    border-color: #25457c;
    color: #dde7ff;
}

body.dark .apps-col a:hover {
    background: var(--mint);
    border-color: var(--mint);
    color: var(--dark-bg);
}


/* =====================================================================
   MEGA MENÜ — 2 SÜTUN, HOVER ile açılır
   ===================================================================== */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 520px;
    max-width: 90vw;
    background: var(--white);
    border-radius: 14px;
    padding: 26px;
    display: none;
    box-shadow: 0 12px 42px rgba(0,0,0,0.14);
    border: 1px solid #e5e9f2;
    z-index: 3000;
}

body.dark .mega-menu {
    background: #0F2244;
    border-color: #1d305a;
}

.menu-item.hover-open .mega-menu {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 16px;
}

.mega-menu a {
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    background: #f7f9fc;
    border: 1px solid #e5e9f2;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: .2s ease;
}

.mega-menu a:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

body.dark .mega-menu a {
    background: #152a52;
    border-color: #25457c;
    color: #dde7ff;
}

body.dark .mega-menu a:hover {
    background: var(--mint);
    border-color: var(--mint);
    color: var(--dark-bg);
}


/* =====================================================================
   MOBİL MENÜ (Hamburger + Slide Left)
   ===================================================================== */
.mobile-nav {
    display: none;
}

@media (max-width:900px) {

    /* Desktop NAV gizlenir */
    .main-nav {
        display: none !important;
    }

    .utilities {
        display: none !important;
    }

    .mobile-nav {
        display: block;
    }

    /* Hamburger */
    .mobile-hamburger {
        width: 32px;
        height: 24px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }

    .mobile-hamburger span {
        height: 4px;
        border-radius: 4px;
        background: #0C1B33;
    }

    body.dark .mobile-hamburger span {
        background: var(--mint);
    }

    /* Slide Left Menü */
    .mobile-menu-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        height: 100vh;
        background: var(--white);
        padding: 15px 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        box-shadow: 4px 0 20px rgba(0,0,0,0.20);
        transform: translateX(-100%);
        transition: transform .35s ease;
        z-index: 5001;
    }

    .mobile-menu-panel.open {
        transform: translateX(0);
    }

    .mobile-menu-panel a {
        padding: 8px 0;
        border-bottom: 1px solid #ddd;
        text-decoration: none;
        color: #0C1B33;
    }

    /* Overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.35);
        backdrop-filter: blur(1px);
        z-index: 4000;
        display: none;
    }

    .mobile-overlay.active {
        display: block;
    }

    /* Dark mode - mobile */
    body.dark .mobile-menu-panel {
        background: #0B1427;
        box-shadow: 4px 0 20px rgba(0,0,0,0.45);
    }

    body.dark .mobile-menu-panel a {
        color: #d8e2ff;
        border-bottom-color: #233455;
    }
}


/*  MOBİL MENÜ İÇİNDEKİ UTILITIES (Tema/Dil)  */
/* Tema Değiştirme Butonu */
.mobile-theme-btn {
    width: 100%;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #e2e2e2; /* Light mode kenarlık */
    border-radius: 8px;
    background: #f7f7f7; /* Light mode arka plan */
    color: var(--text-dark, #0C1B33);
    transition: all .2s ease;
    margin-bottom: 10px; /* Dil kutusu ile arasına boşluk */
}
.mobile-theme-btn:hover {
    background: #e2e2e2;
}
/* Dil Seçme Kutusu (Select) */
.mobile-lang-box {
    width: 100%;
}
.mobile-lang-box select {
    width: 100%;
    padding: 12px 10px;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #f7f7f7;
    color: var(--text-dark, #0C1B33);

}

/*  🌙 DARK MODE UYUMU (body.dark aktif olduğunda) */

body.dark .mobile-theme-btn,
body.dark .mobile-lang-box select {
    border-color: #233455;
    background: #15243f;
    color: var(--white, #FFFFFF);
}
body.dark .mobile-theme-btn:hover {
    background: #182c50;
}
body.dark .mobile-lang-box select {
    /* Dark mode için ok simgesini beyaza çevirme */
}



/* =====================================================================
   FOOTER (DOKUNULMADI)
   ===================================================================== */

.footer-gradient {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #ff3366, #ff8a00, #faff00, #00e676, #00b0ff, #aa00ff);
}

.footer {
    padding: 30px 8% 0;
    background: #f7f9fc;
    color: var(--text-dark);
}

body.dark .footer {
    background: #0B1A30;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 19px;
    margin-bottom: 18px;
}

.footer-col a {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: .25s;
}

.footer-col a:hover {
    color: var(--primary-blue);
}

body.dark .footer-col a {
    color: #C8D2E3;
}

body.dark .footer-col a:hover {
    color: var(--mint);
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: repeat(1, 1fr);
        text-align: center;
    }
}

.footer-gradient-alt {
	width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff4d4d, #ff892e, #ffce3c, #4cd96d, #3ccbff, #4d55ff, #c243ff);
    margin-top: 40px;
}

.footer-bottom-bar {
    width: 100%;
    margin: 0;
    background: #0b0f18;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
}

.footer-bottom-bar select {
    background: #111623;
    color: #d1d5e0;
    border: 1px solid #2a3243;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 14px;
}

.footer-copy {
    color: #c9cedb;
    font-size: 14px;
}

.footer-links a {
    color: #c9cedb;
    font-size: 14px;
    margin-left: 18px;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-links a:hover {
    color: #7ab1ff;
}

@media (max-width: 780px) {
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a {
        display: inline-block;
        margin: 6px 10px;
    }
}



.mega-menu a.disabled {
    opacity: 0.5;
    pointer-events: none; /* Tıklanamaz hale getirir */
    cursor: not-allowed;
    position: relative;
}
.mega-menu a.disabled::after {
    /* content: "(Yakında)"; */
    font-size: 11px;
    margin-left: 4px;
    opacity: 0.8;
}
.apps-col a.disabled {
    opacity: 0.5;
    pointer-events: none; /* Tıklanamaz hale getirir */
    cursor: not-allowed;
    position: relative;
}
.apps-col a.disabled::after {
    /* content: "(Yakında)"; */
    font-size: 11px;
    margin-left: 4px;
    opacity: 0.8;
}



/* ============================================================
   ⚡ CREDIT PILL (HEADER)
============================================================ */
.credit-pill-wrapper {
    display: flex;
    align-items: center;
    margin-left: 14px;
}

.credit-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, #1f6fff, #3aa0ff);
    color: #fff;
    transition: all .25s ease;
    white-space: nowrap;
}

.credit-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* 🟡 LOW */
.credit-pill.warning {
    background: linear-gradient(135deg, #ffb703, #ff9800);
    color: #111;
}

/* 🔴 EMPTY */
.credit-pill.danger {
    background: linear-gradient(135deg, #ff3b3b, #c62828);
}

/* ⭐ UPGRADE */
.credit-pill.upgrade {
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
}

/* 🌙 DARK MODE */
body.dark .credit-pill {
    box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset;
}

/* 📱 MOBİL */
@media (max-width: 900px) {
    .credit-pill-wrapper {
        margin-left: 6px;
    }
    .credit-pill {
        font-size: 12px;
        padding: 5px 10px;
    }
}



