/* ============================================================================
   vaultUniverse.css — Vault graph layout modes + merge strip (v2, 2026-06-10)
   v2: the legacy Obsidian-style chrome (filters / search / hint) is VISIBLE
   again — Atakan wanted the old feel back. This file only styles the layout-
   mode pills, the ring/tree canvas hosts and the merge-intelligence strip.
   ============================================================================ */

.vu-shell { display: flex; flex-direction: column; height: 100%; min-height: 540px; }

/* layout-mode pills — the graph's "ayarlar" row */
.vu-modes {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 2px;
}
.vu-modes-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: rgba(170, 192, 226, 0.55); margin-right: 4px; text-transform: uppercase;
}
.vu-modes button {
  padding: 5px 14px; font-size: 12px; font-weight: 600;
  color: rgba(170, 192, 226, 0.85); background: rgba(22, 58, 107, 0.16);
  border: 1px solid rgba(63, 111, 187, 0.26); border-radius: 999px; cursor: pointer;
  transition: all 0.18s;
}
.vu-modes button:hover { color: #fff; border-color: rgba(95, 140, 210, 0.5); }
.vu-modes button.is-on {
  color: #fff; background: var(--accent, #2f5ca8); border-color: transparent;
  box-shadow: 0 6px 18px -10px rgba(47, 92, 168, 0.9);
}

/* hosts */
.vu-host { flex: 1 1 auto; min-height: 420px; position: relative; }
.vu-host--force { display: flex; flex-direction: column; }
.vu-host--canvas {
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(63, 111, 187, 0.22);
  background:
    radial-gradient(120% 90% at 80% 8%, rgba(47, 92, 168, 0.14), transparent 55%),
    radial-gradient(140% 110% at 50% 100%, rgba(22, 58, 107, 0.3), transparent 62%),
    linear-gradient(180deg, #0a1020 0%, #070b16 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 40px -22px rgba(0, 0, 0, 0.7);
}
.vu-host--canvas::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(95, 140, 210, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 140, 210, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(130% 115% at 50% 55%, rgba(0,0,0,0.9), transparent 82%);
  pointer-events: none;
}
.vu-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: default; }
.vu-canvas.vu-hot { cursor: pointer; }

.vu-back {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 6px 14px; font-size: 12px; font-weight: 600;
  color: rgba(170, 192, 226, 0.9); background: rgba(22, 58, 107, 0.3);
  border: 1px solid rgba(63, 111, 187, 0.35); border-radius: 999px; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, color 0.2s, transform 0.18s;
}
.vu-back:hover { background: rgba(47, 92, 168, 0.45); color: #fff; transform: translateX(-2px); }

/* merge-intelligence strip */
.vu-suggest {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(63, 111, 187, 0.18);
  border-radius: 12px;
  background: rgba(13, 24, 44, 0.5);
  font-size: 12px;
}
.vu-s-label { font-weight: 700; color: #9fd9c3; white-space: nowrap; }
.vu-s-titles { color: #dfe9f8; font-weight: 600; max-width: 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vu-s-reason { color: rgba(170, 192, 226, 0.55); font-size: 11px; }
.vu-s-note { color: #9fd9c3; font-weight: 600; }
.vu-btn {
  padding: 5px 14px; font-size: 11px; font-weight: 700;
  color: rgba(170, 192, 226, 0.9); background: transparent;
  border: 1px solid rgba(63, 111, 187, 0.32); border-radius: 999px; cursor: pointer;
  transition: all 0.18s;
}
.vu-btn:hover { color: #fff; border-color: rgba(95, 140, 210, 0.55); }
.vu-btn--go { color: #fff; background: var(--accent, #2f5ca8); border-color: transparent; }
.vu-btn--go:hover { filter: brightness(1.12); }
.vu-btn:disabled { opacity: 0.5; cursor: wait; }
.vu-auto {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: rgba(170, 192, 226, 0.6);
  cursor: pointer; user-select: none; white-space: nowrap;
}
.vu-auto input { accent-color: var(--accent, #2f5ca8); }

/* readout (ring/tree modes only) */
.vu-readout {
  min-height: 50px;
  display: flex; flex-direction: column; gap: 3px; justify-content: center;
  margin-top: 8px; padding: 8px 14px;
  border: 1px solid rgba(63, 111, 187, 0.14);
  border-radius: 12px;
  background: rgba(13, 24, 44, 0.4);
}
.vu-r-title { font-size: 13px; font-weight: 700; color: #e6eefb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vu-r-sub { font-size: 11px; line-height: 1.45; color: rgba(178, 200, 232, 0.7); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vu-r-hint { font-size: 10px; color: rgba(150, 182, 230, 0.5); letter-spacing: 0.02em; }
.vu-muted { font-size: 12px; color: rgba(170, 192, 226, 0.5); }
.vu-chip {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 1px 8px; border-radius: 999px;
  border: 1px solid rgba(63, 111, 187, 0.32);
  color: rgba(160, 196, 245, 0.92); background: rgba(47, 92, 168, 0.16);
  vertical-align: 1px;
}

@media (prefers-reduced-motion: reduce) {
  .vu-back, .vu-btn, .vu-modes button { transition: none; }
  .vu-back:hover { transform: none; }
}

/* ── v3 MERKEZ: typewriter özet + caret (sağ okuma alanı biraz büyüdü) ── */
.vu-readout { min-height: 84px; }
.vu-r-body {
  font-size: 11.5px; line-height: 1.6;
  color: rgba(205, 214, 230, 0.78);
  max-height: 64px; overflow: hidden;
  word-break: break-word;
}
.vu-caret {
  display: inline-block; width: 6px; height: 12px;
  margin-left: 1px; vertical-align: -2px;
  background: rgba(220, 230, 245, 0.8);
  animation: vuCaret 0.9s steps(1) infinite;
}
@keyframes vuCaret { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .vu-caret { animation: none; } }
