/* Daktilo widget — yeniden kullanılabilir sanal klavye stilleri */

.dk-keyboard {
  background: #fff;
  border: 1px solid #e8e5dd;
  border-radius: 12px;
  padding: 10px 10px 12px;
  margin-top: 12px;
  max-width: 920px;
  font-family: -apple-system, system-ui, sans-serif;
}

.dk-keyboard .dk-row {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
  justify-content: center;
}
.dk-keyboard .dk-row.r2 { padding: 0 18px; }
.dk-keyboard .dk-row.r3 { padding: 0 36px; }

.dk-keyboard .dk-key {
  flex: 1;
  min-width: 0;
  background: #fafaf7;
  border: 1px solid #e8e5dd;
  border-radius: 7px;
  padding: 6px 4px 4px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.08s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-height: 50px;
  justify-content: center;
  font-family: inherit;
}
.dk-keyboard .dk-key:hover {
  background: #fff;
  border-color: #2c5f2d;
  transform: translateY(-1px);
}
.dk-keyboard .dk-key:active,
.dk-keyboard .dk-key.active {
  background: #2c5f2d;
  border-color: #2c5f2d;
  color: #fff;
  transform: translateY(0);
}
.dk-keyboard .dk-key:active .dk-ar,
.dk-keyboard .dk-key.active .dk-ar { color: #fff; }

.dk-keyboard .dk-latin {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 10px;
  color: #999;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.dk-keyboard .dk-ar {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: 19px;
  color: #1a1a1a;
  line-height: 1;
  direction: rtl;
}
.dk-keyboard .dk-key.special .dk-ar { font-size: 13px; color: #666; }
.dk-keyboard .dk-key.wide { flex: 2; }
.dk-keyboard .dk-key.spacebar { flex: 8; }

.dk-keyboard .dk-key.shift-key {
  background: #fff3e0;
  border-color: #ffd180;
}
.dk-keyboard .dk-key.shift-key:active,
.dk-keyboard .dk-key.shift-key.held {
  background: #e65100;
  border-color: #e65100;
  color: #fff;
}
.dk-keyboard .dk-key.shift-key.held .dk-latin { color: #fff; }

.dk-keyboard.shift-active .dk-key {
  background: #fff8e1;
  border-color: #ffd54f;
}

/* Editör Daktilo modunda olduğunda hafif vurgu */
.daktilo-active {
  outline: 2px solid #ffe0b2;
  outline-offset: 0;
  background: #fffdf6;
}

/* Toggle düğmesi */
.dk-toggle-btn {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #e8e5dd;
  background: #fff;
  color: #444;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dk-toggle-btn:hover {
  border-color: #2c5f2d;
  color: #2c5f2d;
}
.dk-toggle-btn.active {
  background: #2c5f2d;
  color: #fff;
  border-color: #2c5f2d;
}
.dk-toggle-btn .dk-toggle-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
}
.dk-toggle-btn.active .dk-toggle-dot { background: #fff; }

@media (max-width: 640px) {
  .dk-keyboard .dk-key { min-height: 42px; padding: 4px 2px 3px; }
  .dk-keyboard .dk-ar { font-size: 16px; }
  .dk-keyboard .dk-latin { font-size: 9px; }
}
