/* yasirsenel.com — tek stil dosyası. Değişince HTML'lerdeki ?v= numarasını artır. */

:root {
  --bg: #0b1220;
  --bg-alt: #0f182a;
  --surface: #131d33;
  --border: #23314d;
  --text: #e6edf6;
  --muted: #9fb0c8;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, .12);
  --on-accent: #041218;
  --grid: rgba(120, 160, 220, .07);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 10px;
  --header-h: 64px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-alt: #eaeff6;
  --surface: #ffffff;
  --border: #cfd8e5;
  --text: #0f1b2d;
  --muted: #445468;
  --accent: #0e7490;
  --accent-soft: rgba(14, 116, 144, .1);
  --on-accent: #ffffff;
  --grid: rgba(15, 27, 45, .06);
  --shadow: 0 10px 30px rgba(15, 27, 45, .1);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f5f7fb;
    --bg-alt: #eaeff6;
    --surface: #ffffff;
    --border: #cfd8e5;
    --text: #0f1b2d;
    --muted: #445468;
    --accent: #0e7490;
    --accent-soft: rgba(14, 116, 144, .1);
    --on-accent: #ffffff;
    --grid: rgba(15, 27, 45, .06);
    --shadow: 0 10px 30px rgba(15, 27, 45, .1);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 10px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red, blue)) { .site-header { background: var(--bg); } }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: var(--header-h); padding-top: 6px; padding-bottom: 6px; }
.brand {
  font-family: var(--mono); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
  color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.brand-mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border: 1.5px solid var(--accent); border-radius: 8px; color: var(--accent); font-size: .9rem;
}
.nav { order: 3; width: 100%; }
.nav ul { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.nav a {
  display: block; padding: 6px 10px; border-radius: 6px;
  font-family: var(--mono); font-size: .85rem; color: var(--muted); text-decoration: none;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--accent); background: var(--accent-soft); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang {
  font-family: var(--mono); font-size: .8rem; font-weight: 600; text-decoration: none; color: var(--muted);
  border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; min-height: 36px; display: inline-flex; align-items: center; gap: 4px;
}
.lang:hover { color: var(--accent); border-color: var(--accent); }
.lang b { color: var(--accent); font-weight: 700; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 8px;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.menu-btn { display: none; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: inline; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme]) .theme-toggle .i-moon { display: inline; }
}

