/* ============================================================
   AI Workshop Toolkit — Shared CSS
   Standalone (does not import style.css to avoid app-shell layout)
   Used by: /ai-workshop/, /idea-factory/, and future tool pages
   ============================================================ */

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

html, body { overflow-x: hidden; }

:root {
  --bg:         #0d0d0f;
  --bg-2:       #141416;
  --bg-3:       #1a1a1e;
  --bg-4:       #222228;
  --border:     #2a2a30;
  --accent:     #4f8ef7;
  --accent-dim: #3570d4;
  --text:       #eeeef2;
  --text-muted: #8888a0;
  --text-dim:   #4a4a60;
  --radius:     14px;
  --radius-sm:  8px;
  --font:       'Inter', -apple-system, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }


/* ── Workshop Nav ────────────────────────────────────────── */

.workshop-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
}

.workshop-nav {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.nav-logo {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; opacity: 0.85; }

.nav-sep {
  color: var(--border);
  margin: 0 8px;
  user-select: none;
}

.nav-section {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-tool {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.nav-tool:hover {
  background: var(--bg-3);
  color: var(--text);
  text-decoration: none;
}
.nav-tool.active {
  background: var(--bg-3);
  color: var(--text);
  font-weight: 500;
}
.nav-tool--soon {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}


/* ── Main Content ────────────────────────────────────────── */

.workshop-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 24px;
}


/* ── Hub Page ────────────────────────────────────────────── */

.hub-hero { margin-bottom: 56px; }

.hub-badge {
  display: inline-block;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hub-hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hub-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.hub-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
  min-height: 160px;
}
.hub-card:hover { text-decoration: none; }

.hub-card--live:hover {
  border-color: var(--accent-dim);
  background: var(--bg-3);
}

.hub-card--soon {
  opacity: 0.45;
  cursor: default;
}

.hub-card-icon { font-size: 24px; }

.hub-card-body h2 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.hub-card-body p  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.hub-card-status {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hub-card-status--live {
  background: rgba(79, 142, 247, 0.15);
  color: var(--accent);
  border: 1px solid rgba(79, 142, 247, 0.3);
}

.hub-card-status--soon {
  background: var(--bg-4);
  color: var(--text-dim);
  border: 1px solid var(--border);
}


/* ── Hub Capabilities ────────────────────────────────────── */

.hub-about h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hub-caps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hub-cap {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.hub-cap-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}


/* ── Idea Factory ────────────────────────────────────────── */

.if-header { margin-bottom: 40px; }
.if-header h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 8px; }
.if-sub { font-size: 16px; color: var(--text-muted); }

.if-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.if-category {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s;
}

.if-cat-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.if-cat-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  padding-top: 3px;
}

.if-cat-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.if-cat-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.if-result {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  min-height: 72px;
  display: flex;
  align-items: center;
}

.if-placeholder {
  font-size: 14px;
  color: var(--text-dim);
  font-style: italic;
}

.if-idea {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  font-weight: 500;
  animation: fadeSlideIn 0.25s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.if-btn {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.if-btn:hover { background: var(--accent-dim); }
.if-btn:active { opacity: 0.8; }
.if-btn:disabled { opacity: 0.5; cursor: wait; }


/* ── Footer ──────────────────────────────────────────────── */

.workshop-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}
.workshop-footer a { color: var(--text-muted); text-decoration: none; }
.workshop-footer a:hover { color: var(--accent); }


/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 700px) {
  .workshop-header { height: auto; padding: 12px 16px; }
  .workshop-nav { flex-wrap: wrap; gap: 8px; }
  .nav-section { display: none; }
  .nav-tools {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-left: 0;
    -webkit-overflow-scrolling: touch;
  }
  .nav-tool { white-space: nowrap; flex-shrink: 0; }

  .workshop-main { padding: 40px 16px; }

  .hub-hero h1 { font-size: 32px; }
  .hub-sub { font-size: 16px; }
  .hub-grid { grid-template-columns: 1fr; }

  .if-header h1 { font-size: 28px; }
  .if-grid { grid-template-columns: 1fr; }
  .if-cat-header { gap: 12px; }
}
