/* ==========================================================================
   murat.bio — HTML5 / CSS3
   Tasarım, önceki VitePress sürümünün görsel diliyle birebir korunmuştur.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Değişkenler (tema)
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light dark;

  /* Renk paleti */
  --c-gray-soft: rgba(142, 150, 170, 0.14);

  --c-indigo-1: #3451b2;
  --c-indigo-2: #3a5ccc;

  /* Yüzeyler */
  --c-bg: #ffffff;
  --c-bg-elv: #ffffff;

  /* Çizgiler */
  --c-divider: #e2e2e3;
  --c-gutter: #88888822;

  /* Metin */
  --c-text-1: #3c3c43;
  --c-text-2: #67676c;

  /* Marka */
  --c-brand-1: var(--c-indigo-1);
  --c-brand-2: var(--c-indigo-2);

  /* Bileşen renkleri */
  --code-bg: var(--c-gray-soft);
  --code-color: var(--c-brand-1);
  --badge-info-bg: var(--c-gray-soft);
  --badge-info-text: var(--c-text-2);

  /* Tipografi */
  --font-base: "Open Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-mono: ui-monospace, "Menlo", "Monaco", "Consolas", "Liberation Mono",
    "Courier New", monospace;
  --font-title: "Segoe Script", cursive;
  --code-font-size: 0.875em;

  /* Ölçüler */
  --nav-height: 64px;
  --layout-width: 784px;

  /* Katmanlar */
  --z-footer: 10;
  --z-nav: 30;

  /* Gölgeler */
  --shadow-3: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-gray-soft: rgba(101, 117, 133, 0.16);

    --c-indigo-1: #a8b1ff;
    --c-indigo-2: #5c73e7;

    --c-bg: #1b1b1f;
    --c-bg-elv: #202127;

    --c-divider: #2e2e32;

    --c-text-1: #dfdfd6;
    --c-text-2: #98989f;
  }
}

/* --------------------------------------------------------------------------
   2. Temel sıfırlama
   -------------------------------------------------------------------------- */

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

html {
  line-height: 1.4;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  line-height: 24px;
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 400;
  color: var(--c-text-1);
  background-color: var(--c-bg);
  font-synthesis: style;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 24px;
  font-size: 16px;
  font-weight: 400;
  overflow-wrap: break-word;
}

p {
  margin: 0;
  overflow-wrap: break-word;
}

strong,
b {
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: inherit;
}

ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

pre,
code,
kbd,
samp {
  font-family: var(--font-mono);
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
}

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

button {
  padding: 0;
  border: 0;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
  background-color: transparent;
  background-image: none;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
  }
}

/* --------------------------------------------------------------------------
   3. Yardımcı sınıflar
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 999;
  width: 1px;
  height: 1px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-brand-1);
  background-color: var(--c-bg);
  box-shadow: var(--shadow-3);
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
}

@media (min-width: 1280px) {
  .skip-link {
    top: 14px;
    left: 16px;
  }
}

/* --------------------------------------------------------------------------
   4. Sayfa iskeleti
   -------------------------------------------------------------------------- */

.layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   5. Üst menü
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: var(--z-nav);
  margin: 0 auto;
  width: 100%;
  max-width: var(--layout-width);
}

.nav-bar {
  position: relative;
  height: var(--nav-height);
  white-space: nowrap;
  background-color: var(--c-bg);
  transition: background-color 0.25s;
}

.nav-wrapper {
  padding: 0 8px 0 24px;
}

@media (min-width: 768px) {
  .nav-wrapper {
    padding: 0 32px;
  }
}

.nav-container {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  height: var(--nav-height);
}

/* Site adı */
.nav-title {
  flex-shrink: 0;
  height: calc(var(--nav-height) - 1px);
}

.site-title {
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  width: 100%;
  height: var(--nav-height);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text-1);
  transition: opacity 0.25s;
}

.site-title span {
  font-family: var(--font-title);
}

/* Menü ve ikonlar */
.nav-content {
  flex-grow: 1;
}

.nav-content-body {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: var(--nav-height);
}

@media (max-width: 767px) {
  .nav-content-body {
    column-gap: 0.5rem;
  }
}

.nav-menu {
  display: none;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0 12px;
  line-height: var(--nav-height);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-1);
  transition: color 0.25s;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--c-brand-1);
}

/* Sosyal bağlantılar */
.social-links {
  display: flex;
  justify-content: center;
}

.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  color: var(--c-text-2);
  transition: color 0.5s;
}

.social-link:hover {
  color: var(--c-text-1);
  transition: color 0.25s;
}

.social-link > svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-social-links {
  display: none;
  margin-right: -8px;
}

@media (min-width: 1280px) {
  .nav-social-links {
    display: flex;
    align-items: center;
  }
}

.nav-menu + .nav-social-links::before {
  margin-right: 8px;
  margin-left: 8px;
  width: 1px;
  height: 24px;
  background-color: var(--c-divider);
  content: "";
}

