/* Changelog Parser — Vibrant Gradient theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #8B5CF6;
  --primary-dim: rgba(139,92,246,0.12);
  --primary-glow: rgba(139,92,246,0.3);
  --added: #10B981;
  --added-dim: rgba(16,185,129,0.12);
  --changed: #3B82F6;
  --changed-dim: rgba(59,130,246,0.12);
  --deprecated: #F59E0B;
  --deprecated-dim: rgba(245,158,11,0.12);
  --removed: #EF4444;
  --removed-dim: rgba(239,68,68,0.12);
  --fixed: #06B6D4;
  --fixed-dim: rgba(6,182,212,0.12);
  --security: #EC4899;
  --security-dim: rgba(236,72,153,0.12);
  --bg: #0F0B1E;
  --bg-card: #1A1432;
  --bg-input: #0C0818;
  --border: rgba(139,92,246,0.12);
  --text: #E8E0F8;
  --text-dim: #9B8AC0;
  --text-muted: #5B4D7A;
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --transition: 0.2s ease;
}

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; }

.header { border-bottom: 1px solid var(--border); background: rgba(26,20,50,0.95); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.header-inner { max-width: 700px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; }
.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); }

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

.input-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.panel-header { padding: 8px 14px; border-bottom: 1px solid var(--border); }
.panel-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.code-editor { width: 100%; min-height: 160px; padding: 12px 14px; font-family: var(--mono); font-size: 0.75rem; line-height: 1.6; color: var(--text-dim); background: var(--bg-input); border: none; outline: none; resize: vertical; }

.toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
.search-input { flex: 1; padding: 7px 10px; font-family: var(--font); font-size: 0.78rem; color: var(--text); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); outline: none; }
.search-input:focus { border-color: rgba(139,92,246,0.4); }
.filter-select { padding: 7px 8px; font-family: var(--font); font-size: 0.75rem; color: var(--text-dim); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); outline: none; cursor: pointer; }

.versions { display: flex; flex-direction: column; gap: 10px; }
.version-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.version-header { padding: 10px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.version-tag { font-family: var(--mono); font-size: 0.88rem; font-weight: 700; color: var(--primary); }
.version-date { font-size: 0.68rem; color: var(--text-muted); }
.version-body { padding: 8px 14px; }

.change-type { font-size: 0.68rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; display: inline-block; margin: 6px 0 4px; }
.change-type.Added { background: var(--added-dim); color: var(--added); }
.change-type.Changed { background: var(--changed-dim); color: var(--changed); }
.change-type.Deprecated { background: var(--deprecated-dim); color: var(--deprecated); }
.change-type.Removed { background: var(--removed-dim); color: var(--removed); }
.change-type.Fixed { background: var(--fixed-dim); color: var(--fixed); }
.change-type.Security { background: var(--security-dim); color: var(--security); }

.change-item { font-size: 0.78rem; color: var(--text-dim); padding: 2px 0 2px 12px; position: relative; }
.change-item::before { content: '•'; position: absolute; left: 0; color: var(--text-muted); }

.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: 0 4px 24px rgba(0,0,0,0.5); font-size: 0.82rem; animation: toastIn 0.3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
