/* Shared tool SEO content — professional layout for standalone tools */

.tool-seo-section {
  max-width: 960px;
  margin: 2.5rem auto 3.5rem;
  padding: 0 1.25rem 2rem;
  box-sizing: border-box;
}

.tool-seo-breadcrumb {
  margin-bottom: 1.5rem;
}

.tool-seo-breadcrumb .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: var(--background-secondary, #f2f3f5);
  border: 1px solid var(--border-color, #e3e5e8);
  font-size: 0.82rem;
}

.tool-seo-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--text-muted, #72767d);
}

.tool-seo-breadcrumb a {
  color: var(--primary-color, #5865f2);
  text-decoration: none;
  font-weight: 500;
}

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

.tool-seo-breadcrumb .active {
  color: var(--text-secondary, #4e5058);
  font-weight: 600;
}

.tool-seo-heading {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: var(--text-primary, #2e3338);
  margin: 2.25rem 0 1rem;
  padding-top: 0.25rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.tool-seo-intro > h2:first-child {
  margin-top: 0;
}

.tool-seo-intro h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: var(--text-primary, #2e3338);
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.tool-seo-intro h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color, #5865f2);
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-seo-intro p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary, #4e5058);
  margin: 0 0 1rem;
}

/* Template category cards */
.tool-seo-intro h3 + ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  background: var(--background-secondary, #f2f3f5);
  border: 1px solid var(--border-color, #e3e5e8);
  border-radius: 12px;
  padding: 0.75rem;
}

.tool-seo-intro h3 + ul > li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.7rem 0.85rem;
  background: var(--background-primary, #fff);
  border: 1px solid var(--border-color, #e3e5e8);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-primary, #2e3338);
  word-break: break-word;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tool-seo-intro h3 + ul > li:hover {
  border-color: var(--primary-color, #5865f2);
  box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.25);
}

.tool-seo-intro .seo-copy-btn {
  flex-shrink: 0;
  appearance: none;
  border: none;
  cursor: pointer;
  background: var(--primary-color, #5865f2);
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.tool-seo-intro .seo-copy-btn:hover {
  background: var(--secondary-color, #4752c4);
}

.tool-seo-intro .seo-copy-btn.copied {
  background: var(--success-color, #57f287);
  color: #0b1a0f;
}

.tool-seo-intro .seo-tpl-text {
  flex: 1;
  min-width: 0;
}

/* Character limit table */
.tool-seo-intro table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0.75rem 0 1.5rem;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-color, #e3e5e8);
  background: var(--background-secondary, #f2f3f5);
  font-size: 0.9rem;
}

.tool-seo-intro th,
.tool-seo-intro td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color, #e3e5e8);
}

.tool-seo-intro th {
  background: var(--primary-color, #5865f2);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tool-seo-intro tr:last-child td {
  border-bottom: none;
}

.tool-seo-intro td {
  color: var(--text-secondary, #4e5058);
  background: var(--background-primary, #fff);
}

.tool-seo-intro td:nth-child(2) {
  font-weight: 700;
  color: var(--primary-color, #5865f2);
  white-space: nowrap;
}

/* How-to steps */
.tool-seo-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.tool-seo-step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--background-secondary, #f2f3f5);
  border: 1px solid var(--border-color, #e3e5e8);
  border-radius: 12px;
}

.tool-seo-step-num {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-color, #5865f2);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.tool-seo-step-text {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text-secondary, #4e5058);
  padding-top: 0.15rem;
}

/* Features */
.tool-seo-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.tool-seo-feature-item {
  position: relative;
  margin: 0;
  padding: 0.95rem 1rem 0.95rem 2.4rem;
  background: var(--background-secondary, #f2f3f5);
  border: 1px solid var(--border-color, #e3e5e8);
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary, #4e5058);
}

.tool-seo-feature-item::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0.9rem;
  top: 1.05rem;
  color: var(--success-color, #57f287);
  font-size: 0.8rem;
}

/* FAQ accordion */
.tool-seo-faq-list {
  display: grid;
  gap: 0.55rem;
}

.tool-seo-faq-item {
  background: var(--background-secondary, #f2f3f5);
  border: 1px solid var(--border-color, #e3e5e8);
  border-radius: 12px;
  overflow: hidden;
}

.tool-seo-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary, #2e3338);
  line-height: 1.4;
}

.tool-seo-faq-q::-webkit-details-marker {
  display: none;
}

.tool-seo-faq-icon {
  flex-shrink: 0;
  color: var(--text-muted, #72767d);
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.tool-seo-faq-item[open] .tool-seo-faq-icon {
  transform: rotate(180deg);
  color: var(--primary-color, #5865f2);
}

.tool-seo-faq-item[open] {
  border-color: rgba(88, 101, 242, 0.45);
}

.tool-seo-faq-a {
  padding: 0 1.15rem 1.1rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary, #4e5058);
}

/* Related blogs — reuse list styles from main.css, reinforce here */
.tool-seo-related-blogs .tool-related-posts-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  border: 1px solid var(--border-color, #e3e5e8);
  border-radius: 12px;
  overflow: hidden;
  background: var(--background-secondary, #f2f3f5);
}

.tool-seo-related-blogs .tool-related-posts-list li + li {
  border-top: 1px solid var(--border-color, #e3e5e8);
}

.tool-seo-related-blogs .tool-related-posts-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  text-decoration: none;
  color: var(--text-primary, #2e3338);
  font-size: 0.94rem;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.tool-seo-related-blogs .tool-related-posts-list a:hover {
  background: rgba(88, 101, 242, 0.1);
  color: var(--primary-color, #5865f2);
}

.tool-related-post-arrow {
  opacity: 0.45;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.tool-seo-related-blogs .tool-related-posts-list a:hover .tool-related-post-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ---------- Discord Bio Maker dark theme polish ---------- */
.tool-seo-section--discord-bio-maker {
  max-width: 980px;
  margin-top: 2rem;
  padding-top: 0.5rem;
}

[data-theme="dark"] .tool-seo-section--discord-bio-maker .tool-seo-intro h2,
[data-theme="dark"] .tool-seo-section--discord-bio-maker .tool-seo-heading {
  color: #fff;
}

[data-theme="dark"] .tool-seo-section--discord-bio-maker .tool-seo-intro h3 {
  color: #a5b0ff;
}

[data-theme="dark"] .tool-seo-section--discord-bio-maker .tool-seo-intro h3 + ul {
  background: #2f3136;
  border-color: #40444b;
}

[data-theme="dark"] .tool-seo-section--discord-bio-maker .tool-seo-intro h3 + ul > li {
  background: #202225;
  border-color: #40444b;
  color: #dcddde;
}

[data-theme="dark"] .tool-seo-section--discord-bio-maker .tool-seo-intro table {
  border-color: #40444b;
  background: #2f3136;
}

[data-theme="dark"] .tool-seo-section--discord-bio-maker .tool-seo-intro td {
  background: #202225;
  color: #b9bbbe;
  border-color: #40444b;
}

[data-theme="dark"] .tool-seo-section--discord-bio-maker .tool-seo-step,
[data-theme="dark"] .tool-seo-section--discord-bio-maker .tool-seo-feature-item,
[data-theme="dark"] .tool-seo-section--discord-bio-maker .tool-seo-faq-item,
[data-theme="dark"] .tool-seo-section--discord-bio-maker .tool-seo-breadcrumb .breadcrumb {
  background: #2f3136;
  border-color: #40444b;
}

[data-theme="dark"] .tool-seo-section--discord-bio-maker .tool-seo-faq-q {
  color: #fff;
}

[data-theme="dark"] .tool-seo-section--discord-bio-maker .tool-seo-related-blogs .tool-related-posts-list {
  background: #2f3136;
  border-color: #40444b;
}

[data-theme="dark"] .tool-seo-section--discord-bio-maker .tool-seo-related-blogs .tool-related-posts-list li + li {
  border-top-color: #40444b;
}

[data-theme="dark"] .tool-seo-section--discord-bio-maker .tool-seo-related-blogs .tool-related-posts-list a {
  color: #e3e5e8;
}

@media (max-width: 640px) {
  .tool-seo-intro h3 + ul > li {
    flex-direction: column;
    align-items: flex-start;
  }

  .tool-seo-intro .seo-copy-btn {
    align-self: flex-end;
  }

  .tool-seo-intro table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
