/**
 * Single Horse Name Page — /name/{slug}/
 */

/* ── Variables (scoped to page) ── */
.shn-page {
  --shn-bg: #FAF8F5;
  --shn-surface: #FFFFFF;
  --shn-surface-alt: #F5F0EB;
  --shn-border: #E8E0D8;
  --shn-border-light: #F0EBE5;
  --shn-text: #3D3429;
  --shn-text-sec: #7A6E5E;
  --shn-text-muted: #A89B8A;
  --shn-accent: #8B6914;
  --shn-accent-hover: #A37D1A;
  --shn-accent-bg: #F5EFE0;
  --shn-accent-bg-hover: #EDE4CF;
  --shn-brown-dark: #5C4A2A;
  --shn-heart: #C75B5B;
  --shn-heart-hover: #B84848;
  --shn-badge-bg: #F0EBE5;
  --shn-badge-text: #6B5D4A;
  --shn-radius-sm: 4px;
  --shn-radius-md: 8px;
  --shn-radius-lg: 12px;
  --shn-shadow-hover: 0 4px 12px rgba(60, 50, 30, 0.1), 0 2px 4px rgba(60, 50, 30, 0.06);
}

.shn-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  font-family: 'Source Sans 3', 'DM Sans', 'Segoe UI', Tahoma, sans-serif;
  color: var(--shn-text);
  line-height: 1.65;
  font-size: 16px;
}

/* ── Breadcrumb ── */
.shn-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--shn-text-muted);
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.shn-breadcrumb a {
  color: var(--shn-text-sec);
  text-decoration: none;
  transition: color 0.2s;
}
.shn-breadcrumb a:hover { color: var(--shn-accent); }
.shn-breadcrumb .shn-sep { color: var(--shn-border); user-select: none; }
.shn-breadcrumb .shn-current { color: var(--shn-text-muted); }

/* ── Hero ── */
.shn-hero {
  text-align: center;
  padding: 40px 20px 44px;
  margin-bottom: 40px;
  position: relative;
}

.shn-hero-category {
  display: inline-block;
  font-family: 'Source Sans 3', 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--shn-accent);
  background: var(--shn-accent-bg);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.shn-hero h1 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 500;
  color: var(--shn-text);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.shn-hero-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--shn-text-sec);
  margin-bottom: 24px;
}

.shn-hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.shn-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--shn-badge-text);
  background: var(--shn-badge-bg);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--shn-border-light);
  transition: background 0.2s;
}
.shn-badge:hover { background: var(--shn-accent-bg); }
.shn-badge-icon {
  font-size: 13px;
  opacity: 0.7;
}

.shn-favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Source Sans 3', 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--shn-text-sec);
  background: var(--shn-surface);
  border: 1px solid var(--shn-border);
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s;
}
.shn-favorite-btn:hover {
  border-color: var(--shn-heart);
  color: var(--shn-heart);
  background: #FDF5F5;
}
.shn-favorite-btn.active {
  border-color: var(--shn-heart);
  color: var(--shn-heart);
  background: #FDF5F5;
}
.shn-favorite-btn .shn-heart-icon {
  font-size: 16px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.shn-favorite-btn:hover .shn-heart-icon,
.shn-favorite-btn.active .shn-heart-icon { transform: scale(1.2); }

/* ── Content Grid ── */
.shn-content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  margin-bottom: 48px;
  align-items: start;
}

/* ── Meaning Section ── */
.shn-meaning {
  background: var(--shn-surface);
  border: 1px solid var(--shn-border);
  border-radius: var(--shn-radius-lg);
  padding: 36px;
}

.shn-section-label {
  font-family: 'Source Sans 3', 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--shn-text-muted);
  margin-bottom: 16px;
}

.shn-meaning h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--shn-text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.shn-meaning p {
  color: var(--shn-text-sec);
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 14px;
}
.shn-meaning p:last-child { margin-bottom: 0; }

