/* ───────── Библиотека промтов: общие стили ───────── */

/* HERO */
.pr-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
  color: #fff;
  padding: 56px 0 56px;
  text-align: center;
}
.pr-hero-inner { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.pr-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  margin-bottom: 20px;
}
.pr-hero h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #fff;
}
.pr-hero p { font-size: 16px; opacity: .87; line-height: 1.65; margin-bottom: 24px; }
.pr-hero-stats { display:flex; gap:32px; justify-content:center; flex-wrap:wrap; margin-top: 22px; }
.pr-hero-stat strong { display:block; font-size:24px; font-weight:800; color:#fbbf24; }
.pr-hero-stat span   { display:block; font-size:13px; opacity:.8; margin-top:2px; }

@media (max-width: 600px) {
  .pr-hero { padding: 40px 0 36px; }
  .pr-hero h1 { font-size: 26px; }
  .pr-hero p { font-size: 14px; }
}

/* СЕКЦИЯ */
.pr-section { padding: 36px 0 60px; }
.pr-section .container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.pr-section-title { font-size: 22px; font-weight: 700; color:#0f172a; margin: 0 0 20px; }
.pr-count-badge {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 10px;
  margin-left: 8px;
}

/* ПОИСК */
.pr-search-wrap { margin-bottom: 24px; }
.pr-search-form { max-width: 760px; margin: 0 auto; }

/* Фильтр «Этап работы» */
.pr-stage-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 14px;
  justify-content: center;
}
.pr-stage-label {
  font-size: 13px;
  color: #64748b;
  margin-right: 6px;
  font-weight: 500;
}
.pr-stage-chip {
  display: inline-block;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-size: 12.5px;
  color: #475569;
  text-decoration: none;
  transition: all .12s;
}
.pr-stage-chip:hover { border-color: #2563eb; color: #1d4ed8; }
.pr-stage-chip.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* Бейдж «Проверено методистом» */
.pr-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  vertical-align: middle;
  cursor: help;
}
.pr-verified-block {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.pr-verified-badge-big {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #fff;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}
.pr-verified-name { font-size: 13px; color: #475569; }
.pr-search-inner {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 4px 4px 4px 14px;
  transition: border-color .15s;
}
.pr-search-inner:focus-within { border-color: #2563eb; }
.pr-search-icon { color: #94a3b8; flex-shrink: 0; }
.pr-search-input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 15px;
  padding: 12px 10px;
  background: transparent;
  font-family: inherit;
  color: #0f172a;
}
.pr-search-clear {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: #94a3b8; text-decoration: none; font-size: 16px;
}
.pr-search-clear:hover { background: #f1f5f9; color: #475569; }
.pr-search-btn {
  border: 0; background: #2563eb; color: #fff;
  padding: 10px 22px; border-radius: 9px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: background .15s;
}
.pr-search-btn:hover { background: #1d4ed8; }

/* КАТЕГОРИИ — горизонтальные плитки */
.pr-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.pr-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  transition: all .15s;
}
.pr-cat:hover { border-color: #2563eb; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,.12); }
.pr-cat.active { border-color: #2563eb; background: #eff6ff; }
.pr-cat-icon { font-size: 26px; flex-shrink: 0; line-height: 1; }
.pr-cat-body { flex: 1; min-width: 0; }
.pr-cat-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.pr-cat-cnt   { font-size: 12px; color: #64748b; margin-top: 2px; }

/* КАРТОЧКИ ПРОМТОВ — grid */
.pr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
@media (max-width: 640px) {
  .pr-grid { grid-template-columns: 1fr; }
  .pr-cats { grid-template-columns: 1fr; }
}
.pr-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px 16px;
  text-decoration: none;
  color: inherit;
  transition: all .18s;
  position: relative;
}
.pr-card:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
}
.pr-card-meta {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-bottom: 10px;
  font-size: 11px;
}
.pr-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
}
.pr-tag-cat   { background: #eff6ff; color: #1d4ed8; }
.pr-tag-net   { background: #f0fdf4; color: #16a34a; }
.pr-tag-grade { background: #fef3c7; color: #b45309; }
.pr-tag-subj  { background: #f5f3ff; color: #7c3aed; }
.pr-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin: 0 0 8px;
}
.pr-card-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: #475569;
  flex: 1;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pr-card-stats {
  display: flex; gap: 14px;
  font-size: 12px;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}
.pr-card-stat { display: inline-flex; align-items: center; gap: 4px; }
.pr-card-stat svg { opacity: .7; }

/* ПАГИНАЦИЯ */
.pr-pagination {
  display: flex; gap: 12px; justify-content: center; align-items: center;
  margin-top: 32px; flex-wrap: wrap;
}
.pr-page-btn {
  background: #fff; border: 1px solid #e2e8f0; color: #1d4ed8;
  padding: 9px 16px; border-radius: 9px; font-weight: 600; font-size: 14px;
  text-decoration: none; transition: all .15s;
}
.pr-page-btn:hover { border-color: #2563eb; background: #eff6ff; }
.pr-page-info { font-size: 13px; color: #64748b; }

/* SEO-БЛОК */
.pr-seo-text {
  margin-top: 40px;
  padding: 24px 28px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  line-height: 1.65;
  font-size: 14.5px;
  color: #334155;
}
.pr-seo-text h2 { font-size: 20px; margin: 0 0 12px; color: #0f172a; }
.pr-seo-text h3 { font-size: 16px; margin: 16px 0 8px; color: #0f172a; }
.pr-seo-text p { margin: 0 0 10px; }

/* ───────── Страница промта (show) ───────── */
.pr-show-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}
.pr-breadcrumbs { font-size: 13px; color: #64748b; margin-bottom: 18px; }
.pr-breadcrumbs a { color: #2563eb; text-decoration: none; }
.pr-breadcrumbs a:hover { text-decoration: underline; }
.pr-breadcrumbs .sep { margin: 0 6px; opacity: .5; }

.pr-show-header { margin-bottom: 24px; }
.pr-show-meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.pr-show h1 {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 12px;
}
.pr-show-desc { font-size: 16px; line-height: 1.6; color: #475569; margin: 0 0 16px; }

.pr-show-stats {
  display: flex; gap: 20px; font-size: 13px; color: #64748b;
  padding: 12px 0; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;
  margin-bottom: 24px;
}
.pr-show-stat { display: inline-flex; align-items: center; gap: 5px; }

/* Промт-блок */
.pr-prompt-block {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 14px;
  padding: 20px 22px;
  position: relative;
  margin-bottom: 14px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.pr-prompt-block .pr-var {
  background: #1d4ed8;
  color: #fff;
  padding: 1px 7px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 13px;
}
.pr-prompt-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px;
}
.pr-btn {
  border: 0; cursor: pointer;
  padding: 11px 18px; border-radius: 10px;
  font-weight: 600; font-size: 14px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
  transition: all .15s; font-family: inherit;
}
.pr-btn-primary { background: #2563eb; color: #fff; }
.pr-btn-primary:hover { background: #1d4ed8; }
.pr-btn-secondary { background: #fff; color: #1e293b; border: 1px solid #e2e8f0; }
.pr-btn-secondary:hover { border-color: #2563eb; color: #1d4ed8; }
.pr-btn-success { background: #16a34a; color: #fff; }

/* Конструктор */
.pr-builder {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 28px;
}
.pr-builder h2 {
  font-size: 18px; font-weight: 700; margin: 0 0 6px; color: #0f172a;
}
.pr-builder-sub { font-size: 13px; color: #64748b; margin: 0 0 18px; }
.pr-field { margin-bottom: 14px; }
.pr-field label {
  display: block; font-size: 13px; font-weight: 600;
  color: #334155; margin-bottom: 5px;
}
.pr-field input, .pr-field textarea, .pr-field select {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; font-size: 14px;
  border: 1px solid #cbd5e1; border-radius: 9px;
  font-family: inherit; color: #0f172a; background: #fff;
}
.pr-field textarea { min-height: 70px; resize: vertical; }
.pr-field input:focus, .pr-field textarea:focus, .pr-field select:focus {
  outline: 0; border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.pr-field-hint { font-size: 12px; color: #94a3b8; margin-top: 3px; }

/* Образовательный блок */
.pr-edu {
  background: linear-gradient(135deg, #fef3c7 0%, #fef9e7 100%);
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 28px;
}
.pr-edu-title {
  font-size: 14px; font-weight: 700; color: #92400e;
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.pr-edu-text { font-size: 14px; line-height: 1.6; color: #78350f; margin: 0; }

/* Пример вход/выход */
.pr-example {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 28px;
}
.pr-example h3 { font-size: 16px; margin: 0 0 10px; color: #0f172a; }
.pr-example-block {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 12px 14px; font-size: 13.5px; line-height: 1.6;
  color: #334155; white-space: pre-wrap; margin-bottom: 12px;
}
.pr-example-label { font-size: 11px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }

/* Рейтинг */
.pr-rating {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 14px; padding: 16px 22px; margin-bottom: 28px;
}
.pr-rating-label { font-size: 14px; color: #475569; }
.pr-stars { display: inline-flex; gap: 4px; }
.pr-star {
  background: none; border: 0; cursor: pointer;
  font-size: 22px; line-height: 1; color: #cbd5e1; padding: 2px;
  transition: color .15s, transform .1s;
}
.pr-star:hover, .pr-star.hover { color: #f59e0b; transform: scale(1.15); }
.pr-star.filled { color: #f59e0b; }
.pr-rating-info { font-size: 13px; color: #64748b; }

/* Похожие */
.pr-related { margin-top: 36px; }
.pr-related h2 { font-size: 20px; margin: 0 0 16px; color: #0f172a; }