@media (max-width: 819px) {
  .js .menu-btn { display: inline-grid; }
  .js .nav { display: none; }
  .js .nav.open { display: block; padding-bottom: 10px; }
  .js .nav ul { flex-direction: column; }
  .js .nav a { padding: 12px 10px; font-size: .95rem; }
}
@media (min-width: 820px) {
  .nav { order: 0; width: auto; margin-left: auto; }
  .tools { margin-left: 8px; }
  .nav a { font-size: .85rem; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.eyebrow { font-family: var(--mono); font-size: .85rem; color: var(--accent); margin-bottom: 8px; display: block; }
.section-title { font-size: clamp(1.6rem, 5vw, 2.1rem); font-weight: 700; margin-bottom: 32px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%);
}
.hero .wrap { position: relative; display: grid; gap: 40px; align-items: center; }
.prompt { font-family: var(--mono); color: var(--muted); font-size: .95rem; margin-bottom: 10px; }
.prompt .sym { color: var(--accent); }
.hero h1 { font-size: clamp(2.3rem, 9vw, 3.9rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.role { font-family: var(--mono); font-size: clamp(1rem, 3.6vw, 1.25rem); color: var(--accent); margin-bottom: 18px; }
.cursor {
  display: inline-block; width: .55em; height: 1.05em; margin-left: 4px; vertical-align: -.17em;
  background: var(--accent); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.lead { max-width: 56ch; color: var(--muted); font-size: 1.05rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: 8px; font-weight: 600; text-decoration: none; border: 1px solid var(--accent);
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--accent-soft); }

/* FOTOĞRAF: ileride <img class="avatar" src="/img/yasir.jpg" alt="Yasir ŞENEL"> koyup .monogram yerine kullan. */
.monogram {
  position: relative; justify-self: start; width: 180px; aspect-ratio: 1; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 800; font-size: 4.2rem; color: var(--accent);
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
}
.monogram::before, .monogram::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--accent); }
.monogram::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.monogram::after { bottom: -8px; right: -8px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.monogram small { position: absolute; bottom: 10px; left: 14px; font-size: .62rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
@media (min-width: 820px) {
  .hero { padding: 96px 0 104px; }
  .hero .wrap { grid-template-columns: 1fr auto; gap: 64px; }
  .monogram { width: 260px; font-size: 6rem; justify-self: center; }
}

/* ---------- About ---------- */
.about { display: grid; gap: 32px; }
.about p { max-width: 62ch; }
.facts { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; font-family: var(--mono); font-size: .85rem; }
.facts div { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--accent); min-width: 6.5em; }
.facts dd { margin: 0; color: var(--text); }
.facts { margin: 0; }
@media (min-width: 820px) { .about { grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); }
.card .ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.card .ico .icon { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tags li { font-family: var(--mono); font-size: .75rem; padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); background: var(--bg); }
.card .links { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; gap: 8px; }
.card .links a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .85rem; overflow-wrap: anywhere; }
.card .links .icon { width: 1em; height: 1em; }
.badge { font-family: var(--mono); font-size: .75rem; color: var(--accent); margin-bottom: 6px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-left: 8px; padding-left: 28px; border-left: 2px solid var(--border); display: grid; gap: 36px; }
.tl-item { position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: -37px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--accent);
}
.tl-item.current::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.tl-date { font-family: var(--mono); font-size: .85rem; color: var(--accent); margin-bottom: 4px; }
.tl-item h3 { font-size: 1.15rem; }
.tl-org { color: var(--muted); font-size: .95rem; margin: 2px 0 8px; }
.tl-item p:last-child { margin: 0; color: var(--muted); font-size: .95rem; max-width: 60ch; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact p { color: var(--muted); max-width: 52ch; margin-inline: auto; }
.mail {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 14px 22px; min-height: 48px;
  font-family: var(--mono); font-size: clamp(.95rem, 4.2vw, 1.2rem); font-weight: 600; text-decoration: none;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 10px; background: var(--accent-soft); overflow-wrap: anywhere;
}
.mail:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- Footer ---------- */
.site-footer { padding: 28px 0; border-top: 1px solid var(--border); color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.nf h1 { font-family: var(--mono); font-size: clamp(3rem, 14vw, 6rem); color: var(--accent); margin-bottom: 8px; }
.nf p { color: var(--muted); }
.nf .cta { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .card { transition: none; }
}

/* Hakkımda fotoğrafı */
.about-side{display:grid;gap:18px;align-content:start}
.about-foto{width:100%;height:auto;max-width:280px;aspect-ratio:1/1;object-fit:cover;border-radius:16px;border:1px solid var(--border);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 18%,transparent)}

/* YŞ çip logosu */
.brand-mark .ys-mini { width: 24px; height: 24px; }
.monogram .ys-cip { width: 78%; height: auto; overflow: visible; }
/* izlerin üstünden geçen "akım" ışığı */
.ys-cip .akim { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px var(--accent)); }
.ys-cip .akim path { stroke: #fff; stroke-width: 3.2; stroke-dasharray: 12 140; stroke-dashoffset: 152; animation: akim 3s linear infinite; }
:root[data-theme="light"] .ys-cip .akim { filter: drop-shadow(0 0 3px var(--accent)); }
.ys-cip .akim path:nth-child(2) { animation-delay: .5s; }
.ys-cip .akim path:nth-child(3) { animation-delay: 1s; }
.ys-cip .akim path:nth-child(4) { animation-delay: 1.6s; }
@keyframes akim { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ys-cip .akim { display: none; } }
/* neofetch kartı (hero) */
.neofetch { width: 100%; max-width: 460px; justify-self: center; font-family: var(--mono); font-size: .82rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.nf-bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; font-size: .72rem; color: var(--muted); background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.nf-dots { display: inline-flex; gap: 6px; }
.nf-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.nf-dots i:nth-child(2) { background: #f59e0b; }
.nf-dots i:nth-child(3) { background: #22c55e; }
.nf-body { padding: 16px 18px 18px; }
.nf-cmd { margin: 0 0 12px; color: var(--text); }
.nf-cmd span { color: var(--accent); }
.nf-grid { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: start; }
.nf-logo { color: var(--accent); }
.nf-logo .ys-cip { width: 100%; height: auto; display: block; overflow: visible; }
.nf-out p { margin: 0; }
.nf-host { color: var(--text); }
.nf-host b { color: var(--accent); font-weight: 700; }
.nf-sep { color: var(--muted); letter-spacing: .05em; margin-bottom: 4px !important; }
.nf-info { margin: 0; }
.nf-info > div { display: flex; gap: 8px; line-height: 1.75; }
.nf-info dt { color: var(--accent); font-weight: 700; flex: none; }
.nf-info dt::after { content: ":"; }
.nf-info dd { margin: 0; color: var(--text); }
.nf-renk { display: flex; gap: 0; margin-top: 10px !important; }
.nf-renk i { width: 20px; height: 12px; }
.nf-renk i:nth-child(1) { background: #0b1220; } .nf-renk i:nth-child(2) { background: #ef4444; }
.nf-renk i:nth-child(3) { background: #22c55e; } .nf-renk i:nth-child(4) { background: #f59e0b; }
.nf-renk i:nth-child(5) { background: #3b82f6; } .nf-renk i:nth-child(6) { background: #a855f7; }
.nf-renk i:nth-child(7) { background: #22d3ee; } .nf-renk i:nth-child(8) { background: #e6edf6; }
/* satırlar terminal çıktısı gibi sırayla belirir */
.nf-out > *, .nf-info > div { animation: nf-gel .35s ease-out both; }
.nf-host { animation-delay: .5s; } .nf-sep { animation-delay: .6s; }
.nf-info > div:nth-child(1) { animation-delay: .7s; } .nf-info > div:nth-child(2) { animation-delay: .8s; }
.nf-info > div:nth-child(3) { animation-delay: .9s; } .nf-info > div:nth-child(4) { animation-delay: 1s; }
.nf-info > div:nth-child(5) { animation-delay: 1.1s; } .nf-info > div:nth-child(6) { animation-delay: 1.2s; }
.nf-info > div:nth-child(7) { animation-delay: 1.3s; } .nf-renk { animation-delay: 1.45s; }
.nf-info { animation: none !important; }
@keyframes nf-gel { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nf-out > *, .nf-info > div { animation: none; } }
@media (max-width: 420px) { .neofetch { font-size: .74rem; } .nf-grid { grid-template-columns: 64px 1fr; gap: 12px; } .nf-body { padding: 14px; } }
/* dar ekran başlık */
@media (max-width: 380px) { .bar { flex-wrap: nowrap; gap: 8px; } .brand { gap: 8px; font-size: .95rem; } .tools { gap: 6px; } .tools .lang, .tools button { padding-left: 8px; padding-right: 8px; min-width: 40px; } }

/* daktilo efekti: yazılmamış kısım yer tutar ama görünmez (sayfa zıplamaz) */
.tw-kalan { visibility: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.yaziyor .cursor { animation: none; opacity: 1; }
