/* Metropolis — index.html içindeki Fontshare linki */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f4;
  --bg-elevated: #ffffff;
  --fg: #141414;
  --muted: #5a5a5a;
  --border: #e2e2df;
  --accent: #1e1e1e;
  --link: #1a3a5c;
  --code-bg: #ececea;
  --pre-bg: #1e1e1e;
  --pre-fg: #f0f0f0;
  --error-bg: #fff0f0;
  --error-border: #e8b4b4;
  --error-fg: #6b2020;
  --focus-ring: #2563eb;
  --font: "Metropolis", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Üst çubuk: tek boyut, küçük tutulur */
  --header-font-size: 0.875rem;
  --header-font-weight-title: 600;
  --header-font-weight-nav: 500;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121211;
  --bg-elevated: #1a1a18;
  --fg: #ececea;
  --muted: #a3a39e;
  --border: #2e2e2b;
  --accent: #f0f0ee;
  --link: #8cb4e8;
  --code-bg: #2a2a27;
  --pre-bg: #0d0d0c;
  --pre-fg: #e8e8e6;
  --error-bg: #2a1818;
  --error-border: #5c3030;
  --error-fg: #f0c4c4;
  --focus-ring: #93c5fd;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #121211;
    --bg-elevated: #1a1a18;
    --fg: #ececea;
    --muted: #a3a39e;
    --border: #2e2e2b;
    --accent: #f0f0ee;
    --link: #8cb4e8;
    --code-bg: #2a2a27;
    --pre-bg: #0d0d0c;
    --pre-fg: #e8e8e6;
    --error-bg: #2a1818;
    --error-border: #5c3030;
    --error-fg: #f0c4c4;
    --focus-ring: #93c5fd;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: clamp(15px, 0.25vw + 14px, 17px);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--fg);
  color: var(--bg);
}

.skip-link:focus {
  left: max(0.5rem, env(safe-area-inset-left));
  top: max(0.5rem, env(safe-area-inset-top));
}

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

.site-header {
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: var(--header-font-size);
  line-height: 1.35;
}

/* Ana sayfa: başta gizli; aşağı kayınca sabit üst çubuk olarak görünür */
body.home-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.28s ease;
  pointer-events: none;
}

body.home-page .site-header.site-header--home-revealed {
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .site-header {
    transition: none;
  }
}

/* Ana sayfa kahramanı: tam görünür yükseklik (masaüstü / tablet; alt içerik ilk karede görünmesin) */
body.home-page .hero {
  min-height: 100dvh;
}

/* Ana sayfa: üst çubuk aşağı kayınca görünürken hero metin/ikon/menü kaybolur; tepeye dönünce geri gelir */
body.home-page .hero .hero__inner,
body.home-page .hero .hero__scroll {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  transition:
    opacity 0.34s ease,
    transform 0.34s ease;
}

body.home-page.home-header-revealed .hero .hero__inner,
body.home-page.home-header-revealed .hero .hero__scroll {
  opacity: 0;
  transform: translate3d(0, 0.65rem, 0);
  pointer-events: none;
}

body.home-page.home-header-revealed .hero .hero__scroll iconify-icon {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .hero .hero__inner,
  body.home-page .hero .hero__scroll {
    transition: opacity 0.2s ease;
  }

  body.home-page.home-header-revealed .hero .hero__inner,
  body.home-page.home-header-revealed .hero .hero__scroll {
    transform: none;
  }
}

.site-header__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-top: max(0.875rem, env(safe-area-inset-top));
  padding-right: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-right));
  padding-bottom: max(0.875rem, env(safe-area-inset-bottom));
  padding-left: max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left));
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex: 0 1 auto;
  min-width: 0;
}

.site-brand:hover {
  text-decoration: none;
}

.site-brand__logo-wrap[hidden] {
  display: none !important;
}

.site-brand__logo-wrap:not([hidden]) {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.site-brand__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

[data-theme="dark"] .site-brand__logo {
  filter: brightness(0) invert(1);
}

.site-brand__title {
  font-size: 1em;
  font-weight: var(--header-font-weight-title);
  letter-spacing: -0.01em;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__cluster {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  gap: 0.35rem 0.65rem;
  flex-wrap: nowrap;
}

/* Sosyal bağlantılar (Iconify simple-icons vb.) */
.social-nav[hidden] {
  display: none !important;
}

.social-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.2rem 0.45rem;
}

.social-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.5rem;
  padding: 0.15rem 0.2rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  background: transparent;
  box-shadow: none;
  transition: color 0.15s ease;
}

.social-nav__link:hover {
  color: var(--fg);
  background: transparent;
}

.social-nav__icon {
  flex-shrink: 0;
  vertical-align: middle;
  color: inherit;
  filter: none;
}

.social-nav__label {
  white-space: nowrap;
  line-height: 1.3;
}

.social-nav--header .social-nav__list {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.social-nav--header {
  flex-shrink: 0;
  min-width: 0;
}

.social-nav--footer {
  margin: 0;
  padding: 0;
  border: none;
}

/* Kahraman — mobil: marka üstte; bilgi+sosyal+nav aynı “max içerik” genişliğinde (.hero__cta-wide) */
.hero__columns {
  --hero-pill-py: 0.45rem;
  --hero-pill-px: 1.15rem;
  --hero-pill-min-h: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: min(28rem, 100%);
  margin: 0.25rem auto 0;
  box-sizing: border-box;
}

/* Mobil: sıra marka → bilgi → sosyal → nav (lead parçalanır) */
.hero__col--lead {
  display: contents;
}

.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  width: 100%;
  order: 1;
}

