/* ============================================================================
   keycode-info.css — Tool-spezifische Styles für KEYCODE INFO
   Geladen auf: tools/keycode-info.php  (NACH main-vhc.css)
   ============================================================================ */

/* ── Seitenbereich ───────────────────────────────── */

body.tool-page main {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 20px 52px;
}

/* ── Tool-Header ─────────────────────────────────── */

.kc-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.kc-icon {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto 1rem;
}

.kc-title {
  font-family: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--neon1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.45);
  margin: 0 0 0.5rem 0;
}

.kc-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0;
}

/* ── Einleitungszeile ────────────────────────────── */

.kc-intro {
  max-width: 620px;
  margin: 0 auto 1.6rem;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
  font-family: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
}

.kc-iinline {
  vertical-align: middle;
  margin: 0 0.1rem;
}

/* ── Wrapper ─────────────────────────────────────── */

.tool-wrap {
  width: 100%;
  max-width: 680px;
}

/* ── Großes Tasten-Display ───────────────────────── */

.kc-keybox {
  background: #090f1c;
  border: 1px solid #1a2840;
  border-radius: 6px;
  padding: 2.2rem 1rem 1.6rem;
  text-align: center;
  margin-bottom: 1.2rem;
}

.kc-key {
  font-family: 'Orbitron', 'Courier New', monospace;
  font-size: clamp(2.4rem, 9vw, 4.2rem);
  font-weight: 700;
  color: var(--neon1);
  text-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
  line-height: 1.1;
  word-break: break-word;
  min-height: 1.2em;
}

.kc-hint {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 0.8rem;
}

/* ── Modifier-Badges ─────────────────────────────── */

.kc-mods {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.kc-mod {
  background: #0c1220;
  border: 1px solid #1a2840;
  color: var(--muted);
  font-size: 0.74rem;
  font-family: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.9rem;
  border-radius: 2px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.kc-mod.active {
  background: #01202e;
  border-color: var(--neon1);
  color: var(--neon1);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

/* ── Eigenschaften-Liste ─────────────────────────── */

.kc-props {
  background: #090f1c;
  border: 1px solid #1a2840;
  border-radius: 4px;
  padding: 0.4rem 1.1rem;
  margin-bottom: 1.4rem;
}

.kc-prop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #0d1525;
}

.kc-prop:last-child {
  border-bottom: none;
}

.kc-prop-name {
  font-family: 'Courier New', monospace;
  font-size: 0.84rem;
  color: var(--muted);
}

.kc-prop-name em {
  font-style: normal;
  font-size: 0.66rem;
  color: #ffaa40;
  letter-spacing: 0.04em;
}

/* Linke Gruppe: Info-[i] + Property-Name */
.kc-prop-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

/* Klickbares Info-[i] (Basis-Look kommt aus .info-i in main-vhc.css) */
.kc-info {
  cursor: pointer;
  pointer-events: auto;
  padding: 0;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.kc-info:hover,
.kc-info.active {
  background: rgba(30, 144, 255, 0.25);
  box-shadow: 0 0 12px rgba(30, 144, 255, 0.6);
}

.kc-prop-val {
  font-family: 'Consolas', 'SF Mono', 'Menlo', 'Courier New', monospace;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--neon4);
  text-align: right;
  word-break: break-all;
}

/* ── Verlauf ─────────────────────────────────────── */

.kc-history {
  width: 100%;
}

.kc-hist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.kc-hist-lbl {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.kc-clear {
  background: none;
  border: 1px solid #2e4a72;
  color: var(--muted);
  font-size: 0.68rem;
  font-family: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.kc-clear:hover {
  border-color: var(--neon1);
  color: var(--neon1);
}

.kc-hist-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2.2rem;
}

.kc-hist-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  background: #0c1220;
  border: 1px solid #1a2840;
  border-radius: 2px;
  padding: 0.4rem 0.7rem;
}

.kc-hist-key {
  font-family: 'Orbitron', 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--neon1);
}

.kc-hist-code {
  font-family: 'Courier New', monospace;
  font-size: 0.66rem;
  color: var(--muted);
}

/* ── Schwebendes Info-Tooltip ────────────────────── */

.kc-tooltip {
  position: fixed;
  z-index: 9999;
  background: #0d1220;
  border: 1px solid rgba(30, 144, 255, 0.5);
  border-radius: 6px;
  padding: 10px 14px;
  max-width: 280px;
  font-family: 'Exo 2', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.55;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(30, 144, 255, 0.1);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
}

.kc-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 680px) {
  .kc-title {
    font-size: 2rem;
  }
}