/* ── Quick Facts Sidebar ── */
.shn-facts {
  background: var(--shn-surface);
  border: 1px solid var(--shn-border);
  border-radius: var(--shn-radius-lg);
  padding: 28px;
  position: sticky;
  top: 24px;
}

.shn-facts .shn-section-label { margin-bottom: 20px; }

.shn-fact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--shn-border-light);
}
.shn-fact-row:last-child { border-bottom: none; }

.shn-fact-label {
  font-size: 13.5px;
  color: var(--shn-text-muted);
  font-weight: 400;
}
.shn-fact-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--shn-text);
}

/* ── Perfect For ── */
.shn-perfect-for {
  background: var(--shn-surface);
  border: 1px solid var(--shn-border);
  border-radius: var(--shn-radius-lg);
  padding: 36px;
  margin-bottom: 48px;
}

.shn-perfect-for-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--shn-text);
  line-height: 1.6;
  margin-bottom: 20px;
}

.shn-browse-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.shn-browse-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--shn-accent);
  background: var(--shn-accent-bg);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.2s;
}
.shn-browse-link:hover {
  background: var(--shn-accent-bg-hover);
  color: var(--shn-accent-hover);
}

/* ── Related Names ── */
.shn-related { margin-bottom: 48px; }
.shn-related .shn-section-label { margin-bottom: 20px; }

.shn-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.shn-related-card {
  background: var(--shn-surface);
  border: 1px solid var(--shn-border);
  border-radius: var(--shn-radius-lg);
  padding: 22px 18px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
  cursor: pointer;
}
.shn-related-card:hover {
  border-color: var(--shn-accent);
  box-shadow: var(--shn-shadow-hover);
  transform: translateY(-2px);
}
.shn-related-card-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--shn-text);
  margin-bottom: 6px;
}
.shn-related-card-desc {
  font-size: 12.5px;
  color: var(--shn-text-muted);
  line-height: 1.45;
}
.shn-related-card-badges {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.shn-related-badge {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--shn-badge-text);
  background: var(--shn-badge-bg);
  padding: 3px 8px;
  border-radius: 10px;
}

/* ── CTA ── */
.shn-cta {
  text-align: center;
  padding: 44px 20px;
  background: var(--shn-surface);
  border: 1px solid var(--shn-border);
  border-radius: var(--shn-radius-lg);
}

.shn-cta-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--shn-text);
  margin-bottom: 20px;
}

.shn-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.shn-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Source Sans 3', 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 30px;
  transition: all 0.25s;
  cursor: pointer;
}
.shn-cta-btn-primary {
  background: var(--shn-brown-dark);
  color: #FFFFFF;
  border: none;
}
.shn-cta-btn-primary:hover {
  background: #4A3B22;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(92, 74, 42, 0.25);
}
.shn-cta-btn-secondary {
  background: var(--shn-surface);
  color: var(--shn-text);
  border: 1px solid var(--shn-border);
}
.shn-cta-btn-secondary:hover {
  border-color: var(--shn-accent);
  color: var(--shn-accent);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .shn-page { padding: 16px 16px 48px; }
  .shn-hero { padding: 28px 12px 32px; }
  .shn-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .shn-facts { position: static; }
  .shn-related-grid { grid-template-columns: repeat(2, 1fr); }
  .shn-meaning { padding: 28px 24px; }
  .shn-perfect-for { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .shn-related-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .shn-hero h1 { font-size: 2rem; }
  .shn-cta-buttons { flex-direction: column; align-items: center; }
}

/* ── Fade-in animations ── */
@keyframes shnFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.shn-hero { animation: shnFadeUp 0.5s ease-out; }
.shn-content-grid { animation: shnFadeUp 0.5s ease-out 0.1s both; }
.shn-perfect-for { animation: shnFadeUp 0.5s ease-out 0.2s both; }
.shn-related { animation: shnFadeUp 0.5s ease-out 0.3s both; }
.shn-cta { animation: shnFadeUp 0.5s ease-out 0.4s both; }