.hero__col--info {
  order: 2;
}

.social-nav--hero {
  order: 3;
}

.hero__col--nav {
  order: 4;
}

.hero__columns--no-info .social-nav--hero {
  order: 2;
}

.hero__columns--no-info .hero__col--nav {
  order: 3;
}

/* En geniş satıra göre ortak sütun genişliği (bilgi + kahraman menü; sosyal ayrı sütunda) */
.hero__cta-wide {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  gap: 0.85rem;
  box-sizing: border-box;
}

/* Mobil: max-content taşmayı önle — sütun tam genişlik, içerik kırılır */
@media (max-width: 47.99rem) {
  .hero__cta-wide {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero__columns {
    max-width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .hero__inner {
    min-width: 0;
    overflow-x: clip;
  }

  .hero {
    overflow-x: clip;
  }

  .hero-info__line1,
  .hero-info__line2 {
    overflow-wrap: anywhere;
  }
}

.hero__cta-wide .hero__col--info,
.hero__cta-wide .hero__col--nav {
  width: 100%;
  min-width: 0;
}

.hero__col {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}

/* Bilgi / navigasyon: haplar sütunu doldursun (ortalanıp daralmasın) */
.hero__col--info,
.hero__col--nav {
  align-items: stretch;
  text-align: left;
}

@media (min-width: 48rem) {
  .hero__columns {
    display: grid;
    /* Sol + iki eşit sütun (bilgi / nav aynı genişlik) */
    grid-template-columns: minmax(0, 1.05fr) repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.8vw, 2.35rem);
    width: 100%;
    max-width: min(72rem, 100%);
    margin-left: auto;
    margin-right: auto;
    align-items: start;
    justify-items: stretch;
    margin-top: 0;
    box-sizing: border-box;
  }

  .hero__columns--no-info {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  }

  /* Marka + sosyal: sütun içinde yatayda ortalı */
  .hero__col--lead {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    width: 100%;
    min-width: 0;
  }

  .hero__brand,
  .social-nav--hero,
  .hero__col--info,
  .hero__col--nav {
    order: unset;
  }

  .hero__brand {
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    width: 100%;
  }

  .hero__brand .hero__title,
  .hero__brand .hero__slogan {
    text-align: center;
    align-self: center;
    max-width: 36ch;
  }

  .hero__col--lead .social-nav--hero {
    width: 100%;
    margin-top: 0;
  }

  .hero__col--lead .social-nav--hero .social-nav__list {
    justify-content: center;
  }

  .hero__cta-wide {
    display: contents;
  }

  .hero__col--info,
  .hero__col--nav {
    min-width: 0;
  }

  .hero__col--info {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .hero__col--nav {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
  }

  .hero__columns--no-info .hero__col--nav {
    grid-column: 2;
  }

  .hero__col {
    gap: 0.85rem;
  }
}

/* Kahraman — site/heroInfo (nav ile aynı sütun; metin sola, biraz daha koyu hap) */
.hero-info {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Kahraman: bilgi ile navigasyon satır aralığı aynı */
.hero__col--info .hero-info {
  gap: 0.65rem;
}

.hero-info__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
  min-height: var(--hero-pill-min-h, 3.5rem);
  padding: var(--hero-pill-py, 0.45rem) var(--hero-pill-px, 1.15rem);
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    155deg,
    rgba(0, 0, 0, 0.38) 0%,
    rgba(0, 0, 0, 0.28) 48%,
    rgba(0, 0, 0, 0.22) 100%
  );
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

a.hero-info__row {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

a.hero-info__row:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(
    155deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.32) 100%
  );
  box-shadow:
    0 4px 26px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

a.hero-info__row:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.hero-info__icon {
  flex-shrink: 0;
  align-self: center;
  color: rgba(244, 244, 242, 0.82);
}

.hero-info__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
  flex: 0 1 auto;
  text-align: left;
}

.hero-info__line1 {
  display: block;
  width: 100%;
  font-size: clamp(0.72rem, 1.2vw + 0.3rem, 0.84375rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: rgba(244, 244, 242, 0.94);
  text-align: left;
  text-wrap: balance;
}

.hero-info__line2 {
  display: block;
  width: 100%;
  font-size: clamp(0.64rem, 1vw + 0.24rem, 0.75rem);
  font-weight: 450;
  line-height: 1.4;
  color: rgba(244, 244, 242, 0.62);
  text-align: left;
  text-wrap: balance;
}

.social-nav--hero .social-nav__list {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}

.social-nav--hero .social-nav__link {
  color: rgba(244, 244, 242, 0.92);
  min-height: 2.25rem;
}

.social-nav--hero .social-nav__link:hover {
  color: #fff;
  background: transparent;
}

/* Ana sayfa — hero sonrası koyu bantta arama kutusu */
.home-search {
  max-width: 56rem;
  margin: 0 auto;
  width: 100%;
}

.home-band--dark .home-band__inner--after-search {
  margin-top: 1.75rem;
}

.home-search__field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.38);
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-search__field:focus-within {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.5);
}

.home-search__field-icon {
  flex-shrink: 0;
  color: rgba(244, 244, 242, 0.55);
}

.home-search__input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #f4f4f2;
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.home-search__input::placeholder {
  color: rgba(244, 244, 242, 0.45);
}

