/* =========================================================
   Navigation & Topbar Styles - Modern Redesign
   ========================================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   TOPBAR - Üst bilgi barı
   ========================================================= */

.topbar {
    background: linear-gradient(135deg, #1a1842 0%, #2d2a62 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--navigation-max-width);
    margin: 0 auto;
    padding: 8px 16px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease;
}

.topbar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: none;
}

.topbar-link i {
    font-size: 0.7rem;
    opacity: 0.8;
    margin: 0;
}

.topbar-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
}

.topbar-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topbar-lang-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.topbar-lang-btn i {
    font-size: 0.75rem;
}

.lang-text {
    font-weight: 600;
}

/* =========================================================
   NAVIGATION - Ana navigasyon
   ========================================================= */

.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--accent) 0%, #343173 100%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navigation ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navigation-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: var(--navigation-max-width);
    margin: 0 auto;
    padding: 14px 16px;
}

/* Brand / Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #fff;
    min-width: 280px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 6px;
    transition: all 0.3s ease;
}

.logo:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.02);
}

.logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.title {
    display: flex;
    flex-direction: column;
}

.title strong {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.title span {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 400;
}

.title a {
    text-decoration: none;
    color: inherit;
    border: none;
}

.title a:hover {
    text-decoration: none;
    color: inherit;
    border: none;
}

/* =========================================================
   NAV BASE
   ========================================================= */

.nav {
    margin-left: auto;
}

.nav a {
    text-decoration: none;
    border: none;
}

.nav a:hover {
    text-decoration: none;
    border: none;
}

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

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link i {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: all 0.25s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link:hover i {
    opacity: 1;
}

.nav-btn {
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    line-height: 1;
}

/* Nav text - gizlenebilir */
.nav-text {
    display: inline;
}

/* Caret icon rotation */
.nav-link i.fa-caret-down {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 2px;
}

.has-dropdown:hover .nav-link i.fa-caret-down,
.has-dropdown.is-open .nav-link i.fa-caret-down {
    transform: rotate(180deg);
}

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

.nav-item {
    position: relative;
}

.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 260px;
    padding: 10px;
    border-radius: 16px;
    background: linear-gradient(180deg, #252350 0%, #1e1c45 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35),
                0 10px 20px rgba(0, 0, 0, 0.2);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover bridge */
.dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown a i {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
    opacity: 0.6;
    transition: all 0.2s ease;
    margin: 0;
}

.dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(4px) !important;
}

.dropdown a:hover i {
    opacity: 1;
}

/* External link icon */
.dropdown a[data-fa]::after {
    content: "";
    margin-left: auto;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.65rem;
    opacity: 0.4;
}

/* Desktop dropdown visibility */
@media (min-width: 1320px) {
    .has-dropdown:hover .dropdown,
    .has-dropdown.is-open .dropdown {
        visibility: visible;
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }

    .has-dropdown:hover .dropdown a,
    .has-dropdown.is-open .dropdown a {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown stagger animation */
.has-dropdown:hover .dropdown a:nth-child(1),
.has-dropdown.is-open .dropdown a:nth-child(1) { transition-delay: 0.02s; }
.has-dropdown:hover .dropdown a:nth-child(2),
.has-dropdown.is-open .dropdown a:nth-child(2) { transition-delay: 0.04s; }
.has-dropdown:hover .dropdown a:nth-child(3),
.has-dropdown.is-open .dropdown a:nth-child(3) { transition-delay: 0.06s; }
.has-dropdown:hover .dropdown a:nth-child(4),
.has-dropdown.is-open .dropdown a:nth-child(4) { transition-delay: 0.08s; }
.has-dropdown:hover .dropdown a:nth-child(5),
.has-dropdown.is-open .dropdown a:nth-child(5) { transition-delay: 0.10s; }
.has-dropdown:hover .dropdown a:nth-child(6),
.has-dropdown.is-open .dropdown a:nth-child(6) { transition-delay: 0.12s; }
.has-dropdown:hover .dropdown a:nth-child(7),
.has-dropdown.is-open .dropdown a:nth-child(7) { transition-delay: 0.14s; }
.has-dropdown:hover .dropdown a:nth-child(8),
.has-dropdown.is-open .dropdown a:nth-child(8) { transition-delay: 0.16s; }

/* =========================================================
   CONTROLS & CTA BUTTON
   ========================================================= */

.controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.5);
    border: none;
}

.nav-cta-btn i {
    font-size: 0.8rem;
    margin: 0;
}

/* Eski langbtn uyumluluğu için */
.langbtn {
    border-radius: 10px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.25s ease;
}

.langbtn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.25);
}

