/* assets/css/navigation.css */

/* ===================================================
   NAVIGATION THEME SYSTEM
   - Öncelik: body.dark / body.light
   - Alternatif: [data-theme="dark|light"], .theme-dark/.theme-light
   =================================================== */

:root {
    /* Brand */
    --nav-brand-blue: #004990;
    --nav-brand-red: #b32017;
    --nav-accent-sky: #38bdf8;

    /* Dark theme */
    --nav-bg-1: rgba(0, 12, 40, .96);
    --nav-bg-2: rgba(0, 34, 90, .97);
    --nav-border: rgba(15, 23, 42, .95);
    --nav-shadow: 0 10px 28px rgba(0, 0, 0, .55);

    --nav-link: #e5f0ff;
    --nav-link-hover: #ffffff;

    --nav-pill-bg: rgba(15, 23, 42, .92);
    --nav-pill-border: rgba(148, 163, 184, .60);
    --nav-pill-shadow: 0 6px 18px rgba(0, 0, 0, .50);

    --nav-dd-bg: rgba(15, 23, 42, .98);
    --nav-dd-border: rgba(148, 163, 184, .45);
    --nav-dd-shadow: 0 20px 44px rgba(15, 23, 42, .85);
    --nav-dd-item: #e5e7eb;

    --nav-mobile-bg: rgba(15, 23, 42, .96);
    --nav-mobile-border: rgba(31, 41, 55, .90);
    --nav-mobile-shadow: 0 16px 40px rgba(0, 0, 0, .80);

    --nav-toggler-bg: rgba(15, 23, 42, .85);
    --nav-toggler-border: rgba(148, 163, 184, .70);
    --nav-toggler-shadow: 0 8px 20px rgba(0, 0, 0, .55);

    --nav-glow: radial-gradient(ellipse at center, rgba(15, 23, 42, .45) 0%, rgba(15, 23, 42, 0) 70%);
}

/* ===================================================
   LIGHT THEME (Orange palette – home/search uyumlu)
   =================================================== */
body.light,
html[data-theme="light"],
body[data-theme="light"],
.theme-light {

    /* Brand / Accent */
    --nav-brand-blue: #f97316;
    /* orange-500 */
    --nav-brand-red: #ea580c;
    /* orange-600 */
    --nav-accent-sky: #fb923c;
    /* orange-400 */

    /* Navbar surface */
    --nav-bg-1: rgba(255, 247, 237, 0.94);
    /* orange-50 */
    --nav-bg-2: rgba(255, 237, 213, 0.96);
    /* orange-100 */
    --nav-border: rgba(15, 23, 42, 0.10);
    --nav-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);

    /* Links */
    --nav-link: #7c2d12;
    /* orange-900 */
    --nav-link-hover: #9a3412;
    /* orange-800 */

    /* Pills (lang, toggler bg) */
    --nav-pill-bg: rgba(255, 255, 255, 0.85);
    --nav-pill-border: rgba(249, 115, 22, 0.25);
    --nav-pill-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);

    /* Dropdown */
    --nav-dd-bg: rgba(255, 255, 255, 0.96);
    --nav-dd-border: rgba(15, 23, 42, 0.10);
    --nav-dd-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
    --nav-dd-item: #0f172a;

    /* Mobile panel */
    --nav-mobile-bg: rgba(255, 255, 255, 0.94);
    --nav-mobile-border: rgba(15, 23, 42, 0.12);
    --nav-mobile-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);

    /* Toggler */
    --nav-toggler-bg: rgba(255, 255, 255, 0.85);
    --nav-toggler-border: rgba(249, 115, 22, 0.30);
    --nav-toggler-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);

    /* Glow */
    --nav-glow: radial-gradient(ellipse at center,
            rgba(249, 115, 22, 0.25) 0%,
            rgba(249, 115, 22, 0.00) 70%);
}

/* ===================================================
   NAVBAR - STRUCTURE
   =================================================== */

.navbar {
    position: relative;
    z-index: 1100;
}

.start-header,
.start-style,
.navigation-wrap .navbar {
    overflow: visible !important;
}

.start-header,
.start-style {
    transform: none !important;
}

.navigation-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;

    background: linear-gradient(90deg, var(--nav-bg-1), var(--nav-bg-2));
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--nav-shadow);

    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);

    padding: 6px 0;

    transition: background .22s ease, box-shadow .22s ease, border-color .22s ease;
}

/* Üstte ince gradient şerit */
.navigation-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--nav-brand-blue) 0%, var(--nav-brand-red) 50%, var(--nav-accent-sky) 100%);
    opacity: .95;
    z-index: -1;
}