.home-search__results {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(42vh, 18rem);
  overflow-y: auto;
}

.home-search__results:not(:empty) {
  margin-top: 0.85rem;
}

.home-search__results li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.home-search__results li:last-child {
  border-bottom: none;
}

.home-search__hit {
  display: block;
  padding: 0.55rem 0.15rem;
  color: #9ec5e8;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.35;
}

.home-search__hit:hover {
  color: #c5daf5;
  text-decoration: underline;
}

.home-search__kind {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(244, 244, 242, 0.78);
  vertical-align: middle;
}

.home-search__excerpt {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(244, 244, 242, 0.5);
  margin-top: 0.2rem;
}

.home-search__empty {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  color: rgba(244, 244, 242, 0.55);
}

.site-nav {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 0.25rem 0.65rem;
  max-width: 100%;
  /* overflow burada olmamalı: açılır alt menü (position:absolute) üst ul tarafından kesilir. */
  overflow: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.site-nav a,
.site-nav__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1em;
  font-weight: var(--header-font-weight-nav);
  color: var(--muted);
  min-height: 2.5rem;
  padding: 0.2rem 0.15rem;
  position: relative;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.site-nav__icon {
  flex-shrink: 0;
  color: var(--muted);
  vertical-align: middle;
}

.site-nav a:hover .site-nav__icon,
.site-nav a.is-active .site-nav__icon,
.site-nav__dropdown-trigger:hover .site-nav__icon,
.site-nav__dropdown-trigger.is-active .site-nav__icon {
  color: var(--fg);
}

.site-nav__chevron {
  flex-shrink: 0;
  opacity: 0.75;
  margin-left: 0.05rem;
}

.site-nav__item--has-sub {
  position: relative;
}

.site-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  position: absolute;
  top: calc(100% - 0.1rem);
  right: 0;
  left: auto;
  min-width: 11rem;
  max-width: min(20rem, calc(100vw - 2rem));
  /* Ana sayfada .site-header z-index:1000; panel üstte kalmalı */
  z-index: 1100;
  border-radius: 10px;
  border: 1px solid var(--header-edge, rgba(0, 0, 0, 0.12));
  background: var(--header-well, var(--bg-elevated));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.site-nav__sub[hidden] {
  display: none !important;
}

.site-nav__sub .site-nav__sub-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__sub .site-nav__sub-link:hover,
.site-nav__sub .site-nav__sub-link.is-active {
  color: var(--fg);
  background: rgba(0, 0, 0, 0.04);
}

.site-nav__sub-item--nested > .site-nav__sub-nested {
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem 0.75rem;
  border-left: 1px solid var(--header-edge, rgba(0, 0, 0, 0.1));
}

.site-nav__sub-nested .site-nav__sub-link {
  font-size: 0.875rem;
  padding: 0.3rem 0.65rem;
}

.site-nav__label {
  font-size: 1em;
  font-weight: inherit;
  line-height: 1.35;
  white-space: nowrap;
}

/* Taşma: yalnızca ikonlu linklerde yazıyı gizle (erişilebilirlik: görünmez metin okunur) */
.site-nav--icons-only a:has(.site-nav__icon) .site-nav__label,
.site-nav--icons-only .site-nav__dropdown-trigger:has(.site-nav__icon) .site-nav__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav--icons-only a:has(.site-nav__icon),
.site-nav--icons-only .site-nav__dropdown-trigger:has(.site-nav__icon) {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.site-nav a:hover,
.site-nav a.is-active,
.site-nav__dropdown-trigger:hover,
.site-nav__dropdown-trigger.is-active {
  color: var(--fg);
}

@media (max-width: 48rem) {
  .site-header__inner {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
  }

  .site-brand {
    min-width: 0;
    max-width: min(52vw, 14rem);
  }

  .site-header__cluster {
    flex-shrink: 1;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: 0;
  }
}

main {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 4vw, 2rem) clamp(2.5rem, 6vw, 4rem);
}

main.main--home {
  max-width: none;
  margin: 0;
  padding: 0;
}

.home {
  width: 100%;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: calc(100dvh - 3.75rem);
  background-color: #0a0a0a;
  /* overflow:hidden açılır hero menüsünü (position:absolute) keser; arka plan .hero__media ile dolu */
  overflow: visible;
}

/* İki kahraman: mobilde yalnızca .hero--mobile, masaüstünde yalnızca .hero--desktop */
@media (min-width: 48rem) {
  .hero--mobile {
    display: none !important;
  }
}

@media (max-width: 47.99rem) {
  .hero--desktop {
    display: none !important;
  }
}

/* Mobil kahraman: tam ekran ilk kare; bilgi + nav hapları aynı genişlikte, metin solda */
@media (max-width: 47.99rem) {
  .hero--mobile {
    min-height: 100svh;
    min-height: 100dvh;
    box-sizing: border-box;
  }

  body.home-page .hero--mobile {
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero--mobile .hero__inner {
    padding: clamp(0.5rem, 2.8vw, 0.95rem) clamp(0.55rem, 3.2vw, 0.95rem);
    gap: 0.45rem;
  }

  .hero--mobile .hero__columns {
    --hero-pill-min-h: 2.35rem;
    --hero-pill-py: 0.26rem;
    --hero-pill-px: 0.65rem;
    gap: 0.5rem;
    max-width: min(17.5rem, 88vw);
    margin-top: 0;
  }

  .hero--mobile .hero__brand {
    gap: 0.6rem;
  }

  .hero--mobile .hero__icon-wrap {
    width: 4rem;
    height: 4rem;
  }

  .hero--mobile .hero__title {
    font-size: clamp(1.3rem, 4.2vw, 1.75rem);
  }

  .hero--mobile .hero__slogan {
    font-size: clamp(0.85rem, 2.8vw, 1rem);
  }

  .hero--mobile .hero__cta-wide {
    gap: 0.5rem;
    width: 100%;
    align-items: stretch;
  }

  .hero--mobile .hero__col--info .hero-info {
    gap: 0.4rem;
  }

  /* Bilgi ve navigasyon aynı sütun genişliği (hero-info ile aynı) */
  .hero--mobile .hero__col--info,
  .hero--mobile .hero__col--nav {
    align-items: stretch;
    width: 100%;
  }

  .hero--mobile .hero-info {
    width: 100%;
    max-width: 100%;
    align-items: stretch;
  }

  .hero--mobile .hero-info__row {
    width: 100%;
    box-sizing: border-box;
  }

  .hero--mobile .hero-nav {
    width: 100%;
  }

  .hero--mobile .hero__col--nav .hero-nav__list {
    width: 100%;
    max-width: 100%;
    align-items: stretch;
    gap: 0.42rem;
    margin-left: 0;
    margin-right: 0;
  }

  .hero--mobile .hero__col--nav .hero-nav__list > li {
    width: 100%;
    min-width: 0;
  }

  .hero--mobile .hero__col--nav .hero-nav__group {
    width: 100%;
    align-items: stretch;
  }

  .hero--mobile .hero__col--nav .hero-nav__list > li > .hero-nav__link:not(.hero-nav__sub-link),
  .hero--mobile .hero__col--nav .hero-nav__list > li > .hero-nav__dropdown-trigger {
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    min-height: var(--hero-pill-min-h, 2.35rem);
    padding: var(--hero-pill-py, 0.26rem) var(--hero-pill-px, 0.65rem);
  }

  .hero--mobile .hero__col--nav .hero-nav__list > li > .hero-nav__dropdown-trigger {
    gap: 0.5rem;
  }

  .hero--mobile .hero-nav__label {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
  }

  .hero--mobile .hero__col--nav .hero-nav__list > li > .hero-nav__dropdown-trigger .hero-nav__chevron {
    margin-left: auto;
    flex-shrink: 0;
  }

  .hero--mobile .hero__scroll {
    margin-top: 0.15rem;
    margin-bottom: max(0.65rem, calc(env(safe-area-inset-bottom) + 0.45rem));
  }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Genel karartma + alttan yukarı güçlü siyah: koyu blokla birleşim (#0a0a0a) */
  background:
    linear-gradient(
      to top,
      #0a0a0a 0%,
      rgba(10, 10, 10, 0.88) 14%,
      rgba(10, 10, 10, 0.5) 38%,
      rgba(0, 0, 0, 0.12) 68%,
      transparent 82%
    ),
    rgba(0, 0, 0, 0.48);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  gap: 1rem;
  color: #f4f4f2;
  min-height: 0;
}

@media (min-width: 48rem) {
  .hero__inner {
    align-items: stretch;
    justify-content: center;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
  }
}

.hero__title {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero__slogan {
  margin: 0;
  font-size: clamp(0.95rem, 2.2vw, 1.125rem);
  color: rgba(244, 244, 242, 0.88);
  max-width: 36ch;
  line-height: 1.45;
}

.hero__icon-wrap {
  width: 5.25rem;
  height: 5.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.45);
  background: rgba(0, 0, 0, 0.22);
}

.hero__icon-wrap[hidden] {
  display: none !important;
}

.hero__icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__scroll {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: max(1.65rem, calc(env(safe-area-inset-bottom) + 0.85rem));
  padding: 0.35rem;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(244, 244, 242, 0.92);
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.hero__scroll:hover {
  color: #fff;
  background: transparent;
  opacity: 1;
}

.hero__scroll:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.9);
  outline-offset: 3px;
}

@keyframes hero-scroll-hint {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(0.4rem);
  }
}

.hero__scroll iconify-icon {
  animation: hero-scroll-hint 2.2s ease-in-out infinite;
}

.home-below {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* Hero sonrası: koyu bant, altında site teması (açık/koyu) ile açık bant */
.home-band--dark {
  background: #0a0a0a;
  color: rgba(244, 244, 242, 0.95);
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
}

.home-band--dark .home-band__spacer {
  min-height: 2.75rem;
}

.home-band--dark .prose {
  max-width: 56rem;
  margin: 0 auto;
  color: rgba(244, 244, 242, 0.95);
}

.home-band--dark .prose a {
  color: #9ec5e8;
}

.home-band--dark .prose a:hover {
  color: #c5daf5;
}

.home-band--dark .prose code {
  background: rgba(255, 255, 255, 0.08);
  color: #ececea;
}

.home-band--dark .prose pre {
  background: rgba(0, 0, 0, 0.35);
  color: #f0f0ee;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-band--light {
  background: var(--bg);
  color: var(--fg);
  padding: clamp(2.75rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 8vw, 4rem);
}

.home-band--light .home-band__inner {
  max-width: 56rem;
  margin: 0 auto;
}

/* Kaydırınca yumuşak giriş (JS: .home-reveal--visible) */
.home-reveal {
  opacity: 0;
  transform: translate3d(0, 0.85rem, 0);
  transition:
    opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.home-reveal.home-reveal--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .home-reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

.home-below__inner.prose {
  margin-bottom: 0;
}

/* Ana sayfa: “hakkımda” — başlık üstte ortalı; kartta yalnızca metin + CTA */
.home-about {
  width: 100%;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.home-about__card-body {
  min-width: 0;
}

.home-about__cta {
  margin: 0.85rem 0 0;
  padding-top: 0.1rem;
}

.home-about__cta:first-child {
  margin-top: 0;
}

.home-about__resume-link {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.home-about__resume-link:hover {
  color: var(--fg);
  text-decoration: underline;
}

/* Ana sayfa: Firestore’dan gelen ilkeler kartları */
.home-principles {
  width: 100%;
  margin-top: clamp(0.75rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
}

.home-band--light .home-band__inner > .home-principles:first-child {
  margin-top: clamp(0.5rem, 1.5vw, 1rem);
}

.home-principles__title {
  text-align: center;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin: 0 0 1.75rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.home-principles__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  align-items: stretch;
}

.home-principles__grid > * {
  min-height: 0;
}

@media (min-width: 64rem) {
  .home-principles__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.home-principles__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.15rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  text-align: left;
  min-width: 0;
  overflow-wrap: break-word;
}

@media (min-width: 48rem) {
  .home-principles__card {
    padding: 1.5rem 1.35rem;
  }
}

/* 1. sütun: ikon (başlık satırlarına göre dikey ortalı), 2. sütun: başlık */
.home-principles__card-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 0.75rem;
  align-items: center;
  flex-shrink: 0;
  margin-bottom: 0.65rem;
  min-width: 0;
}

.home-principles__card-head > .home-principles__card-title:first-child {
  grid-column: 1 / -1;
}

.home-principles__icon-wrap {
  flex-shrink: 0;
  line-height: 0;
}

.home-principles__icon {
  color: var(--link);
  display: inline-block;
  width: 28px !important;
  height: 28px !important;
}

.home-principles__card-title {
  flex-shrink: 0;
  font-size: clamp(0.95rem, 2.2vw, 1.0625rem);
  font-weight: 600;
  margin: 0;
  color: var(--fg);
  line-height: 1.3;
  letter-spacing: -0.02em;
  min-width: 0;
}

.home-principles__card-title-line {
  display: block;
}

.home-principles__card-title-desktop {
  display: block;
}

.home-principles__card-title-mobile {
  display: none;
}

@media (max-width: 47.99rem) {
  .home-principles__card-title-desktop {
    display: none;
  }

  .home-principles__card-title-mobile {
    display: block;
  }
}

.home-principles__card-body {
  flex: 1 1 auto;
  min-height: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.home-principles__card-p {
  margin: 0 0 0.65rem;
}

.home-principles__card-p:last-child {
  margin-bottom: 0;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  word-break: break-word;
}

.page-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.page-meta span + span::before {
  content: " · ";
}

.prose {
  font-size: 1rem;
  max-width: 65ch;
}

.prose img,
.prose video,
.prose iframe {
  max-width: 100%;
  height: auto;
}

.prose h1,
.prose h2,
.prose h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.prose h1 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose code {
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.prose pre {
  background: var(--pre-bg);
  color: var(--pre-fg);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.875rem;
  -webkit-overflow-scrolling: touch;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.related h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

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

.related li {
  margin-bottom: 0.35rem;
}

.related + .related {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
}

/* ——— Blog yazısı — meta (kategori, etiket, ilişkili sayfalar, önceki/sonraki) ——— */
.post-meta {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--muted);
}

.post-meta__h {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
  color: var(--fg);
  opacity: 0.85;
}

.post-meta__group {
  margin-bottom: 1.15rem;
}

.post-meta__group:last-child {
  margin-bottom: 0;
}

.post-meta__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.post-meta__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  color: var(--fg);
  font-size: 0.875rem;
}

.post-meta__chip--tag {
  border-style: dashed;
}

.post-meta__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-meta__links li {
  margin-bottom: 0.35rem;
}

.post-meta__links a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.post-meta__updated {
  margin: 0 0 1rem;
  font-size: 0.875rem;
}

.post-meta__k {
  font-weight: 600;
  margin-right: 0.35rem;
  color: var(--fg);
}

.post-meta__nav {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.post-meta__nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 36rem) {
  .post-meta__nav-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1rem;
  }
}

.post-meta__nav-link {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: min(100%, 22rem);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.post-meta__nav-link:hover {
  border-color: color-mix(in srgb, var(--fg) 28%, var(--border));
  background: color-mix(in srgb, var(--fg) 5%, transparent);
}

.post-meta__nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.post-meta__nav-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.35;
}

.post-meta__all-posts {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.post-meta__all-posts--alone {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.post-meta__all-posts a {
  font-weight: 500;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.post-meta__all-posts a:hover {
  color: var(--accent);
}

/* ——— Bülten (footer içi) ——— */
.site-footer .site-newsletter {
  width: 100%;
  padding: 0 0 clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(242, 242, 238, 0.92);
}

.site-newsletter__inner {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem 2.5rem;
  align-items: end;
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .site-newsletter__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
  }
}

.site-newsletter__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #f4f4f0;
}

.site-newsletter__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(242, 242, 238, 0.72);
  max-width: 38rem;
}

.site-newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  width: 100%;
  min-width: 0;
}

.site-newsletter__input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: 0.9375rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #f4f4f0;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.site-newsletter__input::placeholder {
  color: rgba(242, 242, 238, 0.45);
}

.site-newsletter__input:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.site-newsletter__input:focus {
  outline: none;
  border-color: #8cb4e8;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(140, 180, 232, 0.25);
}

.site-newsletter__submit {
  flex-shrink: 0;
  padding: 0.65rem 1.35rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  color: #0e1014;
  background: linear-gradient(180deg, #e8eef6 0%, #c5d4e8 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.site-newsletter__submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.site-newsletter__submit:active {
  transform: translateY(0);
}

.site-newsletter__submit:focus-visible {
  outline: 2px solid #8cb4e8;
  outline-offset: 3px;
}

/* ——— Footer: koyu mod kurumsal bant; açık mod antrasit (#2b2b2b tonları) ——— */
.site-footer {
  --footer-fg: #f2f2ee;
  --footer-muted: #a8aca6;
  --footer-accent: #8cb4e8;
  --footer-edge: rgba(255, 255, 255, 0.1);
  --footer-edge-strong: rgba(255, 255, 255, 0.16);
  --footer-well: rgba(255, 255, 255, 0.06);
  --footer-well-hover: rgba(255, 255, 255, 0.1);

  position: relative;
  margin-top: auto;
  color: var(--footer-muted);
  background: linear-gradient(
    165deg,
    #2a2f36 0%,
    #1a1e24 38%,
    #0e1014 100%
  );
  border-top: 1px solid #000;
  box-shadow:
    0 -8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .site-footer {
  --footer-fg: #f2f2ee;
  --footer-muted: #a8aca6;
  --footer-accent: #8cb4e8;
  --footer-edge: rgba(255, 255, 255, 0.1);
  --footer-edge-strong: rgba(255, 255, 255, 0.14);
  --footer-well: rgba(255, 255, 255, 0.06);
  --footer-well-hover: rgba(255, 255, 255, 0.1);

  color: var(--footer-muted);
  background: linear-gradient(
    165deg,
    #323232 0%,
    #2b2b2b 45%,
    #252525 100%
  );
  border-top: 1px solid #1a1a1a;
  box-shadow:
    0 -8px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--footer-accent) 0%,
    rgba(140, 180, 232, 0.35) 45%,
    transparent 78%
  );
  pointer-events: none;
}

.site-footer__inner {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.25rem, 4vw, 2rem);
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.site-footer__primary {
  display: block;
}

.site-footer__primary:has(.site-footer__nav[hidden]) {
  display: none;
}

.site-footer__primary:has(.site-footer__nav[hidden]) + .site-footer__divider {
  display: none;
}

.site-footer__nav-block:has(.site-footer__nav[hidden]) {
  display: none;
}

.site-footer__nav-block {
  width: 100%;
  min-width: 0;
}

.site-footer__nav {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
  width: 100%;
  overflow: visible;
}

.site-footer__nav[hidden] {
  display: none !important;
}

.footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.35rem, 1.8vw, 1.75rem);
  width: 100%;
  min-width: 0;
}

.footer-nav__group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}

