/* akaMusti themes — Omarchy tarzı: tüm siteyi değişkenlerle boyar.
   Yeni tema eklemek için: aşağıya [data-theme="..."] bloğu + theme.js'teki THEMES listesine ekle. */
:root,
:root[data-theme="abyss"] {
  color-scheme: dark;
  --bg: #0b0d10;
  --fg: #eef2f3;
  --muted: #9aa4ad;
  --accent: #7df0ff;
  --accent2: #ff9d6b;
  --card: rgba(13, 17, 20, 0.72);
  --card-hover: rgba(18, 23, 28, 0.85);
  --stroke: rgba(125, 240, 255, 0.18);
  --stroke-hover: rgba(125, 240, 255, 0.45);
  --shade1: rgba(5, 8, 10, 0.45);
  --shade2: rgba(5, 8, 10, 0.72);
  --meta: #0b0d10;
}
:root[data-theme="tokyo-night"] {
  color-scheme: dark;
  --bg: #1a1b26;
  --fg: #c0caf5;
  --muted: #848cb5;
  --accent: #7aa2f7;
  --accent2: #bb9af7;
  --card: rgba(26, 27, 38, 0.75);
  --card-hover: rgba(33, 35, 49, 0.88);
  --stroke: rgba(122, 162, 247, 0.22);
  --stroke-hover: rgba(122, 162, 247, 0.5);
  --shade1: rgba(10, 11, 22, 0.5);
  --shade2: rgba(10, 11, 22, 0.78);
  --meta: #1a1b26;
}
:root[data-theme="gruvbox"] {
  color-scheme: dark;
  --bg: #282828;
  --fg: #ebdbb2;
  --muted: #a89984;
  --accent: #fabd2f;
  --accent2: #fe8019;
  --card: rgba(40, 40, 40, 0.8);
  --card-hover: rgba(50, 48, 47, 0.9);
  --stroke: rgba(250, 189, 47, 0.24);
  --stroke-hover: rgba(250, 189, 47, 0.55);
  --shade1: rgba(20, 16, 8, 0.5);
  --shade2: rgba(20, 16, 8, 0.8);
  --meta: #282828;
}
:root[data-theme="catppuccin"] {
  color-scheme: dark;
  --bg: #1e1e2e;
  --fg: #cdd6f4;
  --muted: #9399b2;
  --accent: #89b4fa;
  --accent2: #f5c2e7;
  --card: rgba(30, 30, 46, 0.78);
  --card-hover: rgba(38, 38, 58, 0.9);
  --stroke: rgba(137, 180, 250, 0.22);
  --stroke-hover: rgba(137, 180, 250, 0.52);
  --shade1: rgba(12, 12, 24, 0.5);
  --shade2: rgba(12, 12, 24, 0.78);
  --meta: #1e1e2e;
}
:root[data-theme="rose-pine"] {
  color-scheme: dark;
  --bg: #191724;
  --fg: #e0def4;
  --muted: #908caa;
  --accent: #ebbcba;
  --accent2: #c4a7e7;
  --card: rgba(25, 23, 36, 0.78);
  --card-hover: rgba(33, 30, 46, 0.9);
  --stroke: rgba(235, 188, 186, 0.22);
  --stroke-hover: rgba(235, 188, 186, 0.52);
  --shade1: rgba(12, 10, 20, 0.5);
  --shade2: rgba(12, 10, 20, 0.8);
  --meta: #191724;
}
:root[data-theme="nord"] {
  color-scheme: dark;
  --bg: #2e3440;
  --fg: #eceff4;
  --muted: #8e9ab3;
  --accent: #88c0d0;
  --accent2: #81a1c1;
  --card: rgba(46, 52, 64, 0.78);
  --card-hover: rgba(56, 63, 77, 0.9);
  --stroke: rgba(136, 192, 208, 0.22);
  --stroke-hover: rgba(136, 192, 208, 0.52);
  --shade1: rgba(20, 24, 33, 0.5);
  --shade2: rgba(20, 24, 33, 0.8);
  --meta: #2e3440;
}
:root[data-theme="dracula"] {
  color-scheme: dark;
  --bg: #282a36;
  --fg: #f8f8f2;
  --muted: #9a9bb3;
  --accent: #bd93f9;
  --accent2: #ff79c6;
  --card: rgba(40, 42, 54, 0.78);
  --card-hover: rgba(50, 52, 66, 0.9);
  --stroke: rgba(189, 147, 249, 0.24);
  --stroke-hover: rgba(189, 147, 249, 0.55);
  --shade1: rgba(15, 15, 26, 0.5);
  --shade2: rgba(15, 15, 26, 0.8);
  --meta: #282a36;
}
:root[data-theme="everforest"] {
  color-scheme: dark;
  --bg: #2b3339;
  --fg: #d3c6aa;
  --muted: #9da9a0;
  --accent: #a7c080;
  --accent2: #e69875;
  --card: rgba(43, 51, 57, 0.8);
  --card-hover: rgba(52, 61, 68, 0.9);
  --stroke: rgba(167, 192, 128, 0.24);
  --stroke-hover: rgba(167, 192, 128, 0.52);
  --shade1: rgba(16, 22, 20, 0.5);
  --shade2: rgba(16, 22, 20, 0.8);
  --meta: #2b3339;
}
:root[data-theme="kanagawa"] {
  color-scheme: dark;
  --bg: #1f1f28;
  --fg: #dcd7ba;
  --muted: #9e9b93;
  --accent: #7e9cd8;
  --accent2: #d27e99;
  --card: rgba(31, 31, 40, 0.78);
  --card-hover: rgba(40, 40, 52, 0.9);
  --stroke: rgba(126, 156, 216, 0.24);
  --stroke-hover: rgba(126, 156, 216, 0.52);
  --shade1: rgba(12, 12, 20, 0.5);
  --shade2: rgba(12, 12, 20, 0.8);
  --meta: #1f1f28;
}
:root[data-theme="osaka-jade"] {
  color-scheme: dark;
  --bg: #101815;
  --fg: #e8f0e8;
  --muted: #8aa092;
  --accent: #62d99a;
  --accent2: #e0c060;
  --card: rgba(16, 24, 21, 0.78);
  --card-hover: rgba(22, 33, 29, 0.9);
  --stroke: rgba(98, 217, 154, 0.22);
  --stroke-hover: rgba(98, 217, 154, 0.52);
  --shade1: rgba(6, 14, 11, 0.52);
  --shade2: rgba(6, 14, 11, 0.8);
  --meta: #101815;
}
:root[data-theme="matte-black"] {
  color-scheme: dark;
  --bg: #000000;
  --fg: #f5f5f5;
  --muted: #9a9a9a;
  --accent: #ffffff;
  --accent2: #8a8a8a;
  --card: rgba(12, 12, 12, 0.82);
  --card-hover: rgba(20, 20, 20, 0.92);
  --stroke: rgba(255, 255, 255, 0.18);
  --stroke-hover: rgba(255, 255, 255, 0.45);
  --shade1: rgba(0, 0, 0, 0.55);
  --shade2: rgba(0, 0, 0, 0.85);
  --meta: #000000;
}
:root[data-theme="flexoki-light"] {
  color-scheme: light;
  --bg: #fffcf0;
  --fg: #100f0f;
  --muted: #6f6e69;
  --accent: #205ea6;
  --accent2: #d14d41;
  --card: rgba(255, 252, 240, 0.82);
  --card-hover: rgba(246, 243, 230, 0.95);
  --stroke: rgba(32, 94, 166, 0.22);
  --stroke-hover: rgba(32, 94, 166, 0.48);
  --shade1: rgba(255, 252, 240, 0.25);
  --shade2: rgba(255, 252, 240, 0.55);
  --meta: #fffcf0;
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* Quiet atmosphere: two still glows and a faint upper texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 72% 38% at 50% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(ellipse 34% 28% at 100% 8%, color-mix(in srgb, var(--accent2) 11%, transparent), transparent 72%),
    radial-gradient(ellipse 28% 24% at 0% 92%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -2;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(color-mix(in srgb, var(--fg) 16%, transparent) 0.65px, transparent 0.65px);
  background-size: 18px 18px;
  opacity: 0.28;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 46%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 46%);
}