/* Alt soft glow */
.navigation-wrap::after {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: -18px;
    height: 28px;
    background: var(--nav-glow);
    pointer-events: none;
    z-index: -1;
}

/* Navbar içi */
.navigation-wrap .navbar {
    padding-left: 0;
    padding-right: 0;
    background: transparent !important;
}

/* Logo */
.navigation-wrap .navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navigation-wrap .navbar-brand img {
    max-height: 42px;
    width: auto;
    height: auto;
}

@media (max-width: 575.98px) {
    .navigation-wrap .navbar-brand img {
        max-height: 36px;
    }
}

/* Nav main */
.navigation-wrap .navbar-nav.nav-main {
    margin-left: auto;
    align-items: center;
}

@media (min-width:768px) {
    .navigation-wrap .navbar-nav.nav-main {
        flex-direction: row;
        gap: 32px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .navigation-wrap .navbar-nav.nav-main>.nav-item {
        margin: 0;
    }
}

/* ===================================================
   NAV LINKS
   =================================================== */

body .navigation-wrap .navbar-nav .nav-link,
body .navigation-wrap .navbar-nav .nav-link:link,
body .navigation-wrap .navbar-nav .nav-link:visited {
    position: relative;
    color: var(--nav-link) !important;
    font-family: "Poppins", "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-shadow: none !important;
    padding: .35rem 0;
    text-decoration: none !important;
}

body .navigation-wrap .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--nav-accent-sky), var(--nav-brand-red));
    transition: width .22s ease-out;
}

body .navigation-wrap .navbar-nav .nav-link:hover,
body .navigation-wrap .navbar-nav .nav-link:focus {
    color: var(--nav-link-hover) !important;
}

body .navigation-wrap .navbar-nav .nav-link:hover::after,
body .navigation-wrap .navbar-nav .nav-link:focus::after {
    width: 100%;
}

body .navigation-wrap .navbar-nav .active>.nav-link,
body .navigation-wrap .navbar-nav .nav-item.active>.nav-link {
    color: var(--nav-link-hover) !important;
}

body .navigation-wrap .navbar-nav .active>.nav-link::after,
body .navigation-wrap .navbar-nav .nav-item.active>.nav-link::after {
    width: 100%;
}

/* Hakkımızda spacing */
.navigation-wrap .nav-item.nav-about .nav-link {
    padding-left: .35rem;
    padding-right: .35rem;
}

/* ===================================================
   WHATSAPP BUTTON
   =================================================== */

.navigation-wrap .nav-item.whatsapp-button-nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navigation-wrap .whatsapp-btn-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;

    padding: .40rem 1.55rem;
    border-radius: 999px;

    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, .28) 0, transparent 54%),
        linear-gradient(135deg, #25D366 0%, #1ebe57 50%, #128c7e 100%);
    border: none;

    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    font-family: "Poppins", "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;

    box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
}

.navigation-wrap .whatsapp-btn-v2 i {
    font-size: 16px;
}

.navigation-wrap .whatsapp-btn-v2:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
    filter: brightness(1.04);
}

.navigation-wrap .whatsapp-btn-v2:active {
    transform: translateY(0) scale(.99);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .40);
}

/* ===================================================
   LANGUAGE DROPDOWN
   =================================================== */

.navigation-wrap .nav-item.dropdown .dropdown-toggle::after {
    display: none;
}

.navigation-wrap .nav-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .25rem .55rem;
    border-radius: 999px;

    background: var(--nav-pill-bg);
    border: 1px solid var(--nav-pill-border);
    box-shadow: var(--nav-pill-shadow);

    transition: background .16s ease, box-shadow .16s ease, border-color .16s ease, transform .16s ease;
}

.navigation-wrap .nav-item.dropdown:hover .nav-lang-toggle,
.navigation-wrap .nav-item.dropdown:focus-within .nav-lang-toggle {
    transform: translateY(-1px);
}

/* Bayrak */
.navigation-wrap .nav-lang-toggle .flag-icon {
    width: 18px;
    height: 12px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
}

/* Dil label */
.navigation-wrap .nav-lang-toggle .lang-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--nav-link);
}

.navigation-wrap .nav-lang-toggle .lang-caret {
    font-size: 9px;
    margin-left: 2px;
    color: rgba(147, 197, 253, .95);
}

