/* SCHEMA GENERATOR EXTRAS */

/* Schema type selector grid */
.schema-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.schema-explain-where {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--blue-dark);
  font-weight: 500;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  /* border-top: 1px solid var(--border);*/
}
.schema-explain-where svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  flex-shrink: 0;
}

.schema-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: 'DM Sans', sans-serif;
  text-align: center;
}
.schema-type-card:hover { border-color: var(--blue-dark); background: var(--bg2); }
.schema-type-card.active { border-color: var(--blue-dark); background: rgba(0,119,182,0.06); }

.schema-type-icon svg { width: 20px; height: 20px; stroke: var(--ink3); }
.schema-type-card.active .schema-type-icon svg { stroke: var(--blue-dark); }

.schema-type-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink);
}

.schema-type-pts {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--blue-dark);
  font-weight: 600;
}

/* Fields grid */
.schema-fields-grid {
  grid-template-columns: 1fr 1fr;
}

.schema-field-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 3px;
}

/* Repeater items */
.schema-repeater-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
}

.schema-repeater-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.schema-repeater-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-dark);
}

/* Schema types explained */
.schema-types-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.schema-explain-item {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.15s;
}
.schema-explain-item:last-child { border-bottom: none; }
.schema-explain-item:hover { background: var(--bg2); }

.schema-explain-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.6rem;
}

.schema-explain-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.schema-explain-badge svg { width: 17px; height: 17px; stroke: #fff; }

.schema-badge-faq       { background: #0077b6; }
.schema-badge-howto     { background: #00b4d8; }
.schema-badge-article   { background: #0099bb; }
.schema-badge-org       { background: #03045e; }
.schema-badge-person    { background: #005f8a; }
.schema-badge-product   { background: #c8892a; }
.schema-badge-breadcrumb { background: #5a8fa8; }
.schema-badge-local     { background: #2d6a4f; }

.schema-explain-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.schema-explain-pts {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--blue-dark);
  font-weight: 600;
  margin-left: 0.4rem;
}

.schema-explain-use {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1px;
}

.schema-explain-desc {
  font-size: 0.86rem;
  color: var(--ink3);
  line-height: 1.65;
}

/* Responsive */
@media (max-width: 768px) {
  .schema-type-grid { grid-template-columns: repeat(4, 1fr); }
  .schema-fields-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .schema-type-grid { grid-template-columns: repeat(2, 1fr); }
}