::selection {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--fg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--fg) 18%, transparent);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--accent) 45%, transparent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Navigation Bar */
.nav {
  border-bottom: 1px solid var(--stroke);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 30;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.nav-in {
  max-width: 720px;
  margin: 0 auto;
  height: 54px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}
.logo {
  font-weight: 800;
  font-size: 16px;
  color: var(--fg);
  text-decoration: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.3px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.logo:hover {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 16px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar {
  display: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover {
  color: var(--fg);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.nav-links a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
  margin-left: auto;
}
.nav .theme, .nav .lang {
  position: relative;
  display: block;
}
.nav .theme-btn, .icon-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}
.nav .theme-btn:hover, .icon-btn:hover {
  color: var(--fg);
  border-color: var(--stroke);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.icon-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Dropdown Panels (Theme & Lang) */
.theme-panel, .lang-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: 250px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: var(--card);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  padding: 8px;
  display: none;
  max-height: min(65vh, 380px);
  overflow-y: auto;
  animation: dropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.lang-panel {
  width: 170px;
}
.theme.open .theme-panel, .lang.open .lang-panel {
  display: block;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.theme-hint {
  padding: 6px 10px 8px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--muted);
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 6px;
}
.theme-hint kbd {
  border: 1px solid var(--stroke);
  border-radius: 5px;
  padding: 1px 5px;
  font-family: inherit;
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}
.theme-opt, .lang-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.14s ease, transform 0.12s ease;
}
.theme-opt:hover, .lang-opt:hover {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.theme-opt[aria-checked="true"], .lang-opt[aria-checked="true"] {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-weight: 600;
}
.theme-dots {
  display: flex;
  flex: none;
}
.theme-dots i {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--card);
  margin-left: -5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.theme-dots i:first-child {
  margin-left: 0;
}
.theme-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.theme-tick {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  visibility: hidden;
}
.theme-opt[aria-checked="true"] .theme-tick,
.lang-opt[aria-checked="true"] .theme-tick {
  visibility: visible;
}

/* Status Pill / Live Badge */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid var(--stroke);
  color: var(--fg);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 4px #22c55e;
}

/* Main Layout */
main, .shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 32px;
}
/* Layout kalıbında shell > main iç içe: çift padding'i önle */
.shell > main {
  max-width: none;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: var(--fg);
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-avatar {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center 18%;
  flex: none;
  border: 1px solid var(--stroke);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent),
    0 10px 24px color-mix(in srgb, #000 28%, transparent);
}
.hero-copy {
  flex: 1;
  min-width: 0;
}
.hero-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-name-row h1 {
  min-width: 0;
  overflow-wrap: break-word;
}
.hero-name-row .status-pill {
  flex: none;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: linear-gradient(105deg, var(--fg) 0%, var(--fg) 58%, color-mix(in srgb, var(--accent) 78%, var(--fg)) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.bio {
  margin-top: 6px;
  font-size: 16.5px;
  max-width: 60ch;
  color: var(--fg);
}
.bio .cursor {
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
  font-weight: 700;
}
@keyframes blink {
  50% { opacity: 0; }
}

.meta-line {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.meta-line a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.meta-line a:hover {
  color: var(--accent);
}

section {
  margin-top: 48px;
}
h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
main > section > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
main > section > h2::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  flex: none;
}

/* Rows / Project Cards */
.row {
  display: block;
  text-decoration: none;
  color: var(--fg);
  padding: 14px 16px;
  margin: 6px -16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.row:hover {
  background: color-mix(in srgb, var(--card) 72%, transparent);
  border-color: var(--stroke);
  box-shadow: inset 2px 0 0 var(--accent);
}
.row:hover .row-name {
  color: var(--accent);
}
.row-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.row-name {
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.2px;
  transition: color 0.18s ease;
}
.row-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: color-mix(in srgb, var(--accent) 62%, var(--muted));
  padding: 2px 7px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}
.row-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  flex: none;
  transition: color 0.18s ease, transform 0.2s ease;
}
.row:hover .row-arrow {
  color: var(--accent);
}
.row-desc {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.more-link:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* About Section */
#hakkimda {
  scroll-margin-top: 70px;
}
.about-wrap {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 42%),
    color-mix(in srgb, var(--card) 62%, transparent);
  box-shadow: 0 12px 32px color-mix(in srgb, #000 16%, transparent);
}
.about-wrap img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  object-position: center 20%;
  flex: none;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
  transition: border-color 0.2s ease;
}
.about-wrap img:hover {
  border-color: var(--accent);
}
.about-wrap p {
  font-size: 15px;
  margin-bottom: 10px;
  color: color-mix(in srgb, var(--fg) 92%, transparent);
}
.about-wrap p:last-child {
  margin-bottom: 0;
}

/* Social Chips */
.soc {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.soc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  color: var(--fg);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.soc-chip svg {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.soc-chip:hover {
  border-color: var(--stroke-hover);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.soc-chip:hover svg {
  opacity: 1;
}

/* Blog / Post Styles */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 18px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.back:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.page-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.sub {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 4px;
}
.rule {
  height: 1px;
  margin: 22px 0 10px;
  background: linear-gradient(90deg, var(--accent), var(--stroke) 46%, transparent);
}

.post-box {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  margin: 4px -16px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--fg);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.post-box:hover {
  background: color-mix(in srgb, var(--card) 72%, transparent);
  border-color: var(--stroke);
  box-shadow: inset 2px 0 0 var(--accent);
}
.post-box:hover .pb-title {
  color: var(--accent);
}
.pb-title {
  flex: 1;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.pb-date {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.blog-empty {
  padding: 24px 0;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

/* Blog: okuma süresi, etiketler, paylaşım, gezinme */
.pb-read {
  flex: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: color-mix(in srgb, var(--muted) 82%, var(--accent));
  white-space: nowrap;
}
.post-meta .pb-read {
  font-size: inherit;
  color: var(--muted);
}
.post-meta .sep,
.post-meta time {
  color: var(--muted);
}
.post-meta .sep {
  opacity: 0.55;
}
.blog-rss-row {
  margin-top: 18px;
}
.blog-rss-row .more-link {
  gap: 7px;
}
.blog-rss-row .more-link svg {
  width: 13px;
  height: 13px;
  flex: none;
  opacity: 0.9;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -16px 0 26px;
}
.tag {
  display: inline-block;
  padding: 2px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: color-mix(in srgb, var(--accent) 68%, var(--muted));
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
  border: 0;
  border-radius: 0;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
  padding-top: 18px;
  box-shadow: inset 0 1px 0 var(--stroke);
}
.post-action {
  padding: 7px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px var(--stroke);
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.post-action:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 26px;
}
.post-nav-link {
  display: block;
  padding: 12px 14px;
  color: var(--fg);
  text-decoration: none;
  background: color-mix(in srgb, var(--card) 62%, transparent);
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px var(--stroke);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.post-nav-link:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.post-nav-label {
  display: block;
  margin-bottom: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: var(--muted);
}
.post-nav-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.post-nav-link:hover .post-nav-title {
  color: var(--accent);
}
@media (min-width: 560px) {
  .post-nav {
    grid-template-columns: 1fr 1fr;
  }
  .post-nav-link.next {
    grid-column: 2;
    text-align: right;
  }
}

/* İçeriğe atla (klavye) */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  background: var(--bg);
  text-decoration: none;
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px var(--accent);
  transform: translateY(-200%);
  transition: transform 0.16s ease;
}
.skip-link:focus {
  transform: none;
}
#main {
  scroll-margin-top: 70px;
}
#main:focus,
#main:focus-visible {
  outline: none;
}

.post-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.25;
}
.post-meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 28px;
}
.post-content {
  font-size: 16px;
  line-height: 1.8;
}
.post-content p {
  margin-bottom: 1.3em;
}
.post-content h2 {
  font-size: 22px;
  margin: 1.6em 0 0.6em;
}
.post-content h3 {
  font-size: 18px;
  margin: 1.5em 0 0.5em;
}
.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content a:hover {
  color: var(--fg);
}
.post-content ul, .post-content ol {
  margin: 0 0 1.3em 1.3em;
}
.post-content li {
  margin-bottom: 0.4em;
}
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 18px;
  margin: 0 0 1.3em;
  color: var(--muted);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  border-radius: 0 8px 8px 0;
}
.post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: color-mix(in srgb, var(--fg) 10%, transparent);
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid var(--stroke);
}
.post-content pre {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 1.3em;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}
.post-content pre code {
  background: none;
  padding: 0;
  border: 0;
}
.post-content img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--stroke);
}
.post-content hr {
  border: none;
  border-top: 1px solid var(--stroke);
  margin: 2em auto;
  width: 140px;
}

/* Music Player Pop-up */
.player-pop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 350px;
  max-width: calc(100vw - 32px);
}
.player {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  position: relative;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1), opacity 0.35s ease, border-color 0.25s ease;
}
.player::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.75;
  pointer-events: none;
}
.player-pop.open .player {
  transform: none;
  opacity: 1;
}
.player-pop.closed .player {
  display: none;
}
.player-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}
.player-close:hover {
  color: var(--fg);
  border-color: var(--accent);
}
.player-fab {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--fg);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  margin-left: auto;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.player-fab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.player-pop.closed .player-fab {
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-pop.closed {
  width: auto;
}

.disc-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
}
.disc {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--stroke);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  transition: border-color 0.25s ease;
}
.player.playing .disc {
  animation: spin 8s linear infinite;
  border-color: var(--accent);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.meta {
  flex: 1;
  min-width: 0;
}
.title {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--fg);
}
.artist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1px;
}
.artist {
  font-size: 12px;
  color: var(--muted);
}
.player-time {
  font-size: 10.5px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.bar {
  height: 4px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--fg) 14%, transparent);
  margin-top: 8px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: height 0.15s ease;
}
.bar:hover {
  height: 6px;
}
.bar > div {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.1s linear;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
  border: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}
