/*--------------------------------------------------------------
# Header (Sticky Top Navbar)
--------------------------------------------------------------*/
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: 9997;
    background: var(--bg-header-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-brand {
    font-size: 19px;
    margin: 0;
    padding: 0;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.site-brand a,
.site-brand a:hover {
    color: var(--text-nav-hover);
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-actions .social-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-actions .social-links a {
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-sidebar-social);
    color: var(--text-nav-hover);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.header-actions .social-links a:hover {
    background: var(--color-celestial-blue);
    color: var(--text-nav-hover);
    text-decoration: none;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.nav-menu {
    padding: 0;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu > ul > li {
    position: relative;
    white-space: nowrap;
}

.nav-menu a,
.nav-menu a:focus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-nav-link);
    padding: 7px 12px;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.nav-menu a i,
.nav-menu a:focus i,
.nav-menu a .bi,
.nav-menu a:focus .bi {
    font-size: 15px;
    color: var(--text-nav-icon);
    transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu .active,
.nav-menu .active:focus,
.nav-menu li:hover > a {
    text-decoration: none;
    color: var(--text-nav-hover);
    background: rgba(255, 255, 255, 0.08);
}

.nav-menu .active,
.nav-menu .active:focus {
    font-weight: 600;
}

.nav-menu a:hover i,
.nav-menu .active i,
.nav-menu .active:focus i,
.nav-menu li:hover > a i,
.nav-menu a:hover .bi,
.nav-menu .active .bi,
.nav-menu .active:focus .bi,
.nav-menu li:hover > a .bi {
    color: var(--color-celestial-blue);
}

/* Mobile Navigation */
.mobile-nav-toggle {
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 20px;
    transition: background-color 0.25s ease, border-color 0.25s ease;
    outline: none !important;
    background-color: var(--bg-sidebar-social);
    color: var(--color-white);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
}

.mobile-nav-toggle:hover {
    background-color: var(--bg-mobile-nav);
    border-color: var(--bg-mobile-nav);
}

.mobile-nav-toggle .mobile-nav-icon-close {
    display: none;
}

.mobile-nav-active .mobile-nav-toggle .mobile-nav-icon-list {
    display: none;
}

.mobile-nav-active .mobile-nav-toggle .mobile-nav-icon-close {
    display: inline-block;
}

@media (max-width: 1199px) {
    .header-inner {
        padding: 0 16px;
    }

    #navbar {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: rgba(var(--rgb-black-night), 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 12px 16px 16px 16px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    }

    .mobile-nav-active #navbar {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .nav-menu a,
    .nav-menu a:focus {
        width: 100%;
        padding: 10px 14px;
        border-radius: 8px;
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .header-actions .social-links {
        display: none;
    }

    .header-actions {
        gap: 6px;
    }
}

/*--------------------------------------------------------------
# Language Switcher
--------------------------------------------------------------*/
.language-switcher .lang-tr {
    color: var(--text-lang-tr);
    font-weight: 700;
}

.language-switcher .lang-en {
    color: var(--text-lang-en);
    font-weight: 700;
}

.language-switcher .btn:not(.btn-light) .lang-tr {
    color: var(--text-lang-tr-inactive);
    opacity: 0.85;
}

.language-switcher .btn:not(.btn-light) .lang-en {
    color: var(--text-lang-en-inactive);
    opacity: 0.85;
}

.language-switcher .btn:hover {
    opacity: 1 !important;
}

/*--------------------------------------------------------------
# Theme Toggle Switcher
--------------------------------------------------------------*/
.theme-toggle-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.theme-toggle-btn:hover {
    background-color: var(--color-celestial-blue) !important;
    border-color: var(--color-celestial-blue) !important;
}

[data-theme="dark"] .theme-icon-light {
    display: inline-block !important;
}
[data-theme="dark"] .theme-icon-dark {
    display: none !important;
}

html:not([data-theme="dark"]) .theme-icon-light {
    display: none !important;
}
html:not([data-theme="dark"]) .theme-icon-dark {
    display: inline-block !important;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
    padding: 20px 16px;
    color: var(--text-footer);
    font-size: 12.5px;
    width: 100%;
    background: var(--bg-footer);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#footer .container {
    padding-left: 0;
    padding-right: 0;
}

#footer .copyright {
    text-align: center;
}

#footer .credits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 24px;
    padding-top: 2px;
    text-align: center;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-footer-credits);
}

#footer .credit-item {
    white-space: nowrap;
}

/*--------------------------------------------------------------
# Global Left-Edge Scroll Descent Frame
--------------------------------------------------------------*/
.page-descent-frame {
    position: fixed;
    top: var(--navbar-height);
    bottom: 0;
    left: 0;
    width: 4px;
    z-index: 995;
    pointer-events: none;
}

.descent-track {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .descent-track,
[data-bs-theme="dark"] .descent-track {
    background: rgba(148, 163, 184, 0.08);
}

.descent-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--page-scroll-pct, 0%);
    background: linear-gradient(
        to bottom,
        rgba(148, 163, 184, 0.22) 0%,
        rgba(100, 116, 139, 0.42) 60%,
        rgba(71, 85, 105, 0.58) 100%
    );
    border-radius: 0 0 999px 999px;
    transition: height 0.06s linear;
}

[data-theme="dark"] .descent-fill,
[data-bs-theme="dark"] .descent-fill {
    background: linear-gradient(
        to bottom,
        rgba(148, 163, 184, 0.14) 0%,
        rgba(148, 163, 184, 0.30) 60%,
        rgba(148, 163, 184, 0.46) 100%
    );
}

@media (max-width: 1199px) {
    .page-descent-frame {
        left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .descent-fill {
        transition: none;
    }
}

/*--------------------------------------------------------------
# Oneko Cat (js/oneko.js)
--------------------------------------------------------------*/
#oneko {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    /* Below #header (9997), .mobile-nav-toggle (9998) and #footer (9999) */
    z-index: 9996;
    pointer-events: none;
    image-rendering: pixelated;
    background-repeat: no-repeat;
    will-change: transform;
}