/* Hobbeet Wiki - Styles */
/* Mimics Tailwind CSS classes used in App.jsx */

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #fafaf9;
  color: #1c1917;
  line-height: 1.5;
  font-size: 16px; /* Base size +1px */
}

/* Base Layout */
.min-h-screen { min-height: 100vh; }
.bg-stone-50 { background: #fafaf9; }
.container { max-width: 48rem; margin: 0 auto; padding: 0 1.25rem; }
.text-center { text-align: center; }

/* Typography (+1px from default) */
.text-4xl { font-size: 2.3125rem; line-height: 2.5rem; }
.text-2xl { font-size: 1.5625rem; line-height: 2rem; }
.text-xl { font-size: 1.3125rem; line-height: 1.75rem; }
.text-lg { font-size: 1.1875rem; line-height: 1.75rem; }
.text-sm { font-size: 0.9375rem; line-height: 1.375rem; }
.text-xs { font-size: 0.8125rem; line-height: 1.125rem; }

.font-extrabold { font-weight: 800; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }

/* Colors */
.text-stone-900 { color: #1c1917; }
.text-stone-800 { color: #292524; }
.text-stone-700 { color: #44403c; }
.text-stone-600 { color: #57534e; }
.text-stone-500 { color: #78716c; }
.text-stone-400 { color: #a8a29e; }
.text-violet-600 { color: #7c3aed; }
.text-violet-700 { color: #6d28d9; }
.text-violet-800 { color: #5b21b6; }
.text-violet-900 { color: #4c1d95; }
.text-blue-600 { color: #2563eb; }
.text-emerald-600 { color: #059669; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.text-amber-800 { color: #92400e; }
.text-indigo-600 { color: #4f46e5; }
.text-green-700 { color: #15803d; }
.text-green-800 { color: #166534; }
.text-red-700 { color: #b91c1c; }
.text-red-800 { color: #991b1b; }

/* Spacing */
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.p-6 { padding: 1.5rem; }
.p-5 { padding: 1.25rem; }
.p-4 { padding: 1rem; }
.p-3 { padding: 0.75rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.ml-9 { margin-left: 2.25rem; }
.ml-auto { margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-xl { max-width: 36rem; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }

/* Grid & Flex */
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }
.gap-3 { gap: 0.75rem; }
.gap-2 { gap: 0.5rem; }
.gap-1 { gap: 0.25rem; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

/* Rounded */
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* Borders */
.border { border: 1px solid #e7e5e4; }
.border-2 { border-width: 2px; }
.border-y { border-top: 1px solid #f5f5f4; border-bottom: 1px solid #f5f5f4; }
.border-b { border-bottom: 1px solid #e7e5e4; }
.border-t { border-top: 1px solid #f5f5f4; }
.border-stone-100 { border-color: #f5f5f4; }
.border-stone-200 { border-color: #e7e5e4; }
.border-violet-200 { border-color: #ddd6fe; }
.border-amber-200 { border-color: #fde68a; }
.border-green-200 { border-color: #bbf7d0; }
.border-red-200 { border-color: #fecaca; }

/* Backgrounds */
.bg-white { background: #fff; }
.bg-stone-50 { background: #fafaf9; }
.bg-violet-50 { background: #f5f3ff; }
.bg-violet-600 { background: #7c3aed; }
.bg-amber-50 { background: #fffbeb; }
.bg-green-50 { background: #f0fdf4; }
.bg-red-50 { background: #fef2f2; }
.bg-blue-100 { background: #dbeafe; }

/* Navigation */
.nav-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e7e5e4;
}

.nav-container {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-container::-webkit-scrollbar { display: none; }

.nav-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s;
  border: none;
  cursor: pointer;
  background: transparent;
  color: #78716c;
}

.nav-btn:hover { background: #f5f5f4; }
.nav-btn.active { background: #7c3aed; color: #fff; }

/* Sections */
.section-white {
  background: #fff;
  border-bottom: 1px solid #f5f5f4;
}

.section-gray {
  background: #fafaf9;
}

.scroll-mt {
  scroll-margin-top: 3rem;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

/* Icons */
.icon-sm {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.icon-header {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.icon-card {
  width: 18px;
  height: 18px;
}

.icon-tech {
  width: 16px;
  height: 16px;
  margin: 0 auto 0.25rem;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e7e5e4;
}

.card-bordered {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #e7e5e4;
}

.card-muted {
  background: #fafaf9;
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #e7e5e4;
}

/* Tags */
.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  border: 1px solid #e7e5e4;
  color: #57534e;
  background: #fafaf9;
}

.tag-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  color: #57534e;
  font-size: 0.875rem;
}

/* Welcome Help */
.help-item {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #57534e;
  margin-bottom: 0.25rem;
}

/* Pillar Numbers */
.pillar-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* Journey Tabs */
.journey-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s;
  border: 2px solid #e7e5e4;
  background: #fff;
  color: #57534e;
  cursor: pointer;
}

.journey-tab.active {
  background: var(--tab-color);
  border-color: var(--tab-color);
  color: #fff;
}

/* Journey Content */
.journey-content {
  display: none;
}

.journey-content.active {
  display: block;
}

.journey-header {
  border-radius: 0.75rem;
  border: 2px solid;
  border-color: color-mix(in srgb, var(--journey-color) 25%, transparent);
  background: color-mix(in srgb, var(--journey-color) 3%, transparent);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.journey-header p:first-child {
  color: var(--journey-color);
}

/* Journey Steps */
.journey-steps {
  position: relative;
}

.journey-line {
  position: absolute;
  left: 1.25rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 1px;
}

.journey-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.step-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #fff;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 10;
}

.step-icon svg {
  width: 16px;
  height: 16px;
}

.step-content {
  border-radius: 0.5rem;
  border: 1px solid #e7e5e4;
  padding: 1rem;
  flex: 1;
  background: #fff;
}

.step-content.step-highlight {
  border: 2px solid var(--step-color);
  background: color-mix(in srgb, var(--step-color) 3%, transparent);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.step-time {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--step-color) 10%, transparent);
  color: var(--step-color);
}

.step-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  color: #fff;
  margin-left: auto;
}

/* Convergence */
.convergence-item {
  text-align: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #f5f5f4;
}

/* Filter Buttons */
.filter-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #e7e5e4;
  background: #fff;
  color: #78716c;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn.active {
  background: #7c3aed;
  color: #fff;
  border-color: #7c3aed;
}

/* Feature Category */
.feature-category {
  margin-bottom: 1.25rem;
}

.feature-category-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.feature-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid;
  margin-bottom: 0.5rem;
}

.feature-item.done {
  background: #fff;
  border-color: #e7e5e4;
}

.feature-item.pending {
  background: #fffbeb;
  border-color: #fde68a;
}

.feature-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-icon.done { color: #10b981; }
.feature-icon.pending { color: #f59e0b; }

/* Matching Weight Bar */
.weight-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.weight-segment:hover {
  opacity: 1 !important;
}

/* Matching Component */
.match-component {
  border: 1px solid #e7e5e4;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.match-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: left;
  transition: background 0.15s;
}

.match-header:hover {
  background: #fafaf9;
}

.match-icon {
  width: 18px;
  height: 18px;
}

.match-weight {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  color: #fff;
}

.match-chevron {
  width: 14px;
  height: 14px;
  color: #a8a29e;
  transition: transform 0.2s;
}

.match-chevron.open {
  transform: rotate(180deg);
}

.match-details {
  display: none;
  padding: 0 1rem 1rem;
  border-top: 1px solid #f5f5f4;
}

.match-details.open {
  display: block;
  padding-top: 0.75rem;
}

.match-detail-item {
  margin-bottom: 0.75rem;
}

.match-detail-item:last-child {
  margin-bottom: 0;
}

/* Bloom Tiers */
.bloom-tier {
  min-width: 110px;
  border-radius: 0.5rem;
  border: 2px solid;
  padding: 0.75rem;
  text-align: center;
  flex-shrink: 0;
}

/* Sanctuary Cards */
.sanctuary-card {
  border-radius: 0.5rem;
  border: 2px solid;
  padding: 1rem;
}

/* Tech Stack */
.tech-item {
  background: #fafaf9;
  border-radius: 0.5rem;
  border: 1px solid #e7e5e4;
  padding: 0.75rem;
  text-align: center;
}

/* Data Flow */
.data-flow {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.flow-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.flow-num {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: #dbeafe;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.flow-step p {
  font-size: 0.75rem;
  color: #57534e;
  padding-top: 0.25rem;
}

/* DB Groups */
.db-group {
  background: #fafaf9;
  border-radius: 0.5rem;
  border: 1px solid #e7e5e4;
  padding: 0.75rem;
}

.db-group p:first-child {
  color: var(--group-color);
}

/* KPI List */
.kpi-item {
  background: #fafaf9;
  border-radius: 0.5rem;
  border: 1px solid #e7e5e4;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kpi-bar {
  width: 4px;
  height: 2.5rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.kpi-content {
  flex: 1;
  min-width: 0;
}

.kpi-target {
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #e7e5e4;
}

/* Funnel */
.funnel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.funnel-step {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.funnel-arrow {
  color: #a78bfa;
  font-size: 0.75rem;
}

/* Progress Bar */
.progress-bar {
  background: #e7e5e4;
  border-radius: 9999px;
  height: 1rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: #10b981;
  transition: width 0.3s;
}

/* Build List */
.build-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid;
}

.build-item.done {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.build-item.pending {
  background: #fffbeb;
  border-color: #fde68a;
}

.build-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.build-item.done .build-icon { color: #059669; }
.build-item.pending .build-icon { color: #d97706; }

.build-item p {
  font-size: 0.75rem;
  font-weight: 600;
}

.build-item.done p { color: #065f46; }
.build-item.pending p { color: #92400e; }

/* Screen Status */
.screen-status {
  border-radius: 0.5rem;
  border: 1px solid;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
}

.screen-status.done {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.screen-status.pending {
  background: #fffbeb;
  border-color: #fde68a;
}

.screen-status p:first-child {
  color: #292524;
}

/* Roadmap */
.roadmap-item {
  background: #fafaf9;
  border-radius: 0.75rem;
  border: 1px solid #e7e5e4;
  padding: 1rem;
}

.roadmap-item.highlight {
  background: #fffbeb;
  border-color: #fde68a;
}

.roadmap-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.roadmap-phase {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  color: #fff;
}

.roadmap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

/* Decisions */
.decision-category {
  border: 1px solid #e7e5e4;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
}

.decision-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: left;
  transition: background 0.15s;
}

.decision-header:hover {
  background: #fafaf9;
}

.decision-count {
  font-size: 0.75rem;
  color: #a8a29e;
}

.decision-chevron {
  width: 14px;
  height: 14px;
  color: #a8a29e;
  transition: transform 0.2s;
}

.decision-chevron.open {
  transform: rotate(180deg);
}

.decision-content {
  display: none;
  border-top: 1px solid #f5f5f4;
}

.decision-content.open {
  display: block;
}

.decision-question {
  padding: 1rem;
  border-bottom: 1px solid #fafaf9;
}

.decision-question:last-child {
  border-bottom: none;
}

/* Leading Relaxed */
.leading-relaxed {
  line-height: 1.625;
}

/* Responsive */
@media (max-width: 640px) {
  .grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .text-4xl { font-size: 1.875rem; }
}

/* Utility: shrink-0 */
.shrink-0 { flex-shrink: 0; }
