/* ============================================================
   ProStand — Modern Menü (psx-header)
   Marka rengini değiştirmek için sadece --psx-accent değerini
   güncellemeniz yeterlidir.
   ============================================================ */
:root {
    --psx-ink: #0e1726;
    --psx-ink-soft: #46536a;
    --psx-accent: #00adc9;
    --psx-accent-dark: #0090a8;
    --psx-surface: rgba(255, 255, 255, 0.45);
    --psx-surface-scrolled: rgba(255, 255, 255, 0.65);
    --psx-line: rgba(14, 23, 38, 0.08);
    --psx-radius: 14px;
    --psx-font: "Montserrat", "Segoe UI", sans-serif;
}

.psx-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    font-family: var(--psx-font);

    /* Üstte tamamen şeffaf; okunabilirlik için hafif koyu degrade */
    background: linear-gradient(to bottom, rgba(10, 16, 28, 0.5) 0%, rgba(10, 16, 28, 0) 100%);
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.psx-header.psx-scrolled {
    background: var(--psx-surface-scrolled);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    border-bottom-color: var(--psx-line);
    box-shadow: 0 8px 30px rgba(14, 23, 38, 0.1);
}

/* Şeffaf durumda (sayfa en üstteyken) açık renk yazılar */
.psx-header:not(.psx-scrolled) .psx-nav > li > a,
.psx-header:not(.psx-scrolled) .psx-nav > li > button {
    color: #fff;
}

.psx-header:not(.psx-scrolled) .psx-nav > li > a:hover,
.psx-header:not(.psx-scrolled) .psx-nav > li > button:hover,
.psx-header:not(.psx-scrolled) .psx-nav > li > a.psx-active {
    color: #fff;
}

.psx-header:not(.psx-scrolled) .psx-logo img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.psx-header:not(.psx-scrolled) .psx-burger span {
    background: #fff;
}

.psx-header:not(.psx-scrolled) .psx-burger:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ---------- İç sayfa varyantı: her zaman opak ----------
   Hero'su olmayan sayfalarda <header class="psx-header psx-solid">
   kullanın. Header sayfa akışında kalır (sticky), içerik altına girmez. */
.psx-header.psx-solid {
    position: sticky;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    border-bottom-color: var(--psx-line);
}

.psx-header.psx-solid .psx-nav > li > a,
.psx-header.psx-solid .psx-nav > li > button {
    color: var(--psx-ink);
}

.psx-header.psx-solid .psx-nav > li > a:hover,
.psx-header.psx-solid .psx-nav > li > button:hover,
.psx-header.psx-solid .psx-nav > li > a.psx-active {
    color: var(--psx-accent);
}

.psx-header.psx-solid .psx-logo img {
    filter: none;
}

.psx-header.psx-solid .psx-burger span {
    background: var(--psx-ink);
}

.psx-header.psx-solid .psx-burger:hover {
    background: rgba(0, 173, 201, 0.1);
}

.psx-header.psx-solid .psx-topbar {
    background: var(--psx-ink);
}

/* ---------- Üst şerit ---------- */
.psx-topbar {
    background: rgba(14, 23, 38, 0.55);
    color: #cfd8e6;
    font-size: 0.92rem;
    overflow: hidden;
    max-height: 44px;
    transition: max-height 0.35s ease;
}

.psx-header.psx-scrolled .psx-topbar {
    max-height: 0;
}

.psx-topbar-in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.psx-topbar a {
    color: #cfd8e6;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.psx-topbar a:hover {
    color: #fff;
}

.psx-top-contact {
    display: flex;
    align-items: center;
    gap: 18px;
}

.psx-top-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.psx-langs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.psx-langs a {
    padding: 3px 6px;
    border-radius: 6px;
    line-height: 1;
}

.psx-langs a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.psx-langs .fi {
    font-size: 0.9rem;
    border-radius: 2px;
}

/* ---------- Ana bar ---------- */
.psx-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    height: 58px;
    transition: 82px;
}

.psx-header.psx-scrolled .psx-bar {
    height: 66px;
}

.psx-logo img {
    max-height: 35px;
    width: auto;
}

/* ---------- Masaüstü nav ---------- */
.psx-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.psx-nav > li {
    position: relative;
}

.psx-nav > li > a,
.psx-nav > li > button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--psx-ink);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    transition: color 0.2s;
}

