/* KavvOS Manual Site CSS — base from original + extensions for tabs, callouts, cards, shots */

:root {
  color-scheme: light;
}

body {
  background: #f7f7f4;
  margin: 0;
  padding: 0;
}

.manual-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #181818;
  line-height: 1.6;
}

.manual-header {
  text-align: center;
  margin-bottom: 16px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #181818;
  text-decoration: none;
}

.logo:hover {
  opacity: 0.85;
}

.manual-version-note {
  font-size: 0.75rem;
  color: #888;
  margin-top: 4px;
}

/* Version tabs */
.version-tabs {
  display: flex;
  gap: 4px;
  margin: 16px 0 24px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0;
}

.tab-btn {
  padding: 10px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  color: #555;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: all 0.1s ease;
  font-weight: 500;
}

.tab-btn:hover {
  color: #181818;
}

.tab-btn.active {
  color: #181818;
  font-weight: 600;
  border-bottom-color: #181818;
}

/* Tab panes */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Original manual content styles (1:1 for v1) */
.manual-content h1 {
  font-size: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.manual-content h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

.manual-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.manual-content p {
  margin-bottom: 1.25rem;
}

.manual-content ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.manual-content li {
  margin-bottom: 0.5rem;
}

.manual-content strong {
  font-weight: 600;
}

.test-card {
  background: #ffffff;
  border: 1px solid #e0e0df;
  border-radius: 8px;
  padding: 16px 24px;
  margin: 24px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.test-card p {
  margin-bottom: 0.75rem;
}

.test-card p:last-child {
  margin-bottom: 0;
}

.badge-soon {
  display: inline-block;
  background: #f0f0f0;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.85rem;
  font-style: italic;
  color: #606060;
  margin: 4px 0;
}

hr {
  border: none;
  border-top: 1px solid #e0e0df;
  margin: 3rem 0;
}

.manual-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.manual-content th, .manual-content td {
  border: 1px solid #e0e0e0;
  padding: 8px 12px;
  text-align: left;
}

.manual-content th {
  background: #f0f0f0;
}

/* === NEW for v2 === */

/* Benefits / TL;DR cards */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
  margin: 20px 0 32px;
}

.benefit-card {
  background: #ffffff;
  border: 1px solid #e0e0df;
  border-radius: 8px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.benefit-card .icon {
  font-size: 1.65rem;
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

.benefit-card .title {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.benefit-card .desc {
  font-size: 0.78rem;
  color: #555;
  line-height: 1.35;
}

/* Callouts — Obsidian-like */
.callout {
  border-left: 4px solid #a0a0a0;
  background: #f8f8f6;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
}

.callout .callout-title {
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.callout.callout-soon {
  border-left-color: #c9a227;
  background: #fffbeb;
}

.callout.callout-info {
  border-left-color: #3b82f6;
  background: #eff6ff;
}

.callout.callout-tip {
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.callout.callout-note {
  border-left-color: #6b7280;
  background: #f9fafb;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

/* Screenshot slots (ready for images) */
.shot {
  margin: 16px 0;
  text-align: center;
}

.shot-placeholder {
  background: repeating-linear-gradient(
    45deg,
    #f4f4f2,
    #f4f4f2 8px,
    #ecece9 8px,
    #ecece9 16px
  );
  border: 2px dashed #c8c8c4;
  border-radius: 6px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: #666;
  font-style: italic;
  padding: 16px 12px;
  line-height: 1.4;
}

.shot figcaption {
  font-size: 0.78rem;
  color: #666;
  margin-top: 6px;
  text-align: center;
}

/* Levels / research cards */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}

.level-card {
  background: #fff;
  border: 1px solid #e0e0df;
  border-radius: 8px;
  padding: 12px 14px;
}

.level-card .level-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #555;
  margin-bottom: 2px;
}

.level-card .level-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
}

.level-card .level-desc {
  font-size: 0.82rem;
  color: #444;
  line-height: 1.35;
}

.level-card .level-target {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #222;
  background: #f5f5f3;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

/* Misc */
.manual-content .note {
  font-size: 0.9rem;
  color: #555;
}

@media (max-width: 600px) {
  .manual-content h1 { font-size: 2rem; }
  .manual-content h2 { font-size: 1.5rem; }
  .test-card { padding: 16px; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .levels-grid { grid-template-columns: 1fr; }
}