.footer-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.75rem;
  border-left: 2px solid var(--footer-edge);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-nav__sub--nested {
  margin-top: 0.1rem;
}

/* Erişilebilirlik grubu: üst satır tıklanabilir bağlantı değil (vurgu :hover’da hariç) */
.site-footer .footer-nav__parent-label {
  cursor: default;
  text-decoration: none;
}

.site-footer .footer-nav__sub .footer-nav__link {
  font-size: clamp(0.625rem, 1.35vw + 0.32rem, 0.84375rem);
  font-weight: 450;
  padding: 0.25rem 0;
  min-height: 1.75rem;
  min-width: 0;
  max-width: 100%;
}

.site-footer .footer-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  color: rgba(242, 242, 238, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.6875rem, 1.65vw + 0.35rem, 0.90625rem);
  min-height: 2rem;
  max-width: 100%;
  min-width: 0;
  opacity: 1;
  transition: color 0.15s ease;
}

.site-footer .footer-nav__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Alt satırlar: anchor ile aynı tipografi (inherit üstten bozulmasın diye açık değerler) */
.site-footer .footer-nav__sub button.footer-nav__link {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  text-align: left;
  justify-content: flex-start;
  background: none;
  border: none;
  font-family: inherit;
  font-size: clamp(0.625rem, 1.35vw + 0.32rem, 0.84375rem);
  font-weight: 450;
  cursor: pointer;
  padding: 0.25rem 0;
  min-height: 1.75rem;
}