.play svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.15s ease;
}
.play:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
  transform: scale(1.06);
}
.vol {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.vol button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.15s;
}
.vol button:hover {
  color: var(--accent);
}
.vol input[type="range"] {
  width: 55px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: color-mix(in srgb, var(--fg) 14%, transparent);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}
.vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.vol input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* Footer */
footer {
  max-width: 720px;
  margin: 8px auto 0;
  padding: 18px 20px 36px;
  border-top: 1px solid var(--stroke);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
footer kbd {
  font-family: inherit;
  font-size: 10px;
  line-height: 1.4;
  border: 1px solid var(--stroke);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0 5px;
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 6%, transparent);
}
footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
footer a:hover {
  color: var(--accent);
}
footer .sep {
  opacity: 0.4;
}
footer .keys {
  opacity: 0.8;
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Smooth Theme Transitions */
body, .card, .shell, .player, .nav, .theme-btn, .theme-panel, .lang-panel,
.soc-chip, .row, .play, .post-box, .about-wrap {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .nav-in {
    padding: 0 14px;
    gap: 12px;
  }
  .nav-links {
    gap: 10px;
  }
  .nav-links a {
    font-size: 13px;
    padding: 4px 6px;
  }
  .hide-mobile {
    display: none;
  }
  .nav-right > a.icon-btn {
    display: none;
  }
  main, .shell {
    padding: 36px 16px 24px;
  }
  h1 {
    font-size: 32px;
  }
  .hero-top {
    gap: 12px;
  }
  .hero-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }
  .about-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-wrap img {
    width: 120px;
    height: 120px;
  }
  .vol {
    display: none;
  }
  .player-pop {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }
  .player-pop.closed {
    left: auto;
  }
}

