/* ==========================================================
   SHOWCASE MODE — html[data-mode="showcase"]
   Deep-space dark / crisp light · glass panels · gradient type
   ========================================================== */

/* ── Dark (default) palette ── */
html[data-mode="showcase"] {
  --bg:           #06070f;
  --bg-2:         #0c0e1c;
  --bg-3:         #12152a;
  --fg:           #eef0ff;
  --fg-muted:     #8b9cc4;
  --fg-dim:       #44507a;
  --border:       #1c2040;
  --border-bright:#2d3560;
  --accent:       #7c83fd;   /* electric violet */
  --accent2:      #00e5c3;   /* emerald teal    */
  --accent3:      #ff4d8d;   /* hot pink        */
  --glow:         rgba(124,131,253,0.35);
  --glass:        rgba(255,255,255,0.035);
  --glass-border: rgba(255,255,255,0.09);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

/* ── Light palette ── */
html[data-mode="showcase"][data-theme="light"] {
  --bg:           #f0f2ff;
  --bg-2:         #e4e7ff;
  --bg-3:         #d4d9ff;
  --fg:           #0d0f2e;
  --fg-muted:     #3a4080;
  --fg-dim:       #7a80b4;
  --border:       #bfc5f0;
  --border-bright:#9098d8;
  --accent:       #4f52d8;
  --accent2:      #00897b;
  --accent3:      #d4006e;
  --glow:         rgba(79,82,216,0.18);
  --glass:        rgba(255,255,255,0.6);
  --glass-border: rgba(79,82,216,0.2);
}

/* ── Body & aurora background ── */
html[data-mode="showcase"] body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.65;
  background-image: none;
}

html[data-mode="showcase"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 15% -5%, rgba(124,131,253,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 65% 45% at 90% 5%,  rgba(0,229,195,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 65% at 60% 100%,rgba(255,77,141,0.09) 0%, transparent 55%);
  animation: scAurora 20s ease-in-out infinite alternate;
}
@keyframes scAurora {
  0%   { transform: scale(1) translateY(0);     opacity: 1; }
  50%  { transform: scale(1.05) translateY(-14px); opacity: 0.75; }
  100% { transform: scale(0.97) translateY(8px);  opacity: 0.9; }
}

html[data-mode="showcase"][data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 80% 50% at 15% -5%, rgba(79,82,216,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%,  rgba(0,137,123,0.09) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 60% 100%,rgba(212,0,110,0.06) 0%, transparent 55%);
}

html[data-mode="showcase"] .page {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  padding: 28px 44px 120px;
}

/* ── Topbar ── */
html[data-mode="showcase"] .topbar {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 12px 20px;
  margin-bottom: 4px;
}
html[data-mode="showcase"] .topbar .dots span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  opacity: 1;
}
html[data-mode="showcase"] .topbar .path {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mode switcher — showcase skin */
html[data-mode="showcase"] .mode-switcher {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  backdrop-filter: blur(12px);
}
html[data-mode="showcase"] .ms-btn { color: var(--fg-muted); }
html[data-mode="showcase"] .ms-btn:hover { color: var(--fg); background: rgba(124,131,253,0.12); }
html[data-mode="showcase"] .ms-btn.active {
  background: linear-gradient(135deg, rgba(124,131,253,0.25), rgba(0,229,195,0.15));
  color: var(--fg);
}
html[data-mode="showcase"] .theme-toggle {
  border-color: var(--glass-border);
  color: var(--fg-muted);
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-radius: 8px;
}

/* ── Nav ── */
html[data-mode="showcase"] nav.sitenav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0 28px;
  border: none;
  margin-bottom: 20px;
  font-family: var(--sans);
  font-size: 14px;
}
html[data-mode="showcase"] nav.sitenav a {
  color: var(--fg-muted);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 7px 18px;
  backdrop-filter: blur(10px);
  transition: all 180ms ease;
  font-weight: 500;
}
html[data-mode="showcase"] nav.sitenav a::before { content: none; }
html[data-mode="showcase"] nav.sitenav a:hover {
  color: var(--fg);
  border-color: var(--accent);
  box-shadow: 0 0 18px var(--glow);
  transform: translateY(-1px);
}
html[data-mode="showcase"] nav.sitenav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(124,131,253,0.4), rgba(0,229,195,0.25));
  border-color: var(--accent);
  box-shadow: 0 0 22px var(--glow);
  font-weight: 600;
}
html[data-mode="showcase"][data-theme="light"] nav.sitenav a[aria-current="page"] { color: var(--bg); }

/* ── Hide terminal chrome ── */
html[data-mode="showcase"] .prompt,
html[data-mode="showcase"] .term-trigger,
html[data-mode="showcase"] #terminal { display: none !important; }