.site-footer .footer-nav__link:hover:not(.footer-nav__parent-label) {
  color: var(--footer-accent);
  text-decoration: none;
}

.site-footer .footer-nav__link.is-active {
  color: var(--footer-accent);
}

.site-footer .footer-nav__icon {
  flex-shrink: 0;
  vertical-align: middle;
  opacity: 0.75;
  color: var(--footer-muted);
}

.site-footer .footer-nav__link:hover:not(.footer-nav__parent-label) .footer-nav__icon,
.site-footer .footer-nav__link.is-active .footer-nav__icon {
  opacity: 1;
  color: var(--footer-accent);
}

/* Klavye kısayolları — <dialog> */
.a11y-shortcuts-dialog {
  max-width: min(28rem, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--fg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.a11y-shortcuts-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.a11y-shortcuts-dialog__inner {
  padding: 1.1rem 1.25rem 1.25rem;
}

.a11y-shortcuts-dialog__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.a11y-shortcuts-dialog__body {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  white-space: pre-wrap;
  font-family: inherit;
  color: var(--muted);
}

.a11y-shortcuts-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.a11y-shortcuts-dialog__close:hover {
  border-color: var(--accent);
}

/* Salt metin görünümü — sade tipografi */
html.plain-text-view body {
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
}

html.plain-text-view .prose,
html.plain-text-view .home-band__inner--after-search {
  line-height: 1.75;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

html.plain-text-view .hero__media {
  opacity: 0.35;
}

.site-footer__bottom-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  flex: 1 1 12rem;
  min-width: 0;
}

.site-footer__bottom-main--copyright {
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 100%;
  width: 100%;
  gap: 0.35rem;
}

.site-footer__legal-row1 {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  width: 100%;
  min-width: 0;
}

.site-footer__copy-primary {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

.site-footer__copy-detail {
  width: 100%;
  min-width: 0;
}

.site-footer .social-nav--footer-bar {
  flex-shrink: 0;
}

.site-footer .social-nav--footer-bar .social-nav__list {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.site-footer .social-nav--footer-bar .social-nav__link {
  min-height: auto;
  min-width: auto;
  justify-content: center;
  padding: 0.15rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--footer-muted);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.site-footer .social-nav--footer-bar .social-nav__link:hover {
  color: var(--footer-fg);
  background: transparent;
  text-decoration: none;
  transform: none;
  opacity: 1;
}

.site-footer .social-nav--footer-bar[hidden] {
  display: none !important;
}

.site-footer__divider {
  height: 1px;
  margin: clamp(1.5rem, 3vw, 2rem) 0 1.25rem;
  background: linear-gradient(
    90deg,
    transparent,
    var(--footer-edge-strong) 14%,
    var(--footer-edge-strong) 86%,
    transparent
  );
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--footer-muted);
}

.site-footer__copy--link {
  text-decoration: none !important;
  color: var(--footer-muted) !important;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.site-footer__copy--link:hover,
.site-footer__copy--link:focus,
.site-footer__copy--link:focus-visible {
  text-decoration: none !important;
  color: var(--footer-muted) !important;
}

.site-footer__copy--link.site-footer__copy--line2 {
  color: rgba(168, 172, 166, 0.92) !important;
}

.site-footer__copy--link.site-footer__copy--line2:hover,
.site-footer__copy--link.site-footer__copy--line2:focus,
.site-footer__copy--link.site-footer__copy--line2:focus-visible {
  color: rgba(168, 172, 166, 0.92) !important;
}

.site-footer__copy--line1 {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.8125rem;
  line-height: 1.45;
  max-width: 100%;
}

.site-footer__copy--line2 {
  display: block;
  width: 100%;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: clamp(0.55rem, 1.35vw, 0.65rem);
  line-height: 1.45;
  color: rgba(168, 172, 166, 0.92);
}

.site-footer__copy--static.site-footer__copy--line2 {
  color: rgba(168, 172, 166, 0.92);
}

.site-footer__copy--legacy {
  margin: 0;
  font-size: clamp(0.55rem, 1.35vw, 0.65rem);
  line-height: 1.45;
  color: rgba(168, 172, 166, 0.92);
}

.hero-nav {
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.hero-nav[hidden] {
  display: none !important;
}

.hero-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.65rem;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Kahraman sütununda liste tam genişlik; üstten hizalı (grid hücresinde ortalanmasın) */
.hero__col--nav .hero-nav__list {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  justify-content: flex-start;
}

.hero-nav__list > li {
  width: 100%;
  min-width: 0;
}

.hero-nav__group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
}

.hero-nav__group--has-sub {
  position: relative;
}

.hero-nav__flyout {
  list-style: none;
  margin: 0;
  padding: 0.2rem 0;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  transform: none;
  z-index: 30;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 6, 6, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.hero-nav__flyout[hidden] {
  display: none !important;
}

.hero-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.hero-nav__flyout .hero-nav__sub > li:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-nav__sub--nested {
  margin-top: 0;
  padding: 0.15rem 0 0 0.55rem;
  margin-left: 0.35rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-nav__sub--nested > li:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-nav__chevron {
  flex-shrink: 0;
  opacity: 0.85;
  margin-left: 0.1rem;
  transition: transform 0.3s ease;
}

.hero-nav__list > li > .hero-nav__dropdown-trigger .hero-nav__chevron {
  margin-left: auto;
}

.hero-nav__dropdown-trigger[aria-expanded="true"] .hero-nav__chevron {
  transform: rotate(180deg);
}

.hero-nav__link,
.hero-nav__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(244, 244, 242, 0.92);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  min-height: 2.25rem;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

/* Üst düzey: animasyonlu cam hap butonlar */
.hero-nav__list > li > .hero-nav__link:not(.hero-nav__sub-link),
.hero-nav__list > li > .hero-nav__dropdown-trigger {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  padding: 0.5rem 1.1rem 0.5rem 1.25rem;
  min-height: 2.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.05) 48%,
    rgba(255, 255, 255, 0.03) 100%
  );
  box-shadow:
    0 4px 26px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition:
    transform 0.32s cubic-bezier(0.34, 1.18, 0.64, 1),
    box-shadow 0.32s ease,
    border-color 0.28s ease,
    background 0.32s ease,
    color 0.2s ease;
}

.hero-nav__list > li > .hero-nav__link:not(.hero-nav__sub-link)::after,
.hero-nav__list > li > .hero-nav__dropdown-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 62%,
    transparent 100%
  );
  transform: translateX(-120%);
  transition: transform 0.65s ease;
  pointer-events: none;
  z-index: 0;
}

.hero-nav__list > li > .hero-nav__link:not(.hero-nav__sub-link) .hero-nav__icon,
.hero-nav__list > li > .hero-nav__link:not(.hero-nav__sub-link) .hero-nav__label,
.hero-nav__list > li > .hero-nav__link:not(.hero-nav__sub-link) .hero-nav__chevron,
.hero-nav__list > li > .hero-nav__dropdown-trigger .hero-nav__icon,
.hero-nav__list > li > .hero-nav__dropdown-trigger .hero-nav__label,
.hero-nav__list > li > .hero-nav__dropdown-trigger .hero-nav__chevron {
  position: relative;
  z-index: 1;
}

.hero-nav__list > li > .hero-nav__link:not(.hero-nav__sub-link):hover,
.hero-nav__list > li > .hero-nav__dropdown-trigger:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.42);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.06) 100%
  );
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hero-nav__list > li > .hero-nav__link:not(.hero-nav__sub-link):hover::after,
.hero-nav__list > li > .hero-nav__dropdown-trigger:hover::after {
  transform: translateX(120%);
}

