/* Template detail pages */

.template-hero {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .template-hero {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.template-preview-wrap {
  background: linear-gradient(160deg, var(--violet-pale) 0%, var(--mint-pale) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.template-preview-wrap svg {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(59, 7, 100, 0.15);
}

.template-category {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.template-category a {
  color: var(--violet-dark);
  text-decoration: none;
}

.template-category a:hover { text-decoration: underline; }

.template-excerpt {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.template-actions { margin-bottom: 1.5rem; }

.template-actions-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.template-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.template-features li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  color: var(--text-body);
}

.template-features svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--violet);
  margin-top: 0.15rem;
}

.quick-answer {
  background: linear-gradient(135deg, var(--violet-pale) 0%, var(--mint-pale) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 2rem;
}

.quick-answer__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--violet-dark);
  margin-bottom: 0.35rem;
}

.quick-answer p { margin: 0; font-size: 0.95rem; }

.template-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.template-section:last-of-type { border-bottom: none; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.field-grid li {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--violet-pale);
  color: var(--violet-deep);
  border: 1px solid var(--border);
}

.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-section h2 { margin-bottom: 0.35rem; }
.related-section > p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.25rem; }

.template-updated {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
