/* ─────────────────────────────────────────────
   AI Pirates — Glossar Stylesheet
   Index + Entry pages for AI glossary
───────────────────────────────────────────── */

/* === GLOSSAR INDEX PAGE === */

/* Hero */
.glossar-hero {
  text-align: center;
  padding: 120px 24px 48px;
  max-width: 720px;
  margin: 0 auto;
}

/* Stats bar */
.glossar-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 24px;
}

.glossar-stats span {
  color: #00f0ff;
}

/* Search */
.glossar-search {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 32px auto 0;
  padding: 14px 20px 14px 48px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: #e2e8f0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='5'/%3E%3Cline x1='14' y1='14' x2='18' y2='18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
}

.glossar-search::placeholder {
  color: #64748b;
}

.glossar-search:focus {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.1);
}

/* Category filter pills */
.glossar-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 24px 24px 0;
  max-width: 800px;
  margin: 0 auto;
}

.glossar-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #94a3b8;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}

.glossar-filter-pill:hover {
  border-color: rgba(0, 240, 255, 0.3);
  color: #e2e8f0;
}

.glossar-filter-pill.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
  color: #00f0ff;
}

/* Type toggle: All / Tools / Concepts */
.glossar-type-toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin: 24px auto 0;
}

.glossar-type-toggle button {
  padding: 8px 20px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s ease;
}

.glossar-type-toggle button:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.glossar-type-toggle button:hover {
  color: #e2e8f0;
}

.glossar-type-toggle button.active {
  background: rgba(0, 240, 255, 0.1);
  color: #00f0ff;
}

/* Alphabet navigation */
.glossar-alpha {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 24px 24px 0;
  max-width: 700px;
  margin: 0 auto;
}

.glossar-alpha a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  border-radius: 4px;
  transition: color .2s, background .2s;
}

.glossar-alpha a:hover {
  color: #94a3b8;
}

.glossar-alpha a.has-entries {
  color: #94a3b8;
}

.glossar-alpha a.has-entries:hover {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.06);
}

/* Letter heading */
.glossar-letter {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00f0ff, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 12px;
  margin: 48px 0 20px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}

/* Card grid */
.glossar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Entry card */
.glossar-card {
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.glossar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.08);
}

.glossar-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.glossar-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.glossar-card-provider {
  font-size: 12px;
  color: #94a3b8;
  font-family: "Courier New", monospace;
  margin-bottom: 8px;
}

.glossar-card-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.glossar-card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.glossar-card-cat {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(0, 240, 255, 0.06);
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.15);
}

/* Badges */
.tool-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.concept-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Result count */
.glossar-count {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #64748b;
  text-align: center;
  padding: 16px 0;
}

/* Empty state */
.glossar-empty {
  text-align: center;
  padding: 80px 24px;
  color: #475569;
  font-size: 1.2rem;
}


/* === GLOSSAR ENTRY PAGE === */

/* Section headings (styled as labels, semantic h2) */
.glossar-entry-page h2.label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #ff2a2a;
  font-family: "Courier New", monospace;
  margin: 0;
}

/* Entry page wrapper */
.glossar-entry-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Entry sections */
.glossar-entry-section {
  margin-bottom: 48px;
}

.glossar-entry-description {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.7;
}

.glossar-entry-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.glossar-entry-type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.glossar-entry-type-badge[data-type="tool"] {
  color: #00f0ff;
  border: 1px solid rgba(0, 240, 255, 0.3);
}
.glossar-entry-type-badge[data-type="concept"] {
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Entry CTA */
.glossar-entry-cta {
  text-align: center;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 56px 32px;
  margin-bottom: 64px;
}
.glossar-entry-cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #00f0ff, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glossar-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff2a2a;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background .2s, box-shadow .2s;
}
.glossar-cta-btn:hover {
  background: #e01f1f;
  box-shadow: 0 0 20px rgba(255, 42, 42, 0.35);
}

