/* ============================================================
   ModelDirectory.org — Linkable-asset showcase stylesheet
   Self-contained (portable to the umami showcase root).
   Palette mirrors frontend/css/style.css so it reads on-brand.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0d0d0d;
  --bg-2:        #131313;
  --bg-3:        #1a1a1a;
  --bg-4:        #212121;
  --border:      #232323;
  --border-2:    #2e2e2e;
  --text:        #efefef;
  --text-2:      #9a9a9a;
  --text-3:      #6a6a6a;
  --accent:      #3b82f6;
  --accent-h:    #2563eb;
  --accent-dim:  rgba(59,130,246,.12);
  --green:       #10b981;
  --green-dim:   rgba(16,185,129,.12);
  --amber:       #f59e0b;
  --amber-dim:   rgba(245,158,11,.12);
  --red:         #ef4444;
  --radius:      8px;
  --radius-lg:   14px;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:   'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  --transition:  .18s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: var(--font); }
::selection { background: var(--accent-dim); color: var(--accent); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(13,13,13,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; color: var(--text); transition: color var(--transition); }
.logo:hover { color: var(--accent); text-decoration: none; }
.logo-mark { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.logo-tld { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.site-nav a { color: var(--text-2); font-size: 0.875rem; font-weight: 500; padding: 6px 12px; border-radius: var(--radius); transition: color var(--transition), background var(--transition); }
.site-nav a:hover { color: var(--text); background: var(--bg-3); text-decoration: none; }
.site-nav a.nav-active { color: var(--text); font-weight: 600; }

/* ── Buttons ── */
.btn-primary { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; border-radius: var(--radius); padding: 10px 22px; font-size: 0.9rem; font-weight: 600; transition: background var(--transition), transform var(--transition); }
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); text-decoration: none; }
.btn-outline-sm { display: inline-flex; align-items: center; background: transparent; color: var(--text-2); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 7px 16px; font-size: 0.85rem; font-weight: 500; transition: all var(--transition); }
.btn-outline-sm:hover { color: var(--text); border-color: var(--text-3); background: var(--bg-3); text-decoration: none; }

/* ── Tool page shell ── */
.tool-wrap { max-width: 820px; margin: 0 auto; padding: 8px 0 72px; }
.tool-wrap h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; margin: 26px 0 12px; }
.tool-lede { color: var(--text-2); font-size: 1.06rem; line-height: 1.6; margin: 0 0 8px; }
.tool-sub { color: var(--text-3); font-size: 0.9rem; margin: 0 0 30px; }
.tool-wrap h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; margin: 44px 0 14px; }
.tool-wrap h3 { font-size: 1.02rem; font-weight: 600; margin: 0 0 6px; }
.muted { color: var(--text-2); }
.small { font-size: 0.88rem; }

/* ── Cards / panels ── */
.card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; }
.note { font-size: 0.9rem; color: var(--text-2); line-height: 1.6; }
.privacy-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--green); background: var(--green-dim); border: 1px solid rgba(16,185,129,.25); padding: 4px 12px; border-radius: 20px; margin-bottom: 22px; }

/* ── Chooser (decision tree) ── */
.chooser { margin: 8px 0 10px; }
.q-step { }
.q-title { font-size: 1.15rem; font-weight: 600; margin: 0 0 4px; }
.q-hint { color: var(--text-3); font-size: 0.88rem; margin: 0 0 18px; }
.q-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.q-opt { text-align: left; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 14px 16px; transition: border-color var(--transition), background var(--transition), transform var(--transition); }
.q-opt:hover { border-color: var(--accent); background: var(--bg-3); transform: translateY(-1px); }
.q-opt b { display: block; font-size: 0.98rem; font-weight: 600; color: var(--text); }
.q-opt span { display: block; font-size: 0.83rem; color: var(--text-3); margin-top: 3px; line-height: 1.45; }
.q-progress { display: flex; gap: 6px; margin: 0 0 20px; }
.q-dot { width: 26px; height: 4px; border-radius: 3px; background: var(--border-2); }
.q-dot.on { background: var(--accent); }
.q-back { margin-top: 18px; }
.q-back button { color: var(--text-2); font-size: 0.85rem; }
.q-back button:hover { color: var(--text); }

/* ── Result ── */
.result { animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.result-fmt { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.result-fmt .fmt { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.result-fmt .ext { font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent); background: var(--accent-dim); padding: 2px 9px; border-radius: 6px; }
.result-block { margin: 16px 0; }
.result-block h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-3); margin-bottom: 5px; }
.result-block p { color: var(--text); font-size: 0.96rem; line-height: 1.6; }
.result-watch { border-left: 3px solid var(--amber); background: var(--amber-dim); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.result-watch p { color: #f6d38a; }
.result-alt { color: var(--text-2); font-size: 0.92rem; }
.result-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.result-restart { color: var(--text-2); font-size: 0.85rem; }

/* ── Comparison table ── */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 640px; }
table.cmp th, table.cmp td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.cmp thead th { background: var(--bg-3); color: var(--text-2); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; position: sticky; top: 0; }
table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp tbody tr:hover { background: var(--bg-2); }
table.cmp td .fmt { font-weight: 700; color: var(--text); }
table.cmp td .x { color: var(--text-3); }
table.cmp td .ok { color: var(--green); }

/* ── FAQ ── */
.faq details { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; background: var(--bg-2); }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 0.96rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--text-3); font-size: 1.3rem; font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .faq-a { padding: 14px 18px; color: var(--text-2); font-size: 0.93rem; line-height: 1.65; }
.faq .faq-a a { color: var(--accent); }

/* ── Embed / footer ── */
.embed-box { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-2); word-break: break-all; }
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-inner p { font-size: 0.82rem; color: var(--text-3); }
.footer-inner a { color: var(--text-2); font-size: 0.82rem; }

@media (max-width: 560px) {
  .q-opts { grid-template-columns: 1fr; }
  .tool-wrap { padding-bottom: 48px; }
}
