/* Biscuit Skills — self-contained light theme stylesheet.
   Mirrors gallery/styles.css so this folder is portable. */

:root {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Light theme tokens */
  --bg: #fbfaf7;            /* warm off-white page */
  --bg-card: #ffffff;
  --fg: #18181b;
  --fg-muted: #71717a;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --accent: #ca8a04;        /* gold accent */
  --accent-soft: #fef3c7;
}

html, body { background: var(--bg); color: var(--fg); }

code, pre, .font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Biscuit logo — flat gold-yellow round ball (no gradient, no shadow) */
.biscuit-ball {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: #facc15;
  flex-shrink: 0;
}

/* Filter / tag chip */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  font-size: 0.75rem;
  color: rgb(63 63 70);
  cursor: pointer;
  transition: all 120ms ease;
}
.chip:hover { border-color: rgb(82 82 91); color: rgb(24 24 27); }
.chip[data-active="true"] {
  background: rgb(24 24 27);
  color: white;
  border-color: rgb(24 24 27);
}

/* Card */
.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.card:hover { border-color: var(--border-strong); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); }
.card:hover .card-cover { transform: scale(1.02); }
.card-cover {
  aspect-ratio: 16 / 10;
  width: 100%;
  display: block;
  background: linear-gradient(135deg, #f4f4f5, #e4e4e7);
  transition: transform 240ms ease;
  overflow: hidden;
}
.card-body { padding: 1rem 1.1rem 1.1rem; }

/* Markdown rendering — light theme */
.markdown { color: rgb(39 39 42); line-height: 1.7; font-size: 15px; }
.markdown h1 { font-size: 1.875rem; font-weight: 600; margin: 2rem 0 1rem; color: rgb(24 24 27); }
.markdown h2 { font-size: 1.4rem; font-weight: 600; margin: 1.75rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid var(--border); color: rgb(24 24 27); }
.markdown h3 { font-size: 1.1rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: rgb(24 24 27); }
.markdown p { margin: 0.75rem 0; color: rgb(63 63 70); }
.markdown ul, .markdown ol { margin: 0.75rem 0 0.75rem 1.5rem; }
.markdown li { margin: 0.25rem 0; color: rgb(63 63 70); }
.markdown code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--accent-soft);
  border: 1px solid #fde68a;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.875em;
  color: #92400e;
}
.markdown pre {
  background: rgb(250 250 250);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.markdown pre code { background: transparent; border: 0; padding: 0; color: rgb(39 39 42); font-size: 0.875rem; }
.markdown a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(202, 138, 4, 0.4); }
.markdown a:hover { color: #a16207; text-decoration-color: #a16207; }
.markdown blockquote { border-left: 3px solid var(--border-strong); padding-left: 1rem; color: rgb(82 82 91); margin: 1rem 0; }
.markdown hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.markdown strong { color: rgb(24 24 27); }
.markdown table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.markdown th, .markdown td { border: 1px solid var(--border); padding: 0.4rem 0.6rem; text-align: left; font-size: 0.9em; }
.markdown th { background: rgb(250 250 250); font-weight: 600; }

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgb(24 24 27);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Frame container — preview image holder */
.frame {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: white;
  aspect-ratio: 16 / 10;
}
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* Kind badge on cards */
.kind-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 1;
  font-weight: 500;
  backdrop-filter: blur(6px);
}
.kind-badge.local {
  color: #92400e;
  border: 1px solid rgba(180, 130, 30, 0.5);
  background: rgba(254, 243, 199, 0.92);
}
.kind-badge.live {
  color: #065f46;
  border: 1px solid rgba(50, 140, 90, 0.5);
  background: rgba(209, 250, 229, 0.92);
}

/* "Coming soon" footer banner */
.coming-soon {
  position: relative;
  text-align: center;
  padding: 4rem 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 100%);
  margin-top: 2rem;
}
.coming-soon h3 { font-size: 1.5rem; font-weight: 600; color: rgb(24 24 27); }
.coming-soon p { color: rgb(82 82 91); margin-top: 0.5rem; }
.coming-soon .pulse {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 9999px;
  margin-right: 0.5rem;
  vertical-align: middle;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
}

/* Layout helpers used by the static pages (no Tailwind dependency at runtime) */
.container-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(228, 228, 231, 0.8);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.8);
}
.site-footer {
  border-top: 1px solid var(--border);
  background: white;
  margin-top: 5rem;
}
