/* Sistem Analizi sayfasındaki test bölümleri */
[hidden] { display: none !important; }
.sayfa-menu {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-width: 800px; margin: 0 auto 8px;
}
.sayfa-menu a {
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--text); font-size: .875rem;
}
.sayfa-menu a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.test-section { max-width: 800px; margin: 48px auto 0; scroll-margin-top: 16px; }
.test-section > h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.bolum-not { font-size: .9rem; color: var(--text-secondary); margin-bottom: 16px; max-width: 64ch; line-height: 1.55; }
.test-section > h2 + .test-card, .test-section > h2 + .test-grid, .test-section > h2 + div { margin-top: 16px; }

.test-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.test-grid.uclu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.test-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 16px; min-width: 0;
}
.test-grid > .test-card { margin-bottom: 0; }
.test-card h3 { font-size: 1.05rem; font-weight: 700; }
.test-card p { font-size: .88rem; color: var(--text-secondary); line-height: 1.55; }
.test-card .btn { margin-top: auto; }
.test-card p.kucuk { font-size: .8rem; }
.test-card.yatay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 12px 28px; }
.test-card.yatay .btn { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }

.kart-ust { display: flex; justify-content: space-between; gap: 20px; width: 100%; align-items: flex-start; }
.kart-ust .btn { margin-top: 0; flex-shrink: 0; }

.test-swatch { display: flex; gap: 4px; }
.test-swatch span { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--border); }
.test-swatch.genis span { width: 106px; }
.desen-izgara { background: repeating-conic-gradient(#13202e 0 25%, #fff 0 50%) 0 0 / 4px 4px; }
.desen-hareket { background: linear-gradient(90deg, #13202e 0 60%, #1f5bff 60% 72%, #13202e 72%); }

/* Okuma tablosu */
.okuma { width: 100%; margin: 0; }
.okuma div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--border); font-size: .85rem; }
.okuma dt { color: var(--text-secondary); }
.okuma dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.okuma.satir { display: flex; flex-wrap: wrap; gap: 0 28px; }
.okuma.satir div { flex: 1 1 160px; }
.okuma.buyuk dd { font-size: 1.15rem; }

/* Klavye */
.klavye { width: 100%; overflow-x: auto; padding: 4px 0 8px; }
.klavye-ic { display: flex; flex-direction: column; gap: 4px; min-width: 640px; }
.klavye-sira { display: flex; gap: 4px; }
.klavye-sira.bosluklu { margin-bottom: 6px; }
.tus {
  flex: 1 1 0; min-width: 0; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface2);
  font-size: .72rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden;
  transition: background .08s;
}
.tus.ara { visibility: hidden; }
.tus.test-edildi { background: #dbe6ff; border-color: #a9c0ff; color: var(--text); }
.tus.basili { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Fare */
.fare-alan {
  width: 100%; height: 150px; border: 2px dashed var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: flex-end; justify-content: center; padding: 12px;
  background: var(--surface2); cursor: crosshair; user-select: none; touch-action: none;
}
.fare-alan:focus-visible, .fare-alan.aktif { border-color: var(--accent); }
.fare-tuslar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.fare-tuslar span {
  padding: 5px 10px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--surface); font-size: .78rem; color: var(--text-secondary);
}
.fare-tuslar span.test-edildi { background: #dbe6ff; border-color: #a9c0ff; color: var(--text); }
.fare-tuslar span.basili { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Dokunma */
.dokunma-alan {
  width: 100%; height: 150px; border: 2px dashed var(--border); border-radius: var(--radius-sm);
  background: var(--surface2); touch-action: none; display: block;
}

/* Oyun kolu */
.kol-liste { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.kol { border-top: 1px solid var(--border); padding-top: 12px; }
.kol-ad { font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.kol-tuslar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.kol-tuslar span {
  min-width: 32px; padding: 4px 6px; text-align: center; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface2); font-size: .75rem;
}
.kol-tuslar span.basili { background: var(--accent); border-color: var(--accent); color: #fff; }
.kol-eksenler { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.kol-eksen { font-size: .75rem; color: var(--text-secondary); }
.kol-eksen .cubuk { height: 6px; border-radius: 3px; background: var(--surface2); position: relative; margin-top: 4px; }
.kol-eksen .cubuk i { position: absolute; top: -2px; width: 4px; height: 10px; border-radius: 2px; background: var(--accent); }

/* Ses */
.dugme-grup { display: flex; gap: 6px; flex-wrap: wrap; }
.dugme-grup .btn { margin-top: 0; }
.seviye { width: 100%; height: 12px; border-radius: 6px; background: var(--surface2); overflow: hidden; border: 1px solid var(--border); }
.seviye span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .05s linear; }
.kamera-kutu { width: 100%; aspect-ratio: 16 / 9; background: #13202e; border-radius: var(--radius-sm); overflow: hidden; }
.kamera-kutu video { width: 100%; height: 100%; object-fit: contain; display: block; }

@media (max-width: 760px) {
  .test-grid, .test-grid.uclu { grid-template-columns: 1fr; }
  .test-card.yatay { grid-template-columns: 1fr; }
  .kart-ust { flex-direction: column; }
}

/* Kamera (geniş kart) */
.kamera-duzen { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; width: 100%; align-items: start; }
.kamera-yan { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kamera-yan .btn { margin-top: 0; align-self: flex-start; }
.secim { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--text-secondary); }
.secim select {
  font: inherit; font-size: .88rem; color: var(--text); background: var(--surface2);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; max-width: 100%;
}

/* Telefon */
.desen-izgara-iri { background: repeating-linear-gradient(90deg, #30a46c 0 9px, #fff 9px 10px), #30a46c; background-blend-mode: normal; }
.su-terazisi {
  position: relative; width: 120px; height: 120px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--surface2); align-self: center;
}
.su-terazisi::before, .su-terazisi::after { content: ""; position: absolute; background: var(--border); }
.su-terazisi::before { left: 50%; top: 8px; bottom: 8px; width: 1px; }
.su-terazisi::after { top: 50%; left: 8px; right: 8px; height: 1px; }
.su-terazisi span {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; background: var(--accent); transition: transform .08s linear;
}

@media (max-width: 760px) {
  .kamera-duzen { grid-template-columns: 1fr; }
}
