/* Ortak yerleşim (üst bar, menü, alt bilgi, yükleme göstergesi): _Layout. Sayfaların Styles bölümünden sonra yüklenir (önceden _Layout'taki <style>). */

/* Navbar fixed-top olduğunda içeriğin üstte kalmasını önler */
body:not(.no-scroll) {
    padding-top: 64px;
}
@media (max-width: 576px) {
    body:not(.no-scroll) {
        padding-top: 64px; /* Mobil navbar yüksekliği */
    }
}

/* ================= Modern Top Navbar ================= */
.app-nav {
    --nav-ink: #0f172a;
    --nav-muted: #475569;
    --nav-line: rgba(15, 23, 42, .08);
    --nav-green: #047857;
    min-height: 64px;
    padding: 0 !important;
    background: rgba(255, 255, 255, .82) !important;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--nav-line);
    box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 24px -18px rgba(15, 23, 42, .35);
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
}

.app-nav > .container-fluid { min-height: 64px; padding: 0 20px; }

.app-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-right: 24px;
    padding: 0;
}

.app-brand .mark {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #10b981, #065f46);
    color: #fff;
    font-size: 1.05rem;
    box-shadow: 0 6px 14px -6px rgba(6, 95, 70, .7);
    flex-shrink: 0;
}

.app-brand .txt { display: flex; flex-direction: column; line-height: 1.1; }
.app-brand .txt b { font-size: 1.05rem; font-weight: 700; color: var(--nav-ink); letter-spacing: -.01em; }
.app-brand .txt small { font-size: .72rem; font-weight: 500; color: #64748b; white-space: nowrap; }

.app-nav .nav-main { gap: 4px; }

.app-nav .nav-main .nav-link {
    --tone: #0f172a;
    --tint: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 8px !important;
    border-radius: 12px;
    color: var(--nav-muted) !important;
    font-size: .95rem;
    font-weight: 500;
    transition: background .2s ease, color .2s ease;
}

.app-nav .nav-main .nav-link .ic {
    width: 30px; height: 30px;
    border-radius: 9px;
    display: grid; place-items: center;
    background: var(--tint);
    color: var(--tone);
    font-size: .95rem;
    transition: transform .2s ease;
}

.app-nav .nav-main .nav-link:hover { background: #f8fafc; color: var(--nav-ink) !important; }
.app-nav .nav-main .nav-link:hover .ic { transform: scale(1.06); }

.app-nav .nav-main .nav-link.active {
    background: var(--tint);
    color: var(--nav-ink) !important;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 18%, transparent);
}

.app-nav .nav-main .nav-link.active .ic { background: var(--tone); color: #fff; }

.app-nav .t-heat  { --tone: #e11d48 !important; --tint: #fff1f2 !important; }
.app-nav .t-risk  { --tone: #ea580c !important; --tint: #fff7ed !important; }
.app-nav .t-station { --tone: #7c3aed !important; --tint: #f5f3ff !important; }
.app-nav .t-wx    { --tone: #2563eb !important; --tint: #eff6ff !important; }
.app-nav .t-chart { --tone: #059669 !important; --tint: #ecfdf5 !important; }

.app-nav .nav-sep { width: 1px; height: 26px; background: var(--nav-line); margin: 0 10px; }

.app-nav .lang-btn {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 7px 12px !important;
    border-radius: 12px;
    border: 1px solid var(--nav-line);
    background: #fff;
    color: var(--nav-ink) !important;
    font-weight: 600;
    font-size: .88rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.app-nav .lang-btn:hover { border-color: rgba(4, 120, 87, .35); box-shadow: 0 4px 12px -6px rgba(4, 120, 87, .35); }
.app-nav .lang-btn .fi { border-radius: 3px; }
.app-nav .lang-btn::after { margin-left: 2px; opacity: .6; }

.app-nav .lang-menu {
    border: 1px solid var(--nav-line) !important;
    border-radius: 14px;
    padding: 6px;
    min-width: 180px;
    margin-top: 10px !important;
    box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .3) !important;
    z-index: 3000;
}

.app-nav .lang-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 9px;
    padding: 8px 12px;
    font-weight: 500;
    font-size: .92rem;
    color: var(--nav-ink);
}

.app-nav .lang-menu .dropdown-item .fi { border-radius: 3px; }
.app-nav .lang-menu .dropdown-item:hover { background: #f1f5f9; }
.app-nav .lang-menu .dropdown-item.active { background: #ecfdf5; color: var(--nav-green); }
.app-nav .lang-menu .dropdown-item .bi-check2 { margin-left: auto; }

.app-nav .navbar-toggler {
    border: 1px solid var(--nav-line);
    border-radius: 11px;
    padding: 7px 10px;
}

.app-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(16, 185, 129, .25); }

@media (max-width: 991.98px) {
    .app-nav .navbar-collapse {
        margin: 0 -20px;
        padding: 10px 16px 16px;
        border-top: 1px solid var(--nav-line);
        background: rgba(255, 255, 255, .97);
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
    .app-nav .nav-main { align-items: stretch !important; gap: 2px; }
    .app-nav .nav-main .nav-link { padding: 9px 12px 9px 8px !important; }
    .app-nav .nav-sep { display: none; }
    .app-nav .nav-lang { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--nav-line); }
    .app-nav .lang-btn { justify-content: center; }
    .app-nav .lang-menu { width: 100%; }
}

@media (max-width: 400px) {
    .app-brand .txt small { display: none; }
}
/* ================= Modern Footer ================= */
.app-footer {
    position: relative;
    z-index: 10;
    margin-top: 72px;
    color: #d1fae5;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    background:
        radial-gradient(700px 300px at 100% 0%, rgba(16,185,129,.22), transparent 60%),
        linear-gradient(180deg, #052e22 0%, #03201a 100%);
    overflow: hidden;
}

.app-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e11d48, #ea580c, #eab308, #10b981, #2563eb);
    opacity: .85;
}

.no-footer-page .app-footer { display: none !important; }

.app-footer .af-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.app-footer .af-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr .9fr .9fr;
    gap: 40px;
    padding: 56px 0 44px;
}

.app-footer .af-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.app-footer .af-logo .mark {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #10b981, #065f46);
    color: #fff; font-size: 1.15rem;
    box-shadow: 0 8px 18px -8px rgba(16,185,129,.8);
}
.app-footer .af-logo .txt { display: flex; flex-direction: column; line-height: 1.15; }
.app-footer .af-logo b { color: #fff; font-size: 1.2rem; font-weight: 700; }
.app-footer .af-logo small { color: #6ee7b7; font-size: .78rem; font-weight: 500; }

.app-footer .af-tagline { margin: 18px 0 22px; max-width: 340px; color: #a7c4b8; font-size: .92rem; line-height: 1.65; }

.app-footer .af-social { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.app-footer .af-social a {
    width: 40px; height: 40px; border-radius: 11px;
    display: grid; place-items: center;
    color: #d1fae5; font-size: 1.05rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.app-footer .af-social a:hover { background: #10b981; border-color: #10b981; color: #fff; transform: translateY(-3px); }

.app-footer .af-title {
    margin: 6px 0 18px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #6ee7b7;
}

.app-footer .af-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.app-footer .af-links a {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 8px 5px 0;
    color: #d1fae5; text-decoration: none; font-size: .93rem;
    border-radius: 10px;
    transition: color .2s ease, transform .2s ease;
}
.app-footer .af-links .ic {
    width: 28px; height: 28px; border-radius: 8px;
    display: grid; place-items: center;
    font-size: .85rem;
    background: color-mix(in srgb, var(--tone) 22%, transparent);
    color: color-mix(in srgb, var(--tone) 55%, #fff);
    transition: background .2s ease, color .2s ease;
}
.app-footer .af-links a:hover { color: #fff; transform: translateX(3px); }
.app-footer .af-links a:hover .ic { background: var(--tone); color: #fff; }

.app-footer .af-countries { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.app-footer .af-countries li { display: flex; align-items: center; gap: 10px; font-size: .93rem; color: #d1fae5; }
.app-footer .fi { border-radius: 3px; }

.app-footer .af-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 72px)); gap: 8px; }
.app-footer .af-langs a {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 7px 10px; border-radius: 10px;
    font-size: .82rem; font-weight: 600;
    color: #d1fae5; text-decoration: none;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    transition: background .2s ease, border-color .2s ease;
}
.app-footer .af-langs a:hover { background: rgba(255,255,255,.12); color: #fff; }
.app-footer .af-langs a.active { background: #10b981; border-color: #10b981; color: #fff; }
.lang-flag { width: 1.33em; height: 1em; object-fit: cover; border-radius: 3px; vertical-align: -0.125em; }

.app-footer .af-bottom { border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.18); }
.app-footer .af-bottom-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding-top: 18px; padding-bottom: 18px;
    font-size: .84rem; color: #86a89b;
}

@media (max-width: 991.98px) {
    .app-footer .af-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
    .app-footer .af-brand { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
    .app-footer { margin-top: 48px; }
    .app-footer .af-grid { padding: 44px 0 32px; }
    .app-footer .af-bottom-row { justify-content: center; text-align: center; padding-bottom: 72px; }
}
/* ================= Floating Back-To-Top ================= */
.back-to-top {
    --btt-p: 0%;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2400;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(5, 46, 34, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ecfdf5;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: .9rem;
    font-weight: 600;
    box-shadow: 0 14px 30px -12px rgba(2, 44, 34, .6);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(.96);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s, background .2s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s, background .2s ease;
}

.back-to-top:hover { background: #065f46; }
.back-to-top:focus-visible { outline: 3px solid rgba(110, 231, 183, .6); outline-offset: 2px; }

.back-to-top .btt-ring {
    position: relative;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: conic-gradient(#6ee7b7 var(--btt-p), rgba(255,255,255,.15) 0);
}

.back-to-top .btt-ring::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #064e3b;
}

.back-to-top .btt-ring i { position: relative; font-size: .95rem; transition: transform .2s ease; }
.back-to-top:hover .btt-ring i { transform: translateY(-2px); }

@media (max-width: 575.98px) {
    .back-to-top { right: 16px; bottom: 16px; padding: 6px; }
    .back-to-top .btt-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top, .back-to-top.show { transition: none; }
}