@media (max-width: 480px) {
  .theme-panel {
    width: calc(100vw - 32px);
    max-width: 250px;
  }
  .theme-opt {
    padding: 10px 10px;
    font-size: 14px;
  }
  .soc {
    gap: 8px;
  }
  .soc-chip {
    padding: 7px 12px;
    font-size: 13px;
  }
  .post-box .pb-read {
    display: none;
  }
  .post-action {
    padding: 9px 14px;
  }
}

@media (max-width: 430px) {
  .nav-in {
    gap: 8px;
  }
  .nav-links {
    gap: 4px;
  }
  .nav-links a {
    padding: 4px 4px;
    font-size: 12.5px;
  }
  .logo {
    font-size: 14.5px;
  }
}

/* ============================================================
   FLAT / BORDERLESS
   Her kural kendi seçicisiyle yazıldı: `*` seçicisi düşük
   özgüllüğe sahip olduğu için sınıf kurallarını yenemiyordu.
   ============================================================ */

/* --- Navigasyon --- */
.nav {
  border: 0;
  border-radius: 0;
  box-shadow: 0 1px 0 var(--stroke);
}
.logo {
  border-radius: 0;
}
.nav-links a {
  border: 0;
  border-radius: 0;
}
.nav .theme-btn,
.icon-btn {
  border: 0;
  border-radius: 0;
}
.nav .theme-btn:hover,
.icon-btn:hover {
  border-color: transparent;
}
:focus-visible {
  border-radius: 0;
}

