/* =========== SEO Glossary CSS ============= */

/* Legacy list page classes (kept for compatibility) */
.seo-glossary-hero {
  padding: 40px 0px;
  border-bottom: 1px solid #cbcbcb;
  margin-bottom: 40px;
  margin-top: 130px;
}

.seo-glossary-hero .title {
  font-weight: 600;
  font-size: 20px;
  color: #1a1a2e;
  line-height: 1.6;
}

.seo-glossary-hero .desc {
  color: #4a5568;
  font-size: 18px;
  line-height: 1.6;
}

.seo-glossary-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.seo-glossary-card {
  width: 100%;
  border-radius: 6px;
  padding: 20px;
  transition: all 0.3s ease;
  border: 1px solid #e8ecf1;
}

.seo-glossary-card .title {
  color: #0808EE;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.6;
}

.seo-glossary-card .desc {
  color: #4a5568;
  font-size: 16px;
  line-height: 1.6;
}

.seo-glossary-card:hover {
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Alphabet Navigation */
.letters-nav {
  display: none;
}

.letters-nav.fixed {
  position: fixed;
  display: flex;
  top: 120px;
  z-index: 1000;
}

.letters-nav.hide {
  visibility: hidden;
  overflow: hidden;
}

.letters-nav.show {
  visibility: visible;
}

/* =========== SEO Glossary Details Page ============= */
.seo-app-details-container {
  padding: 40px 20px;
  margin-top: 120px;
}

.breadcrumb-link {
  color: #0808EE;
}

/* Article Content Styling */
.seo-app-details-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4a5568;
}

.seo-app-details-content h1,
.seo-app-details-content h2,
.seo-app-details-content h3,
.seo-app-details-content h4,
.seo-app-details-content h5,
.seo-app-details-content h6 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-weight: 700;
  color: #1a1a2e;
}

.seo-app-details-content h1 { font-size: 1.75rem; }
.seo-app-details-content h2 { font-size: 1.5rem; }
.seo-app-details-content h3 { font-size: 1.25rem; }
.seo-app-details-content h4 { font-size: 1.1rem; }
.seo-app-details-content h5 { font-size: 1rem; }
.seo-app-details-content h6 { font-size: 0.95rem; }

.seo-app-details-content p {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: #4a5568;
  line-height: 1.8;
}

.seo-app-details-content ul,
.seo-app-details-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: #4a5568;
}

.seo-app-details-content ul li,
.seo-app-details-content ol li {
  margin-bottom: 8px;
  align-items: baseline;
}

.seo-app-details-content ul li:has(> p > strong),
.seo-app-details-content ol li:has(> p > strong) {
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
}

.seo-app-details-content ul li:has(ul),
.seo-app-details-content ol li:has(ol),
.seo-app-details-content ul li:has(ol),
.seo-app-details-content ol li:has(ul) {
  display: block;
}

.seo-app-details-content ul li::before {
  content: "\2022";
  color: #0808EE;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  margin-right: 0.5em;
  flex-shrink: 0;
}

.seo-app-details-content ol {
  counter-reset: item;
}

.seo-app-details-content ol li::before {
  content: counter(item) ".";
  counter-increment: item;
  font-weight: 600;
  color: #0808EE;
  display: inline-block;
  width: 1.5em;
  margin-left: -1.5em;
  margin-right: 0.5em;
  text-align: right;
  flex-shrink: 0;
}

.seo-app-details-content li p {
  margin: 0;
}

.seo-app-details-content li strong {
  font-weight: 700;
  color: #1a1a2e;
}

.seo-app-details-content ul ul {
  list-style-type: none;
  padding-left: 40px;
}

.seo-app-details-content ul ul li::before {
  content: "\25E6";
  color: #64748b;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  margin-right: 0.5em;
}

.seo-app-details-content li a {
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  margin: 0 4px;
}

.seo-app-details-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 16px;
  border-radius: 8px;
}

.seo-app-details-content a {
  color: #0808EE;
  text-decoration: none;
  font-weight: 500;
}

.seo-app-details-content a:hover {
  text-decoration: underline;
}

.seo-app-details-content blockquote {
  margin: 20px 0;
  padding: 16px 20px;
  background: #f8fafc;
  border-left: 4px solid #0808EE;
  border-radius: 0 8px 8px 0;
  color: #4a5568;
  font-style: italic;
}

.seo-app-details-content pre {
  margin-bottom: 16px;
  padding: 16px;
  background: #f8fafc;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  color: #1a1a2e;
}

.seo-app-details-content code {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.9em;
  background: #f0f4ff;
  padding: 2px 6px;
  border-radius: 4px;
  color: #0808EE;
}

.seo-app-details-content pre code {
  background: transparent;
  padding: 0;
  color: #1a1a2e;
}

.seo-app-details-content strong {
  color: #1a1a2e;
}

.seo-app-details-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.seo-app-details-content th {
  background: #f1f5f9;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 2px solid #e2e8f0;
}

.seo-app-details-content td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
}

.seo-app-details-content tr:hover td {
  background: #fafbff;
}

.seo-app-details-content hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 32px 0;
}

/* Details summary arrow */
details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border-radius: 4px;
  background: rgba(8, 8, 238, 0.08);
  color: #0808EE;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

details[open] summary::before {
  content: "\2212";
}

/* Featured / Related area */
.seo-app-details-featured-area {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
}

.featured-area-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a2e;
}

.seo-app-details-featured-options {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.featured-img-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 12px;
  flex-shrink: 0;
}

.featured-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-desc {
  font-size: 13px;
  color: #64748b;
}

.seo-app-details-featured-area .seo-app-details-featured-options .img-main {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8ecf1;
  height: 80px;
  width: 80px;
  padding: 6px;
  margin-right: 10px;
  flex-shrink: 0;
}

.seo-app-details-featured-area .seo-app-details-featured-options .img-main img {
  height: 100%;
  width: 100%;
  border-radius: 3px;
  object-fit: cover;
}

.seo-app-details-featured-area .seo-app-details-featured-options .featured-title {
  font-weight: 600;
  transition: all 0.2s ease-out;
  cursor: pointer;
  font-size: 15px;
  margin-top: 4px;
  color: #1a1a2e;
}

.seo-app-details-featured-area .seo-app-details-featured-options .featured-desc {
  font-size: 14px;
}

.seo-app-details-featured-area .seo-app-details-featured-options .featured-title:hover {
  color: #0808EE;
}

/* Mobile */
@media (max-width: 767px) {
  .seo-app-details-container {
    padding: 24px 16px;
  }

  .seo-app-details-content h1 { font-size: 1.5rem; }
  .seo-app-details-content h2 { font-size: 1.3rem; }
  .seo-app-details-content h3 { font-size: 1.1rem; }

  .featured-area-title {
    font-size: 1rem;
  }

  .featured-img-wrapper {
    width: 50px;
    height: 50px;
  }

  .featured-desc {
    font-size: 12px;
  }
}