/* ── Typography ── */
html[data-mode="showcase"] h1 {
  font-family: var(--sans);
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  background: linear-gradient(135deg, var(--fg) 0%, var(--accent) 50%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html[data-mode="showcase"] h1 .cursor { display: none; }

html[data-mode="showcase"] h2 {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin: 80px 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
html[data-mode="showcase"] h2::before {
  content: attr(data-num);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-top: 5px;
}
html[data-mode="showcase"] h3 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
html[data-mode="showcase"] h3::before { content: none; }

/* ── Hero ── */
html[data-mode="showcase"] .hero {
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  margin: 24px 0 0;
  padding-bottom: 56px;
  align-items: center;
}
html[data-mode="showcase"] .hero .tagline {
  font-size: 19px;
  font-weight: 400;
  color: var(--fg-muted);
  max-width: 34ch;
  line-height: 1.6;
  margin-top: 20px;
}
html[data-mode="showcase"] .hero .meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 40px;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
html[data-mode="showcase"] .hero .meta span { display: flex; flex-direction: column; gap: 5px; }
html[data-mode="showcase"] .hero .meta b {
  color: var(--fg);
  font-weight: 700;
  font-family: var(--sans);
  font-size: 17px;
  text-transform: none;
  letter-spacing: -0.01em;
  order: 1;
}
html[data-mode="showcase"] .hero .meta i { font-style: normal; order: 2; color: var(--fg-dim); font-size: 10px; }
html[data-mode="showcase"] .hero-viz { max-width: 100%; justify-self: center; aspect-ratio: 1/1; }

/* ── Status bar ── */
html[data-mode="showcase"] .statusbar {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 32px 0 0;
}
html[data-mode="showcase"] .statusbar b { color: var(--fg); }
html[data-mode="showcase"] .statusbar .dot { background: var(--accent2); box-shadow: 0 0 8px var(--accent2); }

/* ── Pillar cards ── */
html[data-mode="showcase"] .card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
html[data-mode="showcase"] .pillar-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  backdrop-filter: blur(22px);
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
html[data-mode="showcase"] .pillar-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124,131,253,0.06), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms;
}
html[data-mode="showcase"] .pillar-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--accent);
  box-shadow: 0 12px 48px var(--glow), inset 0 1px 0 rgba(255,255,255,0.08);
}
html[data-mode="showcase"] .pillar-card:hover::after { opacity: 1; }

html[data-mode="showcase"] .pillar-card .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html[data-mode="showcase"] .pillar-card h3 { font-size: 22px; font-weight: 700; margin: 10px 0 8px; color: var(--fg); }
html[data-mode="showcase"] .pillar-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.55; }
html[data-mode="showcase"] .pillar-card .arrow { font-size: 22px; color: var(--accent); opacity: 0.5; transition: opacity 200ms, transform 200ms; }
html[data-mode="showcase"] .pillar-card:hover .arrow { opacity: 1; transform: translateX(4px); }

/* ── Panels ── */
html[data-mode="showcase"] .panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  padding: 26px 30px;
  transition: border-color 200ms, box-shadow 200ms;
}
html[data-mode="showcase"] .panel:hover { border-color: rgba(124,131,253,0.4); box-shadow: 0 4px 24px var(--glow); }

/* ── Prose ── */
html[data-mode="showcase"] p { color: var(--fg-muted); font-size: 16px; line-height: 1.7; }
html[data-mode="showcase"] p.muted, html[data-mode="showcase"] .section-intro {
  font-size: 18px; color: var(--fg-muted); max-width: 44ch; line-height: 1.55;
}

/* ── Key-value ── */
html[data-mode="showcase"] dl.kv { font-family: var(--sans); font-size: 15px; gap: 14px 28px; }
html[data-mode="showcase"] dl.kv dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); }
html[data-mode="showcase"] dl.kv dd { color: var(--fg); }

/* ── Timeline ── */
html[data-mode="showcase"] .timeline li { padding-left: 20px; border-left: 2px solid var(--border); margin-bottom: 32px; }
html[data-mode="showcase"] .timeline li::before { background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 0 12px var(--glow); border: 2px solid var(--bg-3); }
html[data-mode="showcase"] .timeline .role { font-size: 20px; font-weight: 700; color: var(--fg); letter-spacing: -0.02em; }
html[data-mode="showcase"] .timeline .company { color: var(--accent); }
html[data-mode="showcase"] .timeline .dates { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); }
html[data-mode="showcase"] .timeline ul li { font-size: 14px; color: var(--fg-muted); }

/* ── Chips ── */
html[data-mode="showcase"] .chip {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--glass); border-color: var(--border-bright); color: var(--fg-muted);
}
html[data-mode="showcase"] .chip.ok {
  border-color: var(--accent2); color: var(--accent2);
  background: rgba(0,229,195,0.07); box-shadow: 0 0 10px rgba(0,229,195,0.18);
}