/* --- Açılır paneller --- */
.theme-panel,
.lang-panel {
  border: 0;
  border-radius: 0;
}
.theme-hint {
  border: 0;
  border-radius: 0;
  box-shadow: 0 1px 0 var(--stroke);
}
.theme-hint kbd {
  border: 0;
  border-radius: 0;
}
.theme-opt,
.lang-opt {
  border: 0;
  border-radius: 0;
}

/* --- Gerçekten daire olması gerekenler --- */
.status-dot,
.theme-dots i,
.disc,
.vol input[type="range"]::-webkit-slider-thumb,
.vol input[type="range"]::-moz-range-thumb {
  border-radius: 50%;
}
.theme-dots i {
  border: 2px solid var(--card);
}
.disc {
  border: 0;
}
.player.playing .disc {
  border-color: transparent;
}

/* --- Durum rozeti --- */
.status-pill {
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px var(--stroke);
}

/* --- Hero --- */
.hero-avatar {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
main > section > h2::before {
  border-radius: 0;
}

/* --- Satır / proje kartları --- */
.row {
  border: 0;
  border-radius: 0;
}
.row:hover {
  border-color: transparent;
}
.row-tag {
  border: 0;
  border-radius: 0;
}
.more-link {
  border: 0;
  border-radius: 0;
}

/* --- Hakkımda --- */
.about-wrap {
  border: 0;
  border-radius: 0;
}
.about-wrap img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.about-wrap img:hover {
  border: 0;
}

/* --- Sosyal çipler --- */
.soc-chip {
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px var(--stroke);
}
.soc-chip:hover {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* --- Blog --- */
.back {
  border: 0;
  border-radius: 0;
}
.post-box {
  border: 0;
  border-radius: 0;
}
.post-box:hover {
  border-color: transparent;
}
.post-content blockquote {
  border: 0;
  border-left: 3px solid var(--accent);
  border-radius: 0;
}
.post-content code {
  border: 0;
  border-radius: 0;
}
.post-content pre {
  border: 0;
  border-radius: 0;
}
.post-content pre code {
  border: 0;
}
.post-content img {
  border: 0;
  border-radius: 0;
}
.post-content hr {
  border: 0;
  border-top: 1px solid var(--stroke);
}

/* --- Müzik çalıcı --- */
.player {
  border: 0;
  border-radius: 0;
}
.player::before {
  border-radius: 0;
}
.player-close {
  border: 0;
  border-radius: 0;
}
.player-close:hover {
  border-color: transparent;
}
.player-fab {
  border: 0;
  border-radius: 0;
}
.player-fab:hover {
  border-color: transparent;
}
.play {
  border: 0;
  border-radius: 0;
}
.play:hover {
  border-color: transparent;
}
.bar,
.bar > div,
.vol input[type="range"] {
  border-radius: 0;
}
.vol button {
  border: 0;
  border-radius: 0;
}

/* --- Footer --- */
footer {
  border: 0;
  box-shadow: 0 -1px 0 var(--stroke);
}
footer kbd {
  border: 0;
  border-radius: 0;
}

/* --- Skyline (bu dosya themes.css'ten sonra yükleniyor) --- */
.skyline,
.skyline-toggle,
.skyline-toggle button,
.skyline-stage,
.skyline-tip,
.skyline-legend button {
  border: 0;
  border-radius: 0;
}

/* --- Mobil avatar --- */
@media (max-width: 640px) {
  .hero-avatar {
    border-radius: 0;
  }
}

/* ============================================================
   MOBİL / DOKUNMATIK
   ============================================================ */

/* Dokunmatikte hover yapışı kalmasın; efektler yalnız fare/pen için */
@media (hover: none) {
  .row:hover,
  .post-box:hover {
    background: transparent;
    box-shadow: none;
  }
  .soc-chip:hover {
    background: color-mix(in srgb, var(--card) 70%, transparent);
    box-shadow: inset 0 0 0 1px var(--stroke);
    color: var(--fg);
  }
  .nav .theme-btn:hover,
  .icon-btn:hover {
    background: transparent;
  }
  .more-link:hover,
  .back:hover {
    background: transparent;
    color: var(--fg);
  }
  .about-wrap img:hover {
    box-shadow: none;
  }
  .player-fab:hover,
  .player-close:hover {
    border-color: transparent;
    color: var(--fg);
  }
  .play:hover {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--fg);
    transform: none;
  }
  .bar:hover {
    height: 4px;
  }
}

/* Çerçevesiz toggle'da durum ayrımı görünür kalsın */
.skyline-toggle {
  box-shadow: inset 0 0 0 1px var(--stroke);
}
.skyline-toggle button[aria-pressed="false"] {
  background: color-mix(in srgb, var(--fg) 6%, transparent);
}

/* Küçük ekranda dokunma hedefleri yeterince büyük olsun */
@media (max-width: 640px) {
  .icon-btn,
  .nav .theme-btn {
    min-width: 40px;
    height: 40px;
  }
  .nav-links a {
    padding: 8px 8px;
  }
  .soc-chip {
    padding: 10px 14px 10px 12px;
  }
  .play {
    width: 44px;
    height: 44px;
  }
  .player-close {
    width: 30px;
    height: 30px;
    top: -12px;
    right: -12px;
  }
  .player-fab {
    width: 52px;
    height: 52px;
  }
  .row,
  .post-box {
    padding: 16px 14px;
    margin-left: -14px;
    margin-right: -14px;
  }
  .skyline-toggle button {
    min-width: 44px;
    height: 34px;
  }
}

@media (max-width: 430px) {
  .icon-btn,
  .nav .theme-btn {
    min-width: 36px;
    height: 36px;
  }
  .nav-links a {
    padding: 7px 6px;
  }
}