/* Dropdown */
.navigation-wrap .dropdown-menu {
    background: var(--nav-dd-bg);
    border-radius: 18px;
    border: 1px solid var(--nav-dd-border);
    box-shadow: var(--nav-dd-shadow);
    padding: 6px;
    min-width: 190px;
    margin-top: 8px;
}

.navigation-wrap .dropdown-item {
    color: var(--nav-dd-item) !important;
    font-family: "Poppins", "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 13px;
    padding: 9px 14px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.navigation-wrap .dropdown-item .flag-icon {
    margin-right: 8px;
}

body.light .navigation-wrap .dropdown-item:hover,
html[data-theme="light"] .navigation-wrap .dropdown-item:hover,
body[data-theme="light"] .navigation-wrap .dropdown-item:hover,
.theme-light .navigation-wrap .dropdown-item:hover {
    background: rgba(11, 95, 174, .10) !important;
}

body:not(.light) .navigation-wrap .dropdown-item:hover,
html[data-theme="dark"] .navigation-wrap .dropdown-item:hover,
body[data-theme="dark"] .navigation-wrap .dropdown-item:hover,
.theme-dark .navigation-wrap .dropdown-item:hover {
    background: rgba(59, 130, 246, .16) !important;
}

/* ===================================================
   FANCY TOGGLER
   =================================================== */

.fancy-toggler {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 12px;
    border-radius: 16px;

    background: var(--nav-toggler-bg);
    border: 1px solid var(--nav-toggler-border);
    box-shadow: var(--nav-toggler-shadow);

    -webkit-backdrop-filter: blur(12px) saturate(150%);
    backdrop-filter: blur(12px) saturate(150%);

    transition: box-shadow .12s ease, transform .12s ease, background .12s ease;
}

.fancy-toggler:hover {
    transform: translateY(-1px);
}

.tog-bars {
    position: relative;
    width: 22px;
    height: 16px;
    display: inline-block;
}

.tog-bars i {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--nav-accent-sky), var(--nav-brand-red));
    border-radius: 999px;
    transition: transform .28s cubic-bezier(.2, .9, .3, 1), opacity .2s ease, top .28s;
}

.tog-bars i:nth-child(1) {
    top: 0;
}

.tog-bars i:nth-child(2) {
    top: 7px;
}

.tog-bars i:nth-child(3) {
    top: 14px;
}

.navbar-toggler[aria-expanded="true"] .tog-bars i:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .tog-bars i:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .tog-bars i:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