/* Breadcrumb */
.glossar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: "Courier New", monospace;
  color: #64748b;
  padding: 100px 0 0;
}

.glossar-breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
  transition: color .2s;
}

.glossar-breadcrumb a:hover {
  color: #00f0ff;
}

.glossar-breadcrumb .sep::before {
  content: ">";
  margin: 0 2px;
  color: #475569;
}

/* Entry hero */
.glossar-entry-hero {
  padding: 32px 0 48px;
}

.glossar-entry-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.15;
}

.glossar-entry-provider {
  font-size: 13px;
  font-family: "Courier New", monospace;
  color: #94a3b8;
  margin-bottom: 16px;
}

.glossar-entry-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Description */
.glossar-description {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* Use cases grid (semantic ul) */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.usecase-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.5;
}

/* Pricing box */
.pricing-box {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid #00f0ff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 48px;
}

.pricing-box-label {
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #ff2a2a;
  margin-bottom: 8px;
}

.pricing-box-text {
  font-size: 15px;
  color: #e2e8f0;
  line-height: 1.6;
}

/* AI Pirates note */
.ai-pirates-note {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid transparent;
  border-image: linear-gradient(to bottom, #00f0ff, #a855f7) 1;
  border-image-slice: 0 0 0 1;
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
}

.ai-pirates-note-label {
  font-family: "Courier New", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #ff2a2a;
  margin-bottom: 10px;
}

.ai-pirates-note p {
  color: #94a3b8;
  font-size: 15px;
  font-style: italic;
  line-height: 1.7;
  margin: 0;
}

/* External link button */
.glossar-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 6px;
  color: #00f0ff;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: all .2s ease;
}

.glossar-ext-link:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: #00f0ff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}

/* Related entries grid */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  display: block;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s ease, border-color .2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.25);
}

/* CTA section */
.glossar-cta {
  text-align: center;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 56px 32px;
  max-width: 800px;
  margin: 0 auto 64px;
}

.glossar-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #00f0ff, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glossar-cta p {
  color: #94a3b8;
  margin: 0 0 24px;
  font-size: 15px;
}

.glossar-cta .btn-cta {
  font-size: 12px;
}


/* === RESPONSIVE === */

@media (max-width: 1024px) {
  .glossar-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .glossar-hero { padding: 100px 20px 32px; }
  .glossar-stats { gap: 16px; font-size: 11px; }
  .glossar-search { font-size: 14px; padding: 12px 16px 12px 44px; }
  .glossar-grid { grid-template-columns: 1fr; }
  .glossar-letter { font-size: 1.5rem; margin-top: 32px; }

  .glossar-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 24px 20px 0;
  }
  .glossar-filter::-webkit-scrollbar { display: none; }

  .glossar-entry-title { font-size: 1.8rem; }
  .usecase-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }

  .glossar-breadcrumb { padding-top: 80px; padding-left: 0; padding-right: 0; }
  .glossar-cta { padding: 40px 20px; margin: 0 16px 48px; }
}

/* === FAQ SECTION === */
.glossar-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.glossar-faq-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.glossar-faq-item[open] {
  border-color: rgba(0,240,255,0.2);
}
.glossar-faq-q {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  color: #e2e8f0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}
.glossar-faq-q::-webkit-details-marker { display: none; }
.glossar-faq-q::after {
  content: '+';
  font-family: 'Courier New', monospace;
  color: #00f0ff;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.glossar-faq-item[open] .glossar-faq-q::after {
  content: '−';
}
.glossar-faq-a {
  padding: 0 20px 16px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
}
/* richDescription styling */
.glossar-entry-description p {
  margin-bottom: 12px;
  line-height: 1.7;
}
.glossar-entry-description p:last-child {
  margin-bottom: 0;
}
.glossar-entry-description a {
  color: #00f0ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,240,255,0.3);
  transition: border-color 0.2s;
}
.glossar-entry-description a:hover {
  border-color: #00f0ff;
}
