/*
 * The pedigree guide (pedigree-guide.php).
 * Linked from the <head> by the page ($boPageStylesheets).
 */
/* Guide Page Styles */
.guide-page {
  min-height: calc(100vh - 200px);
  background: linear-gradient(180deg, #f8faf8 0%, #f0f4f1 100%);
}

/* Hero Section */
.guide-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: var(--space-2xl) 0 var(--space-3xl);
  color: white;
  position: relative;
  overflow: hidden;
}

.guide-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.guide-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.guide-hero .breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
  opacity: 0.8;
}

.guide-hero .breadcrumb-nav a {
  color: white;
  text-decoration: none;
}

.guide-hero .breadcrumb-nav a:hover {
  text-decoration: underline;
}

.guide-hero .breadcrumb-nav .sep {
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
}

.guide-hero-icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.guide-hero-icon i {
  font-size: 2.5rem;
  color: white;
}

.guide-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 var(--space-md);
  color: white !important;
}

.guide-hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin: 0;
}

/* Main Content */
.guide-main {
  padding: var(--space-3xl) 0;
}

.guide-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* Sidebar Navigation */
.guide-sidebar {
  position: sticky;
  top: 100px;
}

.guide-nav {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.guide-nav-header {
  background: var(--primary);
  color: white;
  padding: var(--space-lg);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.guide-nav-list {
  list-style: none;
  padding: var(--space-sm);
  margin: 0;
}

.guide-nav-list a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.guide-nav-list a:hover {
  background: var(--primary-subtle);
  color: var(--primary);
}

.guide-nav-list a.active {
  background: var(--primary);
  color: white;
}

.guide-nav-list a i {
  font-size: 1.125rem;
  width: 24px;
  text-align: center;
}

/* Content Area */
.guide-content {
  min-width: 0;
}

/* Section Styling */
.guide-section {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: var(--space-xl);
  overflow: hidden;
}

.guide-section:last-child {
  margin-bottom: 0;
}

.section-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.section-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-icon i {
  font-size: 1.5rem;
  color: white;
}

.section-header-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 var(--space-xs);
  color: white;
}

.section-header-text p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9375rem;
}

.section-body {
  padding: var(--space-xl);
}

/* Typography */
.guide-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: var(--space-xl) 0 var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.guide-content h3:first-child {
  margin-top: 0;
}

.guide-content h3 i {
  color: var(--primary);
}

.guide-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.guide-content p:last-child {
  margin-bottom: 0;
}

/* Step Lists */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}

.step-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
}

.step-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step-content h3,
.step-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-xs);
}

.step-content p {
  margin: 0;
  font-size: 0.9375rem;
}

/* Info Boxes */
.info-box {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin: var(--space-lg) 0;
}

.info-box.tip {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 1px solid #93c5fd;
}

.info-box.tip i {
  color: #2563eb;
}

.info-box.warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d;
}

.info-box.warning i {
  color: #d97706;
}

.info-box.success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 1px solid #6ee7b7;
}

.info-box.success i {
  color: #059669;
}

.info-box > i {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-box-content strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.info-box-content p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}

.feature-card {
  padding: var(--space-lg);
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.feature-card-icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.5rem;
}

.feature-card h3,
.feature-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-xs);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Field Explanations */
.field-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.field-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
}

.field-item-label {
  font-weight: 600;
  color: var(--primary);
  min-width: 160px;
  flex-shrink: 0;
}

.field-item-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Illustration Boxes */
.illustration-box {
  background: linear-gradient(135deg, var(--primary-subtle) 0%, rgba(44, 85, 48, 0.05) 100%);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  margin: var(--space-xl) 0;
}

.illustration-box i {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.illustration-box h3,
.illustration-box h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-sm);
}

.illustration-box p {
  color: var(--text-muted);
  margin: 0;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  color: white;
}

.cta-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 var(--space-sm);
  color: white;
}

.cta-box p {
  color: rgba(255,255,255,0.9);
  margin: 0 0 var(--space-xl);
}

.cta-box .btn {
  background: white;
  color: var(--primary-dark);
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: all 0.2s ease;
}

.cta-box .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 1024px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    position: relative;
    top: 0;
  }

  .guide-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .guide-hero {
    padding: var(--space-xl) 0 var(--space-2xl);
  }

  .guide-hero h1 {
    font-size: 1.75rem;
  }

  .guide-main {
    padding: var(--space-2xl) 0;
  }

  .section-header {
    flex-direction: column;
    text-align: center;
  }

  .step-item {
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    margin: 0 auto;
  }

  .field-item {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .field-item-label {
    min-width: auto;
  }
}

@media (max-width: 576px) {
  .section-body {
    padding: var(--space-lg);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}