/* ===================================================
   MOBILE MENU PANEL
   =================================================== */

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--nav-mobile-bg);
        border: 1px solid var(--nav-mobile-border);
        border-radius: 18px;
        padding: 14px 12px;
        margin-top: 10px;
        box-shadow: var(--nav-mobile-shadow);
    }

    .navigation-wrap .navbar-nav.nav-main {
        gap: 0;
        align-items: flex-start;
    }

    .navigation-wrap .navbar-nav .nav-link,
    .navigation-wrap .navbar-nav .nav-link:link,
    .navigation-wrap .navbar-nav .nav-link:visited {
        padding-top: .55rem;
        padding-bottom: .55rem;
    }

    .navigation-wrap .nav-item.whatsapp-button-nav {
        margin: .50rem 0;
        width: 100%;
    }

    .navigation-wrap .whatsapp-btn-v2 {
        width: 100%;
        justify-content: center;
    }

    .navigation-wrap .nav-lang-toggle {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ===================================================
   SCROLL/STATE COMPAT (var'larla)
   =================================================== */

.navigation-wrap.start-header,
.navigation-wrap.start-header.start-style,
.navigation-wrap.start-header.start-style.scroll-on,
body.dark .navigation-wrap.start-header,
body.hero-anime .navigation-wrap.start-header {
    background: linear-gradient(90deg, var(--nav-bg-1), var(--nav-bg-2)) !important;
    border-bottom: 1px solid var(--nav-border) !important;
    box-shadow: var(--nav-shadow) !important;
}

/* =========================================================
   LIGHT NAVBAR PREMIUM FIX (A Plan)
   Scope: only light mode navbar surface/shadow
   ========================================================= */
html.theme-light .navigation-wrap,
body.light .navigation-wrap,
.theme-light .navigation-wrap {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.12);
}

html.theme-light .navigation-wrap.start-style,
body.light .navigation-wrap.start-style,
.theme-light .navigation-wrap.start-style {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 56px rgba(2, 6, 23, 0.14);
}

html.theme-light .navigation-wrap .navbar-nav .nav-link:hover,
body.light .navigation-wrap .navbar-nav .nav-link:hover,
.theme-light .navigation-wrap .navbar-nav .nav-link:hover {
  background: rgba(249, 115, 22, 0.10);
}

html.theme-light .navigation-wrap .navbar-nav .nav-link.active,
html.theme-light .navigation-wrap .navbar-nav .nav-link[aria-current="page"],
body.light .navigation-wrap .navbar-nav .nav-link.active,
body.light .navigation-wrap .navbar-nav .nav-link[aria-current="page"],
.theme-light .navigation-wrap .navbar-nav .nav-link.active,
.theme-light .navigation-wrap .navbar-nav .nav-link[aria-current="page"] {
  background: linear-gradient(135deg, rgba(249,115,22,.18), rgba(234,88,12,.10));
  border-color: rgba(249,115,22,.22);
}

/* =========================================================
   FINAL LOCK — Light mode nav-link color must NOT turn white
   (EN ALTA)
   ========================================================= */

html.theme-light .navigation-wrap.scroll-on .navbar-nav .nav-link,
html.theme-light .navigation-wrap.start-style .navbar-nav .nav-link,
html.theme-light .navigation-wrap.start-header .navbar-nav .nav-link,
body.light .navigation-wrap.scroll-on .navbar-nav .nav-link,
body.light .navigation-wrap.start-style .navbar-nav .nav-link,
body.light .navigation-wrap.start-header .navbar-nav .nav-link {
    color: var(--nav-link) !important;
}

html.theme-light .navigation-wrap.scroll-on .navbar-nav .nav-link:hover,
html.theme-light .navigation-wrap.start-style .navbar-nav .nav-link:hover,
body.light .navigation-wrap.scroll-on .navbar-nav .nav-link:hover,
body.light .navigation-wrap.start-style .navbar-nav .nav-link:hover {
    color: var(--nav-link-hover) !important;
}

/* Active/current state de beyaza dönmesin */
html.theme-light .navigation-wrap.scroll-on .navbar-nav .active>.nav-link,
html.theme-light .navigation-wrap.scroll-on .navbar-nav .nav-link[aria-current="page"],
body.light .navigation-wrap.scroll-on .navbar-nav .active>.nav-link,
body.light .navigation-wrap.scroll-on .navbar-nav .nav-link[aria-current="page"] {
    color: var(--nav-link-hover) !important;
}

/* =========================================================
   ABSOLUTE FINAL NAV TEXT LOCK
   Navbar yazıları HER SAYFADA AYNI GÖRÜNSÜN
   Dark + Light + Scroll + Hero dahil
   ========================================================= */

/* 1️⃣ TÜM NAV LINKLER – font, kalınlık, aralık sabitle */
.navigation-wrap .navbar-nav .nav-link,
.navigation-wrap .navbar-nav .nav-link:link,
.navigation-wrap .navbar-nav .nav-link:visited,
.navigation-wrap.scroll-on .navbar-nav .nav-link,
.navigation-wrap.start-style .navbar-nav .nav-link,
.navigation-wrap.start-header .navbar-nav .nav-link,
body.hero-anime .navigation-wrap .navbar-nav .nav-link {
    font-family: "Poppins", "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif !important;
    font-weight: 600 !important;
    /* ← 700 yerine 600: premium, temiz */
    letter-spacing: .12em !important;
    /* home/search/domain farkını sıfırlar */
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2️⃣ AKTİF / HOVER STATE – kalınlaşma OLMASIN */
.navigation-wrap .navbar-nav .nav-link:hover,
.navigation-wrap .navbar-nav .nav-link:focus,
.navigation-wrap .navbar-nav .active>.nav-link,
.navigation-wrap .navbar-nav .nav-link[aria-current="page"] {
    font-weight: 600 !important;
}

/* 3️⃣ LANGUAGE + DROPDOWN LABEL’LAR DA AYNI OLSUN */
.navigation-wrap .nav-lang-toggle .lang-label,
.navigation-wrap .dropdown-item {
    font-weight: 600 !important;
    letter-spacing: .12em !important;
}

/* 4️⃣ WhatsApp buton YAZISI hariç (bilerek daha güçlü kalsın) */
.navigation-wrap .whatsapp-btn-v2 {
    font-weight: 700 !important;
    letter-spacing: .02em !important;
}

/* Navbar yüksekliği / hizalama kilidi (EN ALTA) */
.navigation-wrap {
    padding: 6px 0 !important;
}

.navigation-wrap .navbar {
    min-height: 64px !important;
    /* gerekirse 60-70 arası ayarlanır */
    display: flex !important;
    align-items: center !important;
}