/* ============================================================
   Kaan Bilgili — Araç sayfaları · tools.css
   Ana sitenin tasarım dilini paylaşır (style.css token'ları)
   ============================================================ */

:root {
  --bg: #060606;
  --bg-raised: #111110;
  --ink: #f1f1ec;
  --ink-2: #a3a39b;
  --ink-3: #66665f;
  --line: rgba(241, 241, 236, 0.08);
  --line-2: rgba(241, 241, 236, 0.16);
  --accent: #a9b27c;
  --accent-ink: #c4cb9f;
  --accent-soft: rgba(169, 178, 124, 0.14);
  --glass: rgba(20, 20, 19, 0.55);
  --warn: #c98a6a;

  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

:root[data-theme='light'] {
  --bg: #f2f2ec;
  --bg-raised: #e7e7df;
  --ink: #121210;
  --ink-2: #52524c;
  --ink-3: #8a8a82;
  --line: rgba(18, 18, 16, 0.09);
  --line-2: rgba(18, 18, 16, 0.18);
  --accent: #5d6b35;
  --accent-ink: #4c5829;
  --accent-soft: rgba(93, 107, 53, 0.12);
  --glass: rgba(242, 242, 236, 0.6);
  --warn: #a4563a;

  color-scheme: light;
}

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

/* Üstte hafif haki ışıma */
body::before {
  content: '';
  position: fixed;
  inset: -20vh 0 auto;
  height: 70vh;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 50% 0%, var(--accent-soft), transparent 70%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--accent); color: var(--bg); }

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

/* ---------- Nav ---------- */
.t-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.t-nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  height: 68px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.t-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.t-brand svg { width: 22px; height: 22px; color: var(--accent); }

.t-switch {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--glass);
  font-size: 13px;
}

.t-switch a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.2s, background-color 0.3s var(--ease);
}

.t-switch a:hover { color: var(--ink); }

.t-switch a[aria-current='page'] {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}

.t-icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--glass);
  color: var(--ink-2);
  transition: color 0.2s, border-color 0.2s;
}

.t-icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.t-icon-btn svg { width: 16px; height: 16px; }

.icon-sun { display: none; }
[data-theme='light'] .icon-sun { display: block; }
[data-theme='light'] .icon-moon { display: none; }

/* ---------- Page ---------- */
.t-main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 10vh, 96px) var(--gutter) 64px;
}

.t-head { margin-bottom: 36px; }

.t-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.t-title {
  margin-top: 16px;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.t-title strong { font-weight: 600; }

.t-desc {
  margin-top: 14px;
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 16px;
}

.t-card {
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: clamp(20px, 3.5vw, 32px);
}

.t-label {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.t-input,
.t-textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.3s var(--ease);
}

.t-input { height: 46px; padding: 0 16px; }
.t-textarea { min-height: 200px; padding: 16px 18px; line-height: 1.7; resize: vertical; }

.t-input::placeholder,
.t-textarea::placeholder { color: var(--ink-3); }

.t-input:focus,
.t-textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  transition: box-shadow 0.35s var(--ease), transform 0.2s var(--ease);
}

.t-btn:hover { box-shadow: 0 0 0 5px var(--accent-soft), 0 10px 36px -8px color-mix(in srgb, var(--accent) 55%, transparent); }
.t-btn:active { transform: scale(0.98); }

.t-btn-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: -14px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  transition: transform 0.4s var(--ease);
}

.t-btn-icon svg { width: 14px; height: 14px; }
.t-btn:hover .t-btn-icon { transform: rotate(-45deg); }

.t-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.t-foot a { transition: color 0.2s; }
.t-foot a:hover { color: var(--ink); }

/* Giriş animasyonu */
.t-in {
  animation: t-rise 1s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 90ms + 80ms);
}

@keyframes t-rise {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 720px) {
  .t-switch { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