.hero-nav__list > li > .hero-nav__dropdown-trigger[aria-expanded="true"] {
  border-color: rgba(158, 200, 255, 0.55);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(158, 200, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-nav__list > li > .hero-nav__link:not(.hero-nav__sub-link):focus-visible,
.hero-nav__list > li > .hero-nav__dropdown-trigger:focus-visible {
  outline: 2px solid rgba(158, 200, 255, 0.95);
  outline-offset: 3px;
}

/* Kahraman navigasyon: bilgi hapıyla aynı iç boşluk / min-yükseklik; parlama ::after ve hover üstteki cam kurallarından */
.hero__col--nav .hero-nav__list > li > .hero-nav__link:not(.hero-nav__sub-link),
.hero__col--nav .hero-nav__list > li > .hero-nav__dropdown-trigger {
  gap: 0.65rem;
  padding: var(--hero-pill-py, 0.45rem) var(--hero-pill-px, 1.15rem);
  min-height: var(--hero-pill-min-h, 3.5rem);
}

.hero-nav__link:hover,
.hero-nav__link.is-active,
.hero-nav__dropdown-trigger:hover,
.hero-nav__dropdown-trigger.is-active {
  color: #f4f4f2;
}

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

  .hero-nav__list > li > .hero-nav__link:not(.hero-nav__sub-link),
  .hero-nav__list > li > .hero-nav__dropdown-trigger {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  }

  .hero-nav__list > li > .hero-nav__link:not(.hero-nav__sub-link)::after,
  .hero-nav__list > li > .hero-nav__dropdown-trigger::after {
    display: none;
  }

  .hero-nav__list > li > .hero-nav__link:not(.hero-nav__sub-link):hover,
  .hero-nav__list > li > .hero-nav__dropdown-trigger:hover {
    transform: none;
  }
}

.hero-nav__icon {
  flex-shrink: 0;
  color: rgba(244, 244, 242, 0.75);
  vertical-align: middle;
}

.hero-nav__link:hover .hero-nav__icon,
.hero-nav__link.is-active .hero-nav__icon,
.hero-nav__dropdown-trigger:hover .hero-nav__icon,
.hero-nav__dropdown-trigger.is-active .hero-nav__icon {
  color: inherit;
}

.hero-nav__flyout .hero-nav__sub-link {
  width: 100%;
  justify-content: flex-start;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 450;
  border-radius: 0;
  border: none;
  background: transparent;
  color: rgba(244, 244, 242, 0.88);
  transition: background 0.18s ease, color 0.18s ease;
}

.hero-nav__flyout .hero-nav__sub-link:hover,
.hero-nav__flyout .hero-nav__sub-link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #f4f4f2;
}

@media (prefers-reduced-motion: reduce) {
  .hero-nav__flyout .hero-nav__sub-link {
    transition: none;
  }
}

.layout-error {
  padding: 1rem;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: 8px;
  color: var(--error-fg);
}

/* Kaydırmayı yalnızca rota yüklenirken kilitle (app-booting’de kilitleme yok: JS gecikirse içerik yine kaydırılabilir). */
body.route-loading-active {
  overflow: hidden;
}

/* Rota yüklemesi — yalnızca ortada dönen gösterge; panel / yazı yok */
.route-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  box-sizing: border-box;
  margin: 0;
  background: #2b2b2b;
  color: #ececea;
}

.route-loading-overlay[hidden] {
  display: none !important;
}

.route-loading-overlay__spinner {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-right-color: var(--muted);
  flex-shrink: 0;
  animation: route-loading-spin 0.85s linear infinite;
}

@keyframes route-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-loading-overlay__spinner {
    animation: none;
    border-top-color: var(--accent);
    border-right-color: var(--border);
  }
}

.page-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-list li {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.page-list a {
  font-weight: 500;
}

.page-list .excerpt {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.posts-index__date {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}

.posts-index__empty {
  margin: 0.5rem 0 0;
  color: var(--muted);
}