/* =========================================================
   MOBILE TOGGLE BUTTON
   ========================================================= */

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-toggle:active {
    transform: scale(0.95);
}

.nav-toggle-bars {
    width: 20px;
    height: 2px;
    background: #fff;
    display: block;
    margin: 0 auto;
    position: relative;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle-bars::before {
    top: -7px;
}

.nav-toggle-bars::after {
    top: 7px;
}

/* X animation when menu is open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

/* =========================================================
   RESPONSIVE - TABLET & MOBILE
   ========================================================= */

/* Topbar mobilde gizle */
@media (max-width: 1024px) {
    .topbar {
        display: none;
    }
}

@media (max-width: 1320px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .controls {
        display: none;
    }

    .nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        margin-left: 0;
        border-radius: 18px;
        background: linear-gradient(180deg, #2d2a62 0%, #1e1c45 100%);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
        padding: 12px;
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        opacity: 1;
        transform: translateY(0);
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav[data-collapsed="true"] {
        display: block;
        opacity: 0;
        transform: translateY(-15px);
        pointer-events: none;
    }

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

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 16px;
        border-radius: 12px;
    }

    .nav-link i:first-child {
        width: 24px;
        text-align: center;
    }

    /* Dropdown mobile */
    .dropdown {
        position: static;
        display: block;
        margin-top: 0;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: none;
        visibility: visible;
        pointer-events: auto;
        transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    }

    .dropdown a {
        opacity: 1;
        transform: none;
        padding: 12px 16px 12px 50px;
        color: rgba(255, 255, 255, 0.75);
        font-size: 0.85rem;
    }

    .dropdown a:hover {
        transform: none !important;
        background: rgba(255, 255, 255, 0.06);
    }

    .nav-item.open > .dropdown {
        display: block;
        max-height: 600px;
        opacity: 1;
        padding: 6px 0;
        margin-top: 4px;
    }

    .nav-item.open > .dropdown a {
        opacity: 1;
        transform: none;
        transition-delay: 0s;
    }
}

@media (max-width: 768px) {
    .navigation-inner {
        padding: 12px 14px;
    }

    .brand {
        min-width: auto;
        gap: 10px;
    }

    .logo {
        padding: 4px;
        border-radius: 10px;
    }

    .logo img {
        width: 42px;
        height: 42px;
    }

    .title strong {
        font-size: 1rem;
    }

    .title span {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .navigation-inner {
        padding: 10px 12px;
    }

    .brand {
        gap: 8px;
    }

    .logo img {
        width: 36px;
        height: 36px;
    }

    .title strong {
        font-size: 0.9rem;
    }

    .title span {
        font-size: 0.75rem;
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
    }
}

/* =========================================================
   EXTERNAL LINK INDICATOR
   ========================================================= */

.nav-external-link {
    display: inline-flex;
    align-items: center;
}

.nav-external-link::after {
    content: "↗";
    font-size: 0.75rem;
    margin-left: 4px;
    vertical-align: middle;
    opacity: 0.6;
}

/* =========================================================
   SCROLLBAR STYLING FOR MOBILE NAV
   ========================================================= */

.nav::-webkit-scrollbar {
    width: 6px;
}

.nav::-webkit-scrollbar-track {
    background: transparent;
}

.nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}
/* =========================================================
   MOBILE CONTROLS (Language Toggle + Hamburger)
   ========================================================= */

/* Body scroll lock when nav is open */
body.nav-open {
    overflow: hidden;
    touch-action: none;
}

/* But allow scroll inside navigation menu */
body.nav-open .nav {
    touch-action: pan-y;
}

.mobile-controls {
    display: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.mobile-lang-toggle {
    display: none;
}

@media (max-width: 1320px) {
    .mobile-controls {
        display: flex;
    }

    .nav-toggle {
        margin-left: 0;
    }
}

@media (max-width: 1024px) {
    .mobile-lang-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 46px;
        padding: 0 14px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.85rem;
        cursor: pointer;
        transition: all 0.25s ease;
    }

    .mobile-lang-toggle:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.25);
        color: #fff;
    }

    .mobile-lang-toggle:active {
        transform: scale(0.95);
    }

    .mobile-lang-toggle i {
        font-size: 0.8rem;
        opacity: 0.8;
    }

    .mobile-lang-toggle .lang-text {
        font-weight: 600;
    }
}