/* Lab0 Guide Pipedrive - CSS */
/* Variables */
:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --primary: #0a0a0a;
  --primary-foreground: #ffffff;
  --radius: 0.5rem;
  
  /* Callout colors */
  --info-bg: rgba(59, 130, 246, 0.1);
  --info-border: rgba(59, 130, 246, 0.2);
  --info-color: #2563eb;
  
  --warning-bg: rgba(245, 158, 11, 0.1);
  --warning-border: rgba(245, 158, 11, 0.2);
  --warning-color: #d97706;
  
  --success-bg: rgba(34, 197, 94, 0.1);
  --success-border: rgba(34, 197, 94, 0.2);
  --success-color: #16a34a;
  
  --tip-bg: rgba(168, 85, 247, 0.1);
  --tip-border: rgba(168, 85, 247, 0.2);
  --tip-color: #9333ea;
}

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

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 1.75rem; }
}

p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

strong {
  color: var(--foreground);
  font-weight: 600;
}

/* Layout */
.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--foreground);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 700;
}

.logo-text {
  font-size: 1rem;
  font-weight: 600;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-nav a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: all 0.2s;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.header-nav a:hover {
  color: var(--foreground);
  background: var(--muted);
}

/* Guide title in header */
.header-guide-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  padding: 0.375rem 0.75rem;
  background: var(--muted);
  border-radius: 6px;
  white-space: nowrap;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.breadcrumbs a:hover {
  color: var(--foreground);
}

.breadcrumbs svg {
  width: 1rem;
  height: 1rem;
}

.breadcrumbs .current {
  color: var(--foreground);
}

/* Hero */
.hero {
  padding-bottom: 3rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
}

/* Main content */
.main-content {
  display: flex;
  gap: 3rem;
  padding-bottom: 6rem;
}

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

/* Sidebar */
.sidebar {
  width: 16rem;
  flex-shrink: 0;
  display: none;
}

@media (min-width: 1024px) {
  .sidebar {
    display: block;
  }
}

.sidebar-nav {
  position: sticky;
  top: 6rem;
}

.sidebar-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.sidebar-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: all 0.2s;
  margin-bottom: 0.25rem;
}

.sidebar-link:hover {
  background: var(--muted);
  color: var(--foreground);
}

.sidebar-link.active {
  background: var(--foreground);
  color: var(--primary-foreground);
}

.sidebar-link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.sidebar-link-content p:first-child {
  font-weight: 500;
  color: inherit;
}

.sidebar-link-content p:last-child {
  font-size: 0.75rem;
  opacity: 0.7;
}

.sidebar-link.active .sidebar-link-content p {
  color: var(--primary-foreground);
}

/* Sections */
.section {
  margin-bottom: 3rem;
  scroll-margin-top: 6rem;
}

.section-title {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.section-content {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.section-content p {
  margin-bottom: 1rem;
}

.section-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.section-content ul,
.section-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.section-content ul {
  list-style-type: disc;
}

.section-content ol {
  list-style-type: decimal;
}

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

/* Callouts */
.callout {
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid;
  display: flex;
  gap: 0.75rem;
}

.callout-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
}

.callout-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.callout-content {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.8);
}

.callout-content ul,
.callout-content ol {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
}

.callout-content ul {
  list-style-type: disc;
}

.callout-content ol {
  list-style-type: decimal;
}

.callout-content li {
  margin-bottom: 0.25rem;
}

.callout.info {
  background: var(--info-bg);
  border-color: var(--info-border);
}
.callout.info .callout-icon,
.callout.info .callout-title { color: var(--info-color); }

.callout.warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
}
.callout.warning .callout-icon,
.callout.warning .callout-title { color: var(--warning-color); }

.callout.success {
  background: var(--success-bg);
  border-color: var(--success-border);
}
.callout.success .callout-icon,
.callout.success .callout-title { color: var(--success-color); }