/* ── Post list ── */
html[data-mode="showcase"] .post-list li { padding: 20px 0; border-bottom-color: var(--border); }
html[data-mode="showcase"] .post-list .date { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); }
html[data-mode="showcase"] .post-list .title { font-size: 20px; font-weight: 600; color: var(--fg); letter-spacing: -0.015em; }
html[data-mode="showcase"] .post-list li:hover .title a { color: var(--accent); }
html[data-mode="showcase"] .post-list .cat { font-family: var(--mono); font-size: 10px; border-radius: 999px; padding: 4px 12px; border: 1px solid; }
html[data-mode="showcase"] .post-list .cat.tech { border-color: var(--accent); color: var(--accent); background: rgba(124,131,253,0.07); }
html[data-mode="showcase"] .post-list .cat.travel { border-color: var(--accent2); color: var(--accent2); background: rgba(0,229,195,0.07); }

/* ── Courses ── */
html[data-mode="showcase"] .course {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 14px;
  backdrop-filter: blur(16px); padding: 22px 24px;
  transition: border-color 200ms, box-shadow 200ms;
}
html[data-mode="showcase"] .course:hover { border-color: var(--accent); box-shadow: 0 4px 20px var(--glow); }
html[data-mode="showcase"] .course .code { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
html[data-mode="showcase"] .course h3 { font-size: 18px; font-weight: 700; color: var(--fg); }
html[data-mode="showcase"] .course p { font-size: 14px; color: var(--fg-muted); }
html[data-mode="showcase"] .course .meta { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); gap: 20px; }
html[data-mode="showcase"] .course .meta b { color: var(--fg); }

/* ── Bullets ── */
html[data-mode="showcase"] ul.bullets li { color: var(--fg-muted); font-size: 15px; }
html[data-mode="showcase"] ul.bullets li::before { color: var(--accent); }

/* ── CTA ── */
html[data-mode="showcase"] .cta-box {
  background: linear-gradient(135deg, rgba(124,131,253,0.14) 0%, rgba(0,229,195,0.07) 50%, rgba(255,77,141,0.07) 100%);
  border: 1px solid rgba(124,131,253,0.3);
  border-radius: 22px;
  backdrop-filter: blur(28px);
  padding: 52px 56px;
  margin: 60px 0 32px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
html[data-mode="showcase"] .cta-box::before {
  content: "";
  position: absolute;
  top: -100px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,131,253,0.22), transparent 70%);
  pointer-events: none;
}
html[data-mode="showcase"][data-theme="light"] .cta-box { background: linear-gradient(135deg, rgba(79,82,216,0.1), rgba(0,137,123,0.07)); }
html[data-mode="showcase"] .cta-box h3 { font-size: 30px; font-weight: 700; color: var(--fg); letter-spacing: -0.025em; line-height: 1.2; margin: 0 0 10px; }
html[data-mode="showcase"] .cta-box h3::before { content: none; }
html[data-mode="showcase"] .cta-box p { font-size: 15px; color: var(--fg-muted); margin: 0; max-width: 46ch; }
html[data-mode="showcase"] .cta-box .row { margin: 0; flex-direction: column; align-items: flex-end; gap: 10px; }

/* ── Buttons ── */
html[data-mode="showcase"] button.primary {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  padding: 14px 28px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; cursor: pointer; letter-spacing: 0.01em;
  box-shadow: 0 4px 24px var(--glow);
  transition: transform 160ms, box-shadow 160ms;
}
html[data-mode="showcase"] button.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px var(--glow); }

/* ── Forms ── */
html[data-mode="showcase"] label.field { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); }
html[data-mode="showcase"] input, html[data-mode="showcase"] textarea, html[data-mode="showcase"] select {
  font-family: var(--sans); font-size: 15px;
  border-radius: 10px; border: 1px solid var(--border-bright);
  background: var(--glass); color: var(--fg); padding: 12px 16px;
  backdrop-filter: blur(12px);
}
html[data-mode="showcase"] input:focus, html[data-mode="showcase"] textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow);
}

/* ── Footer ── */
html[data-mode="showcase"] footer.sitefoot {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-dim);
  border-top: 1px solid var(--border); margin-top: 100px; padding-top: 24px;
}

/* ── Mobile ── */
@media (max-width: 860px) {
  html[data-mode="showcase"] .hero { grid-template-columns: 1fr; }
  html[data-mode="showcase"] .card-grid { grid-template-columns: 1fr; }
  html[data-mode="showcase"] .cta-box { grid-template-columns: 1fr; padding: 32px 24px; }
  html[data-mode="showcase"] .cta-box .row { align-items: flex-start; }
  html[data-mode="showcase"] .page { padding: 16px 18px 80px; }
}
