/* D&D Tools Hub Styles */

.breadcrumb {
  font-size: 0.95em;
  opacity: 0.9;
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

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

.breadcrumb .sep {
  opacity: 0.6;
  margin: 0 8px;
}

.breadcrumb .current {
  color: var(--cream);
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.quick-access {
  margin-top: 32px;
}

.popular-utilities {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--light-gray);
}

.utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.utility-links a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}

.utility-links a:hover {
  text-decoration: underline;
}

.utility-links .sep {
  opacity: 0.5;
  margin: 0 4px;
}

.seo-intro {
  margin-top: 48px;
  margin-bottom: 32px;
}

.seo-intro h2 {
  font-family: 'Fredoka', sans-serif;
  color: var(--gold);
  font-size: 1.8em;
  margin-bottom: 12px;
}

.seo-intro p {
  color: var(--cream);
  line-height: 1.6;
  opacity: 0.9;
  font-size: 1.05em;
}

.tool-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.tool-card {
  background: var(--dark-gray);
  border: 1px solid var(--light-gray);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: #1a1a1a;
}

.tool-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.tool-card.featured {
  border-color: var(--gold);
  background: #1a1a1a;
}

.tool-card.featured:hover {
  background: #1f1f1f;
}

.tool-card .badge {
  display: inline-block;
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(251, 139, 36, 0.15);
  border: 1px solid rgba(251, 139, 36, 0.4);
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 600;
}

.tool-card h3 {
  font-family: 'Fredoka', sans-serif;
  color: var(--gold);
  font-size: 1.3em;
  margin-bottom: 12px;
}

.tool-icon {
  margin-right: 8px;
}

.tool-card p {
  color: var(--cream);
  line-height: 1.6;
  margin-bottom: 16px;
  opacity: 0.9;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  font-weight: 500;
  margin-top: 8px;
}

.all-tools {
  margin-top: 48px;
}

.tools-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 24px;
}

.tool-category h3 {
  font-family: 'Fredoka', sans-serif;
  color: var(--gold);
  font-size: 1.2em;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--light-gray);
  padding-bottom: 8px;
}

.tool-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tool-category li {
  margin-bottom: 0;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.6;
}

.tool-category li:last-child {
  border-bottom: none;
}

.tool-category a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}

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

.how-to-use {
  margin-top: 48px;
  background: var(--dark-gray);
  border: 1px solid var(--light-gray);
  border-radius: 16px;
  padding: 24px;
}

.how-to-use h2 {
  font-family: 'Fredoka', sans-serif;
  color: var(--gold);
  margin-bottom: 16px;
}

.how-to-use ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.how-to-use li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
  line-height: 1.6;
  color: var(--cream);
}

.how-to-use li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

.how-to-use a {
  color: var(--gold);
  text-decoration: none;
}

.how-to-use a:hover {
  text-decoration: underline;
}

.faq-section {
  margin-top: 48px;
}

.faq-list {
  margin-top: 24px;
}

.faq-item {
  background: var(--dark-gray);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.faq-item summary {
  font-family: 'Fredoka', sans-serif;
  color: var(--gold);
  font-size: 1.1em;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}

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

.faq-item summary::before {
  content: "+ ";
  margin-right: 8px;
  font-weight: bold;
}

.faq-item[open] summary::before {
  content: "− ";
}

.faq-item p {
  margin-top: 12px;
  color: var(--cream);
  line-height: 1.6;
  padding-left: 24px;
}

.related-tools {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--light-gray);
}

.related-tools ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
}

.related-tools li {
  margin-bottom: 10px;
}

.related-tools a {
  color: var(--gold);
  text-decoration: none;
}

.related-tools a:hover {
  text-decoration: underline;
}

.back-to-hub {
  display: inline-block;
  margin-top: 16px;
  margin-bottom: 16px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.back-to-hub:hover {
  opacity: 0.8;
  text-decoration: underline;
}

@media (max-width: 560px) {
  .tool-cards-grid {
    grid-template-columns: 1fr;
  }

  .tools-list {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

