/* ============================================
   tektik.la — tools.css
   Araç sayfaları için ortak stil sistemi
   Versiyon: 1.0 (Mayıs 2026)
   ============================================ */

/* TEMALAR */
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --border: #2a2a2a;
  --text: #f0f0f0;
  --text2: #888;
  --accent: #c8f530;
  --accent2: #a0d020;
  --card: #141414;
  --input-bg: #0f0f0f;
}

:root[data-theme="light"] {
  --bg: #f5f5f0;
  --bg2: #eeede8;
  --bg3: #e5e4de;
  --border: #d0cfc8;
  --text: #111111;
  --text2: #666;
  --accent: #5a9e00;
  --accent2: #4a8500;
  --card: #ffffff;
  --input-bg: #fafaf8;
}

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

/* TEMEL */
body {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

/* GRİD ARKA PLAN */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    linear-gradient(var(--text) 1px, transparent 1px),
    linear-gradient(90deg, var(--text) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.logo span { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ARAÇ SAYFA LAYOUT */
.tool-page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.tool-tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-tag::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.tool-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 10px;
}

.tool-title em {
  font-style: normal;
  color: var(--accent);
}

.tool-desc {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* KART */
.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
}

/* BUTONLAR */
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  border-radius: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.1s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent2);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost:active {
  transform: translate(2px, 2px);
}

/* HEADER CTRL BUTONU */
.ctrl-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.ctrl-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* INPUT */
.tool-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
}

.tool-input:focus { border-color: var(--accent); }

.tool-input::placeholder { color: var(--text2); }

/* TEXTAREA */
.tool-textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.tool-textarea:focus { border-color: var(--accent); }

/* RESULT KUTUSU */
.result-box {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 12px;
}

.result-box.visible { display: flex; }

.result-url {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  flex: 1;
  word-break: break-all;
}

/* STATUS MESAJI */
.status {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--text2);
  min-height: 18px;
  margin-top: 8px;
}

.status.error { color: #e55; }
.status.success { color: var(--accent); }

/* HARD SHADOW — hover efekti */
.card-hover {
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.15s;
}

.card-hover:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px 0px var(--accent);
}

/* ARAÇ SONUÇ SATIRI */
.tool-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}

.tool-result-row:hover { border-color: var(--accent); }

.tool-result-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 3px;
}

.tool-result-value {
  font-size: 16px;
  color: var(--text);
  word-break: break-all;
}

/* FOOTER */
.tool-footer {
  border-top: 1px solid var(--border);
  padding: 20px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.tool-footer p,
.tool-footer a {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text2);
  text-decoration: none;
}

.tool-footer a:hover { color: var(--accent); }

/* ANİMASYON */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.4s ease both; }

/* MOBİL */
@media (max-width: 600px) {
  .header-inner { padding: 14px 20px; }
  .tool-page    { padding: 32px 20px 60px; }
  .tool-card    { padding: 20px; }
  .tool-footer  { padding: 16px 20px; }
}