/* Orta genişlikte açılan "daha fazla" menüsü */
.nav-extra {
  position: relative;
  display: none;
  margin-right: -12px;
}

@media (min-width: 768px) {
  .nav-extra {
    display: block;
  }
}

@media (min-width: 1280px) {
  .nav-extra {
    display: none;
  }
}

.nav-extra-button {
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: var(--nav-height);
  color: var(--c-text-1);
  transition: color 0.5s;
}

.nav-extra-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-extra:hover .nav-extra-button {
  color: var(--c-brand-1);
  transition: color 0.25s;
}

.nav-extra-menu {
  position: absolute;
  top: calc(var(--nav-height) / 2 + 20px);
  right: 0;
  padding: 12px;
  min-width: 128px;
  border: 1px solid var(--c-divider);
  border-radius: 12px;
  background-color: var(--c-bg-elv);
  box-shadow: var(--shadow-3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}

.nav-extra:hover .nav-extra-menu,
.nav-extra:focus-within .nav-extra-menu {
  opacity: 1;
  visibility: visible;
}

.nav-extra-menu .social-links {
  margin: -4px 4px;
}

/* Hamburger düğmesi */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

.hamburger {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: var(--nav-height);
  cursor: pointer;
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

.hamburger-box {
  position: relative;
  width: 16px;
  height: 14px;
  overflow: hidden;
}

.hamburger-box span {
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background-color: var(--c-text-1);
  transition: top 0.25s, background-color 0.5s, transform 0.25s;
}

.hamburger-box .top {
  top: 0;
  transform: translateX(0);
}

.hamburger-box .middle {
  top: 6px;
  transform: translateX(8px);
}

.hamburger-box .bottom {
  top: 12px;
  transform: translateX(4px);
}

.hamburger:hover .top {
  transform: translateX(4px);
}

.hamburger:hover .middle {
  transform: translateX(0);
}

.hamburger:hover .bottom {
  transform: translateX(8px);
}

.nav-toggle:focus-visible ~ .site-header .hamburger-box {
  outline: 2px solid var(--c-brand-1);
  outline-offset: 4px;
}

.nav-toggle:checked ~ .site-header .hamburger-box .top {
  top: 6px;
  transform: translateX(0) rotate(225deg);
}

.nav-toggle:checked ~ .site-header .hamburger-box .middle {
  top: 6px;
  transform: translateX(16px);
}

.nav-toggle:checked ~ .site-header .hamburger-box .bottom {
  top: 6px;
  transform: translateX(0) rotate(135deg);
}

.nav-toggle:checked ~ .site-header .nav-bar {
  border-bottom: 1px solid var(--c-divider);
  transition: none;
}

/* Alt çizgi */
.nav-divider {
  width: 100%;
  height: 1px;
}

.nav-divider-line {
  width: 100%;
  height: 1px;
  background-color: var(--c-gutter);
  transition: background-color 0.5s;
}

/* Mobil menü ekranı */
.nav-screen {
  position: fixed;
  top: var(--nav-height);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: var(--z-nav);
  padding: 0 32px;
  width: 100%;
  background-color: var(--c-bg);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.nav-toggle:checked ~ .nav-screen {
  opacity: 1;
  visibility: visible;
}

/* Menü açıkken arka planın kaymasını engelle */
html:has(.nav-toggle:checked) {
  overflow: hidden;
}

@media (min-width: 768px) {
  html:has(.nav-toggle:checked) {
    overflow: visible;
  }
}

@media (min-width: 768px) {
  .nav-screen {
    display: none;
  }
}

.nav-screen-container {
  margin: 0 auto;
  padding: 24px 0 96px;
  max-width: 288px;
  transform: translateY(-8px);
  transition: transform 0.25s ease;
}

.nav-toggle:checked ~ .nav-screen .nav-screen-container {
  transform: translateY(0);
}

.nav-screen-link {
  display: block;
  border-bottom: 1px solid var(--c-divider);
  padding: 12px 0 11px;
  line-height: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-1);
  transition: border-color 0.25s, color 0.25s;
}

.nav-screen-link:hover {
  color: var(--c-brand-1);
}

.nav-screen-social {
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   6. İçerik yerleşimi
   -------------------------------------------------------------------------- */

.site-content {
  flex-grow: 1;
  flex-shrink: 0;
  margin: 0 auto;
  width: 100%;
}

.doc {
  padding: 0 24px 36px;
  width: 100%;
}

@media (min-width: 960px) {
  .doc {
    padding: 0 32px;
  }
}

.doc-container {
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 960px) {
  .doc-container {
    display: flex;
    justify-content: center;
    max-width: 992px;
  }
}

@media (min-width: 1440px) {
  .doc-container {
    max-width: 1104px;
  }
}

.doc-content {
  position: relative;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 960px) {
  .doc-content {
    padding: 0 32px 36px;
    max-width: 752px;
  }
}

@media (min-width: 1280px) {
  .doc-content {
    margin: 0;
    min-width: 640px;
  }
}

@media (min-width: 1440px) {
  .doc-content {
    max-width: 784px;
  }
}

/* --------------------------------------------------------------------------
   7. Yazı tipografisi
   -------------------------------------------------------------------------- */

.doc-body h1,
.doc-body h2,
.doc-body h3,
.doc-body h4,
.doc-body h5,
.doc-body h6 {
  position: relative;
  font-weight: 600;
}

.doc-body h1 {
  letter-spacing: -0.02em;
  line-height: 40px;
  font-size: 28px;
}

@media (min-width: 768px) {
  .doc-body h1 {
    font-size: 32px;
  }
}

.doc-body h2 {
  margin: 48px 0 16px;
  border-top: 1px solid var(--c-divider);
  padding-top: 24px;
  letter-spacing: -0.02em;
  line-height: 32px;
  font-size: 24px;
}

.doc-body h3 {
  margin: 32px 0 0;
  letter-spacing: -0.01em;
  line-height: 28px;
  font-size: 20px;
}

/* Proje / haber başlıkları: soldan çizgili etiket görünümü */
.doc-body h4 {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 50px 0 0;
  border-left: 5px solid var(--c-gutter);
  border-radius: 0 10px 10px 0;
  padding: 10px;
  letter-spacing: -0.01em;
  line-height: 24px;
  font-size: 18px;
  background: var(--code-bg);
}

.doc-body p {
  margin: 16px 0;
  line-height: 28px;
}

.doc-body .badge-row {
  margin: 16px 0;
  line-height: 24px;
}

.doc-body a {
  font-weight: 500;
  color: var(--c-brand-1);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.25s, opacity 0.25s;
}

.doc-body a:hover {
  color: var(--c-brand-2);
}

.doc-body strong {
  font-weight: 600;
}

.doc-body em {
  font-style: italic;
}

.doc-body li + li {
  margin-top: 8px;
}

.doc-body hr {
  margin: 16px 0;
  border: none;
  border-top: 1px solid var(--c-divider);
}

/* Satır içi kod (teknoloji etiketleri) */
.doc-body :not(pre) > code {
  border-radius: 4px;
  padding: 3px 6px;
  font-size: var(--code-font-size);
  color: var(--code-color);
  background-color: var(--code-bg);
  transition: color 0.25s, background-color 0.5s;
}

.doc-body h1 > code,
.doc-body h2 > code,
.doc-body h3 > code,
.doc-body h4 > code {
  font-size: 0.9em;
  color: inherit;
}

/* Rozetler */
.badge {
  display: inline-block;
  margin-left: 2px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 10px;
  line-height: 22px;
  font-size: 12px;
  font-weight: 500;
  transform: translateY(-2px);
}

.badge.info {
  color: var(--badge-info-text);
  background-color: var(--badge-info-bg);
}

.doc-body h3 > .badge {
  vertical-align: middle;
}

.doc-body h4 > .badge,
.doc-body h5 > .badge,
.doc-body h6 > .badge {
  vertical-align: middle;
  line-height: 18px;
}

/* --------------------------------------------------------------------------
   8. Alt bilgi
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: var(--z-footer);
  align-self: center;
  display: flex;
  justify-content: center;
  width: 60%;
  max-width: var(--layout-width);
  border-top: 1px solid var(--c-gutter);
  padding: 32px 24px;
  background-color: var(--c-bg);
  opacity: 0.7;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 32px;
  }
}

.footer-container {
  margin: 0 auto;
  text-align: center;
}

.footer-social,
.footer-copyright {
  line-height: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-2);
}

.footer-social {
  display: flex;
  justify-content: space-around;
  min-width: 220px;
  margin-bottom: 1rem;
}

.footer-social a {
  display: block;
  text-decoration: none;
  transition: color 0.25s;
}

.footer-social a:hover,
.footer-copyright a:hover {
  color: var(--c-text-1);
}

.footer-social svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.footer-copyright a {
  text-decoration-line: underline;
  text-underline-offset: 2px;
  transition: color 0.25s;
}

/* --------------------------------------------------------------------------
   9. 404
   -------------------------------------------------------------------------- */

.not-found {
  padding: 64px 24px 96px;
  text-align: center;
}

.not-found .code {
  line-height: 64px;
  font-size: 64px;
  font-weight: 600;
}

.not-found .title {
  margin: 20px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--c-divider);
  letter-spacing: 2px;
  line-height: 20px;
  font-size: 20px;
  font-weight: 700;
}

.not-found .quote {
  margin: 8px auto 24px;
  max-width: 256px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-2);
}

.not-found .action a {
  display: inline-block;
  border: 1px solid var(--c-brand-1);
  border-radius: 16px;
  padding: 3px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-brand-1);
  transition: border-color 0.25s, color 0.25s;
}

.not-found .action a:hover {
  border-color: var(--c-brand-2);
  color: var(--c-brand-2);
}