.psx-nav > li > a::after,
.psx-nav > li > button::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--psx-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.psx-nav > li > a:hover,
.psx-nav > li > button:hover,
.psx-nav > li > a.psx-active {
    color: var(--psx-accent);
}

.psx-nav > li > a:hover::after,
.psx-nav > li > button:hover::after,
.psx-nav > li > a.psx-active::after,
.psx-nav > li.psx-open > button::after {
    transform: scaleX(1);
}

.psx-nav .bi-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.psx-nav li.psx-open .bi-chevron-down {
    transform: rotate(180deg);
}

/* ---------- Dropdown ---------- */
.psx-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 300px;
    background: #fff;
    border: 1px solid var(--psx-line);
    border-radius: var(--psx-radius);
    box-shadow: 0 18px 45px rgba(14, 23, 38, 0.14);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.psx-nav li.psx-open .psx-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.psx-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 11px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--psx-ink-soft);
    text-decoration: none;
    transition: background 0.18s, color 0.18s, padding-left 0.18s;
}

.psx-dropdown a i {
    color: var(--psx-accent);
    font-size: 0.8rem;
}

.psx-dropdown a:hover {
    background: rgba(0, 173, 201, 0.07);
    color: var(--psx-ink);
    padding-left: 10px;
}

/* ---------- CTA ---------- */
.psx-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--psx-accent);
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 173, 201, 0.35);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.psx-cta i {
    transition: transform 0.2s;
}

.psx-cta:hover {
    background: var(--psx-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 173, 201, 0.4);
}

.psx-cta:hover i {
    transform: translateX(3px);
}

/* ---------- Hamburger (modern iki çizgi) ---------- */
.psx-burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.psx-burger:hover {
    background: rgba(0, 173, 201, 0.1);
}

.psx-burger span {
    position: absolute;
    height: 2px;
    border-radius: 2px;
    background: var(--psx-ink);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.psx-burger span:nth-child(1) {
    top: 14px;
    left: 11px;
    right: 11px;
}

.psx-burger span:nth-child(2) {
    top: 21px;
    left: 11px;
    right: 11px;
    opacity: 1;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.psx-burger span:nth-child(3) {
    top: 28px;
    left: 21px;
    right: 11px;
}

.psx-burger:hover span:nth-child(3) {
    left: 11px;
}

body.psx-menu-open .psx-burger span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
    background: var(--psx-accent);
}

body.psx-menu-open .psx-burger span:nth-child(2) {
    opacity: 0;
    transform: translateX(8px);
}

body.psx-menu-open .psx-burger span:nth-child(3) {
    top: 21px;
    left: 11px;
    transform: rotate(-45deg);
    background: var(--psx-accent);
}

/* ---------- Mobil çekmece ---------- */
.psx-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 28, 0.45);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1001;
}

.psx-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(340px, 88vw);
    background: #fff;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s;
}

body.psx-menu-open .psx-overlay {
    opacity: 1;
    visibility: visible;
}

body.psx-menu-open .psx-drawer {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -20px 0 60px rgba(14, 23, 38, 0.2);
}

body.psx-menu-open {
    overflow: hidden;
}

.psx-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--psx-line);
}

.psx-drawer-head img {
    max-height: 38px;
}

.psx-drawer-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--psx-line);
    border-radius: 10px;
    background: #fff;
    color: var(--psx-ink);
    font-size: 1.1rem;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.psx-drawer-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 14px;
    list-style: none;
    margin: 0;
}

.psx-drawer-nav > li {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

body.psx-menu-open .psx-drawer-nav > li {
    opacity: 1;
    transform: translateX(0);
}

body.psx-menu-open .psx-drawer-nav > li:nth-child(1) {
    transition-delay: 0.06s;
}

body.psx-menu-open .psx-drawer-nav > li:nth-child(2) {
    transition-delay: 0.1s;
}

body.psx-menu-open .psx-drawer-nav > li:nth-child(3) {
    transition-delay: 0.14s;
}

body.psx-menu-open .psx-drawer-nav > li:nth-child(4) {
    transition-delay: 0.18s;
}

body.psx-menu-open .psx-drawer-nav > li:nth-child(5) {
    transition-delay: 0.22s;
}

body.psx-menu-open .psx-drawer-nav > li:nth-child(6) {
    transition-delay: 0.26s;
}

body.psx-menu-open .psx-drawer-nav > li:nth-child(7) {
    transition-delay: 0.3s;
}

.psx-drawer-nav a,
.psx-drawer-nav .psx-sub-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--psx-ink);
    text-decoration: none;
    border: 0;
    background: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.18s, color 0.18s;
}

