/* GPG Key Inspector — Amber Gold theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #F39C12;
  --primary-dim: rgba(243,156,18,0.12);
  --primary-glow: rgba(243,156,18,0.3);
  --secondary: #FFEAA7;
  --accent: #00CEC9;
  --accent-dim: rgba(0,206,201,0.12);
  --bg: #1A150A;
  --bg-card: #241E10;
  --bg-input: #120E06;
  --bg-hover: #302818;
  --border: rgba(243,156,18,0.15);
  --border-focus: rgba(243,156,18,0.5);
  --text: #F4ECD8;
  --text-dim: #B5A882;
  --text-muted: #6B5E42;
  --green: #34D399;
  --red: #F87171;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --transition: 0.2s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; }
body::before { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse at top, rgba(243,156,18,0.05), transparent 50%); pointer-events: none; }

.header { border-bottom: 1px solid var(--border); background: rgba(36,30,16,0.9); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.header-inner { max-width: 900px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.header-left { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 1.2rem; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--primary-dim); border-radius: var(--radius-sm); }
.header h1 { font-size: 1.05rem; font-weight: 700; }
.subtitle { font-size: 0.72rem; color: var(--text-dim); }
.header-actions { display: flex; gap: 6px; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font-family: var(--font); font-size: 0.8rem; font-weight: 500; border: none; border-radius: 6px; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #D68910); color: #1A150A; font-weight: 600; }
.btn-primary:hover { box-shadow: 0 4px 16px var(--primary-glow); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-dim); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--primary); background: var(--primary-dim); }
.btn-sm { padding: 5px 10px; font-size: 0.78rem; }

.main { max-width: 900px; margin: 0 auto; padding: 20px; }

.key-editor { width: 100%; padding: 14px; font-family: var(--mono); font-size: 0.82rem; line-height: 1.7; color: var(--text); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); outline: none; resize: vertical; }
.key-editor:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--primary-dim); }
.key-editor::placeholder { color: var(--text-muted); }
.input-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.status-text { font-size: 0.78rem; color: var(--text-muted); }

.results { margin-top: 20px; }
.result-grid { display: grid; gap: 12px; }

.result-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.result-card h3 { font-size: 0.82rem; font-weight: 600; color: var(--primary); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }

.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(243,156,18,0.06); }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: 0.78rem; color: var(--text-dim); }
.detail-value { font-size: 0.82rem; font-family: var(--mono); color: var(--text); word-break: break-all; text-align: right; max-width: 60%; }
.detail-value.highlight { color: var(--accent); }

.subkey-item { background: var(--bg); border: 1px solid rgba(243,156,18,0.08); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 6px; font-size: 0.78rem; }
.subkey-item .label { color: var(--text-dim); }
.subkey-item .value { font-family: var(--mono); color: var(--text); }

.uid-item { padding: 6px 10px; background: var(--accent-dim); border-radius: 6px; margin-bottom: 4px; font-size: 0.82rem; color: var(--accent); }

.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column-reverse; gap: 8px; }
.toast { padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: 0.82rem; animation: toastIn 0.3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 8px; }
  .detail-value { max-width: 55%; }
}
