/* =========================
   HiTPANEL Changelog – WOW Pack (no red)
   polished visuals • dark mode • motion aware
   ========================= */
:root {
  --bg: #ffffff;
  --text: #0f172a; /* slate-900 */
  --muted: #475569; /* slate-600 */
  --card: #ffffff;
  --ring: #e2e8f0; /* slate-200 */
  --brand: #0ea5e9; /* sky-500 */
  --brand-600: #0284c7; /* sky-600 */
  --glow: 0 10px 30px rgba(2, 132, 199, .15);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --text: #e6edf7;
    --muted: #98a2b3;
    --card: #0f172a;
    --ring: #1e293b;
    --brand: #38bdf8;
    --brand-600: #0ea5e9;
    --glow: 0 10px 30px rgba(56, 189, 248, .25);
  }
}

/* Base */
html, body { background: var(--bg); color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; margin: 0; padding: 0; }
* { box-sizing: border-box; }

body { padding: 40px 20px; }

/* Header with subtle animated gradient underline */
header { text-align: center; margin-bottom: 40px; border-bottom: 1px solid var(--ring); padding-bottom: 16px; }
header h1 { font-size: 2.5em; margin: 0 0 10px 0; color: var(--text); letter-spacing: .2px; }
header h1::after { content: ""; display: block; height: 3px; width: 96px; margin: 8px auto 0; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--brand), transparent); animation: shimmer 2.8s linear infinite; }
header p { margin: 0; color: var(--muted); }

/* Centered content area */
.container { max-width: 920px; margin: 0 auto; padding: 0 6px; }

/* Features panel (blue accents, not red) */
.features { position: sticky; top: 0; z-index: 10; margin: .85rem auto 1.25rem; padding: 1rem 1.1rem; border: 1px solid var(--ring); border-radius: 14px; background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 6%, var(--card)), var(--card)); box-shadow: var(--glow); }
.features h2 { margin: 0 0 .5rem 0; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-600); }
.features ul { margin: 0; padding-left: 1.2rem; }
.features li { line-height: 1.6; }
.features li::marker { content: "✔ "; color: var(--brand-600); }

/* Changelog card */
.changelog-entry { background: var(--card); border-left: 5px solid var(--brand-600); padding: 20px; margin: 0 auto 20px; border-radius: 12px; box-shadow: 0 8px 24px rgba(2, 8, 23, 0.06); border-top: 1px solid var(--ring); border-right: 1px solid var(--ring); border-bottom: 1px solid var(--ring); animation: rise .5s ease both; }
.changelog-entry h2 { margin: 0 0 10px; font-size: 1.5em; color: var(--text); }
.changelog-entry p { margin: 0; font-size: 1rem; color: var(--muted); }

/* Date pill */
.date { font-size: 0.9rem; color: var(--brand-600); margin-bottom: 10px; display: inline-block; background: color-mix(in oklab, var(--brand) 18%, var(--card)); padding: .28rem .65rem; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--brand) 40%, var(--ring)); }

/* "Neu" box with subtle conic highlight */
.new-box { position: relative; border: 1px solid var(--ring); border-radius: 14px; padding: 1rem 1.1rem; background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 6%, var(--card)), var(--card)); overflow: hidden; }
.new-box::before { content: ""; position: absolute; inset: -200% -50%; background: conic-gradient(from 180deg at 50% 50%, transparent 0 45deg, rgba(56,189,248,.12) 60deg 120deg, transparent 135deg 360deg); animation: sweep 6s linear infinite; }
.new-box h3 { position: relative; margin-top: 0; font-size: 1rem; color: var(--brand-600); letter-spacing: .02em; }
.new-box ul { position: relative; margin: .25rem 0 0 1.2rem; }
.new-box li { line-height: 1.65; }
.new-box li::marker { content: "★ "; }

/* Links */
a.back { display: inline-block; margin-top: 30px; text-align: center; width: 100%; color: var(--brand-600); text-decoration: none; font-size: 1rem; }
a.back:hover { text-decoration: underline; }

/* Motion */
@keyframes shimmer { 0% { background-position: -160px 0; } 100% { background-position: 160px 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sweep { to { transform: rotate(1turn); } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Mobile tweaks */
@media (max-width: 768px) {
  .features { position: static; }
  .changelog-entry { padding: 16px; }
}