/* Claude Skills Bundle — Glassmorphism theme
   Dark violet/navy gradient + frosted glass panels + gold accents.
   Fonts: Inter (English), Noto Serif Myanmar Bold (Burmese). */

/* Self-hosted fonts (2026-11-17): Inter variable + Noto Serif Myanmar Bold,
   downloaded from Google Fonts and served from assets/fonts/ so the site
   renders identically with no third-party font dependency. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/Inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Serif Myanmar";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/NotoSerifMyanmar-700-myanmar.woff2") format("woff2");
  unicode-range: U+1000-109F, U+200C-200D, U+25CC, U+A92E, U+A9E0-A9FE, U+AA60-AA7F, U+116D0-116E3, U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --gold-1: #ffe259;
  --gold-2: #ffa751;
  --violet: #2b1055;
  --ink: #f4f1ff;
  --ink-dim: #cfc6ec;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(217, 119, 87, 0.35), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(117, 151, 222, 0.28), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(0, 184, 148, 0.22), transparent 60%),
    linear-gradient(160deg, #160a2e 0%, #2b1055 45%, #0f0524 100%);
  background-attachment: fixed;
}

.mm {
  font-family: "Noto Serif Myanmar", "Inter", serif;
  font-weight: 700;
}

a { color: var(--gold-1); }
a:hover { color: var(--gold-2); }

/* ---------- decorative background blobs ---------- */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.blob-1 { width: 420px; height: 420px; left: -120px; top: 8%; background: #6d28d9; }
.blob-2 { width: 360px; height: 360px; right: -100px; top: 38%; background: #d97757; }
.blob-3 { width: 300px; height: 300px; left: 38%; bottom: -120px; background: #0ea5a4; }

/* ---------- glass primitives ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-radius: 0;
  border-left: none; border-right: none; border-top: none;
  background: rgba(22, 10, 46, 0.55);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.2px; white-space: nowrap; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  box-shadow: 0 4px 14px rgba(255, 167, 81, 0.45);
}
.tabs { display: flex; gap: 6px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  appearance: none; border: 1px solid transparent; background: transparent;
  color: var(--ink-dim); font: inherit; font-weight: 600; font-size: 0.92rem;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.tab-btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.tab-btn.active {
  color: #241233;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  box-shadow: 0 4px 14px rgba(255, 167, 81, 0.4);
}
.nav-cta { flex: 0 0 auto; }

/* ---------- buttons ---------- */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 700; font-size: 0.9rem; text-decoration: none;
  color: var(--ink); background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-1px); }
.btn-gold {
  color: #241233;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  border: none; box-shadow: 0 4px 16px rgba(255, 167, 81, 0.4);
}
.btn-gold:hover { background: linear-gradient(135deg, #ffe985, #ffb066); }
.btn-sm { padding: 7px 12px; font-size: 0.83rem; }

/* ---------- layout / sections ---------- */
main { padding: 28px 0 60px; }
.tab-section { display: none; animation: fadein 0.25s ease; }
.tab-section.active { display: block; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h1, h2 { margin: 0 0 8px; line-height: 1.15; }
h2 { font-size: 1.7rem; }
.subtitle { color: var(--ink-dim); margin: 0 0 20px; font-size: 1.02rem; }
.section-head { margin: 6px 0 18px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- hero ---------- */
.hero { padding: 22px 22px 26px; text-align: center; }
.hero-banner { width: 100%; max-width: 980px; border-radius: 14px; display: block; margin: 0 auto 18px; }
.hero-sub { font-size: 1.25rem; margin: 0 0 6px; }
.hero-tag { color: var(--ink-dim); margin: 0 0 18px; }
.stats { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0 0 20px; }
.stat { padding: 12px 20px; min-width: 130px; }
.stat b { display: block; font-size: 1.5rem; background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 0.85rem; color: var(--ink-dim); }

.search-row { display: flex; gap: 10px; max-width: 640px; margin: 0 auto 18px; }
.search-row input, .toolbar input {
  flex: 1; font: inherit; color: var(--ink);
  background: rgba(10, 4, 26, 0.45); border: 1px solid var(--glass-border);
  border-radius: 999px; padding: 13px 20px; outline: none;
}
.search-row input::placeholder, .toolbar input::placeholder { color: #a99ccf; }
.search-row input:focus, .toolbar input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(255, 167, 81, 0.25); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip {
  appearance: none; font: inherit; font-size: 0.85rem; font-weight: 600;
  color: var(--ink); background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border); border-radius: 999px;
  padding: 7px 13px; cursor: pointer;
}
.chip:hover { background: rgba(255, 255, 255, 0.16); }
.chip.active {
  color: #241233; border: none;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
}
.chip .n { opacity: 0.75; font-weight: 700; }
.mini-steps { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; color: var(--ink-dim); font-size: 0.9rem; }
.mini-steps b { color: var(--gold-1); }

/* ---------- browse ---------- */
.toolbar {
  position: sticky; top: var(--nav-h); z-index: 20;
  display: flex; gap: 10px; align-items: center;
  padding: 14px; margin-bottom: 14px;
}
.toolbar select {
  font: inherit; color: var(--ink); background: rgba(10, 4, 26, 0.6);
  border: 1px solid var(--glass-border); border-radius: 999px; padding: 12px 14px; outline: none;
}
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.count-line { color: var(--ink-dim); margin: 0 0 14px; font-size: 0.95rem; }
.count-line b { color: var(--gold-1); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: transform 0.15s ease, background 0.15s ease; }
.card:hover { transform: translateY(-3px); background: var(--glass-bg-strong); }
.card h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; word-break: break-word; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--gold-1); }
.card .desc {
  margin: 0; color: var(--ink-dim); font-size: 0.92rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .tag {
  align-self: flex-start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.3px;
  color: var(--gold-1); background: rgba(255, 210, 90, 0.12);
  border: 1px solid rgba(255, 210, 90, 0.3); padding: 4px 10px; border-radius: 999px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card .actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-dim); }
.load-more-wrap { text-align: center; margin-top: 24px; }

/* ---------- how to use ---------- */
.flow-img { width: 100%; border-radius: 14px; display: block; margin-bottom: 20px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { padding: 20px; }
.step .num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.2rem; font-weight: 800; color: #241233; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-dim); font-size: 0.93rem; line-height: 1.55; }
.step code { background: rgba(10, 4, 26, 0.5); padding: 2px 7px; border-radius: 6px; font-size: 0.85em; }
.note { margin-top: 20px; padding: 16px 20px; color: var(--ink-dim); font-size: 0.95rem; line-height: 1.6; }

/* ---------- about ---------- */
.about-panel { padding: 26px; line-height: 1.65; }
.about-panel p { color: var(--ink-dim); margin: 0 0 14px; }
.about-panel p:first-of-type { color: var(--ink); }
.link-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.link-list a { display: flex; gap: 10px; align-items: center; text-decoration: none; padding: 14px 18px; }
.link-list a span { color: var(--ink-dim); font-size: 0.9rem; }
.disclaimer { border-color: rgba(255, 210, 90, 0.35); background: rgba(255, 210, 90, 0.08); }

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(8, 3, 22, 0.62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: 20px; overflow-y: auto;
}
.modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
.modal { width: 100%; max-width: 780px; margin: auto 0; padding: 24px; position: relative; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--glass-border); cursor: pointer;
  background: rgba(255, 255, 255, 0.1); color: var(--ink); font-size: 1.1rem; line-height: 1;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.2); }
.modal h2 { font-size: 1.4rem; padding-right: 44px; word-break: break-word; }
.modal .desc-full { color: var(--ink-dim); line-height: 1.6; margin: 0 0 16px; }
.modal .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.preview-label { font-weight: 700; font-size: 0.9rem; margin: 0 0 8px; color: var(--gold-1); }
.preview {
  margin: 0; max-height: 340px; overflow: auto; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.83rem; line-height: 1.55;
  background: rgba(8, 3, 22, 0.55); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 16px; color: #e8e2ff;
}

/* ---------- footer ---------- */
footer { padding: 10px 0 34px; text-align: center; color: var(--ink-dim); font-size: 0.88rem; }
footer img { width: 100%; max-width: 720px; border-radius: 14px; display: block; margin: 0 auto 16px; }
footer p { margin: 4px 0; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .brand span.brand-text { display: none; }
  .nav-inner { gap: 8px; padding: 0 12px; }
  .tab-btn { padding: 8px 10px; font-size: 0.86rem; }
  .nav-cta { display: none; }
  main { padding: 18px 0 44px; }
  .hero { padding: 16px 14px 20px; }
  .hero-sub { font-size: 1.08rem; }
  .stat { min-width: 100px; padding: 10px 14px; }
  .stat b { font-size: 1.25rem; }
  .search-row { flex-direction: column; }
  .search-row .btn { width: 100%; }
  .toolbar { flex-wrap: wrap; top: var(--nav-h); }
  .toolbar input { flex: 1 1 100%; }
  .toolbar select { flex: 1; }
  .grid { grid-template-columns: 1fr; }
  .modal-overlay { padding: 10px; }
  .modal { padding: 18px; }
  h2 { font-size: 1.4rem; }
}

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