.psx-drawer-nav a:hover,
.psx-drawer-nav a.psx-active,
.psx-drawer-nav .psx-sub-toggle:hover {
    background: rgba(0, 173, 201, 0.07);
    color: var(--psx-accent);
}

.psx-sub-toggle .bi {
    transition: transform 0.25s;
    font-size: 0.75rem;
}

.psx-drawer-nav li.psx-open .psx-sub-toggle .bi {
    transform: rotate(180deg);
}

.psx-sub {
    list-style: none;
    margin: 0;
    padding: 0 0 0 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.psx-drawer-nav li.psx-open .psx-sub {
    max-height: 320px;
}

.psx-sub a {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--psx-ink-soft);
    padding: 11px 12px;
}

.psx-drawer-foot {
    flex-shrink: 0;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--psx-line);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.psx-drawer-foot .psx-cta {
    justify-content: center;
}

.psx-drawer-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.psx-mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 10px;
    border: 1.5px solid var(--psx-accent);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--psx-accent);
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.psx-mini-btn:hover {
    background: var(--psx-accent);
    color: #fff;
}

.psx-mini-btn.psx-wa {
    border-color: #25d366;
    color: #1faf55;
}

.psx-mini-btn.psx-wa:hover {
    background: #25d366;
    color: #fff;
}

.psx-drawer-langs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.psx-drawer-langs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--psx-line);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--psx-ink-soft);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.psx-drawer-langs a:hover {
    border-color: var(--psx-accent);
    color: var(--psx-accent);
}

/* ---------- Erişilebilirlik ---------- */
.psx-header a:focus-visible,
.psx-header button:focus-visible,
.psx-drawer a:focus-visible,
.psx-drawer button:focus-visible {
    outline: 2px solid var(--psx-accent);
    outline-offset: 2px;
    border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
    .psx-header *,
    .psx-drawer,
    .psx-overlay,
    .psx-drawer-nav > li {
        transition: none !important;
    }
}

/* ---------- Kırılımlar ---------- */
@media (max-width: 1199px) {
    .psx-nav,
    .psx-bar > .psx-cta,
    .psx-langs {
        display: none;
    }

    .psx-logo img {
        max-height: 34px;
    }

    .psx-drawer-head img {
        max-height: 34px;
    }

    .psx-burger {
        display: block;
    }

    .psx-bar {
        height: 58px;
    }

    .psx-top-contact .psx-top-mail {
        display: none;
    }
}

@media (min-width: 1200px) {
    .psx-overlay,
    .psx-drawer {
        display: none;
    }
}
/* Menü açıkken top butonunu gizle */
body.psx-menu-open .scroll-top {
  display: none !important;
}

/* Çince eklenince dil bayrakları taşmasın */
.psx-drawer-langs { flex-wrap: wrap; }

/* ============================================================
   Mobil menü dil seçici — 4 dil tek satırda
   assets/css/psx-header.css dosyasının EN SONUNA ekleyin.
   Böylece TR / EN / RU / CN sayfalarının hepsi birden düzelir.
   ============================================================ */

.psx-drawer-langs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.psx-drawer-langs a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 9px 2px;
  white-space: nowrap;
  font-size: clamp(0.72rem, 3.2vw, 0.85rem);
  line-height: 1;
}

/* Bayrak küçülmesin, metin taşmasın */
.psx-drawer-langs a .fi {
  flex: 0 0 auto;
  font-size: 1em;
}

/* Çok dar ekranlarda (360px altı) bayrak + metin daha da sıkışsın */
@media (max-width: 360px) {
  .psx-drawer-langs {
    gap: 4px;
  }
  .psx-drawer-langs a {
    padding: 8px 1px;
    gap: 3px;
    font-size: 0.7rem;
  }
}

/* ------------------------------------------------------------
   Üst şerit (topbar) dil seçici — bayraklar sarmasın
   ------------------------------------------------------------ */
.psx-langs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}

.psx-langs a {
  flex: 0 0 auto;
}