
/* SEO/GEO Enhancement Classes */
.last-updated {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.author-bio {
  background: rgba(99, 102, 241, 0.1);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin: var(--spacing-lg) 0;
  border-left: 4px solid var(--color-accent-primary);
}

.author-bio-content {
  max-width: 800px;
}

.author-bio ul {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
}

.evaluation-criteria {
  margin: var(--spacing-xl) 0;
}

.criteria-section {
  background: rgba(99, 102, 241, 0.08);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin: var(--spacing-lg) 0;
  border-left: 4px solid var(--color-accent-primary);
}

.criteria-section h3 {
  margin-top: 0;
}

.criteria-section ul {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
}

/* FAQ Section */
.faq-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, transparent 100%);
}

.faq-grid {
  display: grid;
  gap: var(--spacing-md);
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-accent-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: "\2212";
}

.faq-answer {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-top: var(--spacing-md);
  padding-left: var(--spacing-sm);
  border-left: 2px solid rgba(99, 102, 241, 0.2);
}

/* Reduced motion for FAQ */
@media (prefers-reduced-motion: reduce) {
  .faq-question::after {
    transition: none;
  }
}

@media (max-width: 768px) {
  .faq-grid {
    gap: var(--spacing-sm);
  }
  .faq-item {
    padding: var(--spacing-sm) var(--spacing-md);
  }
}
/* Subcategory card lists — used on all category index pages */
.subcategory-section {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
}

.subcategory-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.subcategory-item {
  padding: 1rem;
  margin: 0.75rem 0;
  background: var(--color-bg-tertiary);
  border-left: 4px solid var(--color-accent-primary);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.subcategory-item:hover {
  transform: translateX(5px);
  background: var(--color-bg-tertiary);
  box-shadow: 0 4px 12px var(--color-accent-glow);
}

.subcategory-item h3 {
  margin: 0 0 0.5rem 0;
  color: var(--color-accent-primary);
}

.subcategory-item a {
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: 600;
}

.subcategory-item a:hover {
  color: var(--color-accent-primary);
  text-decoration: underline;
}

/* Step 0 global fix (2026-09-06): template leftover left every .tool-card with inline
   style="opacity:0" and no JS ever animated them, so all ~717 tool cards rendered invisible.
   Force visibility. Remove this rule only if inline opacity:0 is stripped from all HTML. */
.tool-card {
  opacity: 1 !important;
}

/* Step: uniform, centered tool-card action buttons (2026-09-07).
   The Review (primary) + Visit (secondary) buttons were inline-block siblings with
   mismatched box models (secondary has a 2px border, primary has none), so they
   rendered at different heights and sat offset from each other. Equalize the box
   model (border + padding + min-height) and center them as a row so every tool card
   looks the same. Scoped to .tool-card to avoid affecting hero buttons. */
.tool-card .btn-primary,
.tool-card .btn-secondary {
  box-sizing: border-box;
  padding: var(--spacing-sm) var(--spacing-lg);
  min-height: 44px;
  line-height: 1.2;
  vertical-align: middle;
}
.tool-card .btn-primary {
  border: 2px solid transparent; /* matches .btn-secondary's 2px border so heights align */
}