.callout.tip {
  background: var(--tip-bg);
  border-color: var(--tip-border);
}
.callout.tip .callout-icon,
.callout.tip .callout-title { color: var(--tip-color); }

/* Cards */
.card {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--card);
  transition: all 0.3s;
  margin-bottom: 1rem;
}

.card:hover {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.card-number {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--foreground);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.card-content {
  flex: 1;
}

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

.card-header svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
}

.card-title {
  font-weight: 600;
}

.card-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.card-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}

.card:hover .card-link svg {
  transform: translateX(4px);
}

/* Feature boxes */
.feature-box {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.feature-box h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-box p {
  font-size: 0.875rem;
  margin: 0;
}

.feature-box.error {
  background: rgba(239, 68, 68, 0.05);
}

/* Three columns */
.three-columns {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .three-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pillar-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--foreground);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pillar h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pillar p {
  font-size: 0.875rem;
  margin: 0;
}

/* Image placeholder */
.image-placeholder {
  margin: 2rem 0;
  padding: 3rem;
  border: 2px dashed var(--border);
  border-radius: 0.75rem;
  background: var(--muted);
  text-align: center;
}

.image-placeholder p {
  color: var(--muted-foreground);
}

.image-placeholder p:last-child {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Navigation */
.guide-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .guide-nav {
    flex-direction: row;
    justify-content: space-between;
  }
}

.guide-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.guide-nav-link:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

.guide-nav-link svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
  transition: transform 0.2s;
}

.guide-nav-link:hover svg.arrow-left {
  transform: translateX(-4px);
}

.guide-nav-link:hover svg.arrow-right {
  transform: translateX(4px);
}

.guide-nav-link .label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.guide-nav-link .title {
  font-weight: 500;
}

.guide-nav-link.next {
  margin-left: auto;
  text-align: right;
}

/* CTA Section */
.cta-section {
  padding: 2rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.cta-section.light {
  background: var(--muted);
}

.cta-section.dark {
  background: #1a1a2e;
  color: #ffffff;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section.dark h2 {
  color: #ffffff;
}

.cta-section p {
  margin-bottom: 1rem;
}

.cta-section.dark p {
  color: rgba(255, 255, 255, 0.8);
}

.cta-link {
  display: inline-block;
  font-weight: 600;
}

.cta-section.dark .cta-link {
  color: #4fc3f7;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Routine boxes */
.routine-box {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.routine-time {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--foreground);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.routine-content h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.routine-content ul {
  font-size: 0.875rem;
  padding-left: 1.25rem;
  list-style-type: disc;
}

.routine-content li {
  margin-bottom: 0.25rem;
}

/* Utilities */
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-3 { margin-bottom: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* TL;DR Box */
.tldr-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid #0ea5e9;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
}
.tldr-box p {
  margin: 0;
  color: #0c4a6e;
}

/* Quotable */
.quotable {
  font-style: italic;
  border-left: 3px solid #6366f1;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #4338ca;
}

/* FAQ Section */
.faq-section {
  margin-top: 3rem;
}
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 500;
  background: #f9fafb;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::before {
  content: "+";
  margin-right: 0.75rem;
  font-weight: 600;
  color: #6366f1;
}
.faq-item[open] summary::before {
  content: "−";
}
.faq-answer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #e5e7eb;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Error box */
.feature-box.error {
  border-left-color: #ef4444;
}
.feature-box.error h4 {
  color: #dc2626;
}

/* Guide navigation */
.guide-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}
.guide-nav-link {
  flex: 1;
  padding: 1rem 1.25rem;
  background: #f9fafb;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.guide-nav-link:hover {
  background: #f3f4f6;
}
.guide-nav-link.next {
  text-align: right;
}
.guide-nav-link span {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}
.guide-nav-link strong {
  color: #111827;
}

/* Image placeholder */
.image-placeholder {
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
  color: #9ca3af;
  margin: 1.5rem 0;
}

/* Comparison table */
.comparison-table {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 768px) {
  .comparison-table {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Space utilities */
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
