/* ==========================================================================
   AEGO /jak-tworzyc-prompty/ — 4 Warianty Edukacyjne z Przełącznikiem
   ========================================================================== */

/* ---------- Pasek Przełącznika Wariantów (Sticky) ---------- */
.aego-edu-switcher {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #061126;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  padding: 10px 0;
}
.aego-edu-switcher__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.aego-edu-switcher__info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.aego-edu-switcher__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: aego-edu-pulse 2s infinite;
}
@keyframes aego-edu-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.aego-edu-switcher__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.aego-edu-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.aego-edu-switcher__btn b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.72rem;
}
.aego-edu-switcher__btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}
.aego-edu-switcher__btn.is-active {
  background: var(--aego-cta, #c48b31);
  color: #ffffff;
  border-color: var(--aego-cta, #c48b31);
  box-shadow: 0 2px 10px rgba(196, 139, 49, 0.45);
}
.aego-edu-switcher__btn.is-active b {
  background: #ffffff;
  color: var(--aego-navy, #0f172a);
}

/* ---------- Kontener główny & Typografia ---------- */
.aego-edu-root {
  min-height: 100vh;
  color: var(--aego-ink, #0f172a);
  background: #f8fafc;
  padding-bottom: 80px;
}
.aego-edu-root * { box-sizing: border-box; }
.aego-edu-view[hidden] { display: none !important; }

.aego-edu-hero {
  padding: 48px 0 36px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.aego-edu-hero h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--aego-navy, #0f172a);
  line-height: 1.2;
  margin: 12px 0 16px;
  letter-spacing: -0.02em;
}
.aego-edu-hero__lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Tagi, Pille i Odznaki ---------- */
.aego-edu-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.aego-edu-tag--gold {
  background: rgba(196, 139, 49, 0.12);
  color: #925805;
}
.aego-edu-tag--blue {
  background: #e0f2fe;
  color: #0369a1;
}
.aego-edu-tag--red {
  background: #fee2e2;
  color: #b91c1c;
}

.aego-edu-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.aego-edu-pill--navy { background: #0f172a; color: #fff; }
.aego-edu-pill--green { background: #059669; color: #fff; }
.aego-edu-pill--red { background: #dc2626; color: #fff; }
.aego-edu-pill--purple { background: #7c3aed; color: #fff; }
.aego-edu-pill--gold { background: #d97706; color: #fff; }

.aego-edu-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---------- Karty & Bloki ---------- */
.aego-edu-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  padding: 28px;
  margin-bottom: 24px;
}
.aego-edu-card--primary {
  border-top: 4px solid var(--aego-cta, #c48b31);
}
.aego-edu-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.aego-edu-card__header h2,
.aego-edu-card__header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--aego-navy, #0f172a);
}
.aego-edu-card__header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.92rem;
}

.aego-edu-step-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--aego-cta, #c48b31);
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ---------- Kod i Kopiowanie ---------- */
.aego-edu-code {
  background: #0b1528;
  color: #f1f5f9;
  border-radius: 8px;
  padding: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  border: 1px solid #1e293b;
}
.aego-edu-code code {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  background: transparent;
  padding: 0;
}

.aego-edu-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--aego-navy, #0f172a);
  color: #ffffff;
  border: none;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.aego-edu-copy-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}
.aego-edu-copy-btn.is-copied {
  background: #059669;
}

/* ---------- Grid Kroków ---------- */
.aego-edu-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.aego-edu-card--step {
  position: relative;
  padding: 24px;
}
.aego-edu-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.aego-edu-card--step h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}
.aego-edu-card--step p {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Checklist ---------- */
.aego-edu-card--checklist {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}
.aego-edu-card--checklist h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}
.aego-edu-checks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.aego-edu-checks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #334155;
}
.aego-edu-checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: #059669;
}

/* ---------- WARIANT 2: Anatomia ---------- */
.aego-edu-anatomy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.aego-edu-module {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0f172a;
  border-radius: 8px;
  padding: 20px 24px;
}
.aego-edu-module--navy { border-left-color: #0f172a; }
.aego-edu-module--green { border-left-color: #059669; }
.aego-edu-module--red { border-left-color: #dc2626; }
.aego-edu-module--purple { border-left-color: #7c3aed; }
.aego-edu-module--gold { border-left-color: #d97706; }

.aego-edu-module__num {
  font-size: 1.6rem;
  font-weight: 900;
  color: #cbd5e1;
  line-height: 1;
}
.aego-edu-module__body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
.aego-edu-module__body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
}

.aego-edu-code-annotated {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #0b1528;
  padding: 24px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.88rem;
  line-height: 1.6;
}
.aego-edu-annotated-line {
  color: #e2e8f0;
}
.aego-edu-annot-tag {
  display: inline-block;
  font-weight: 800;
  font-size: 0.75rem;
  margin-right: 6px;
  padding: 2px 6px;
  border-radius: 4px;
}
.aego-edu-annot-tag.color-navy { background: #1e293b; color: #93c5fd; }
.aego-edu-annot-tag.color-green { background: #064e3b; color: #6ee7b7; }
.aego-edu-annot-tag.color-red { background: #7f1d1d; color: #fca5a5; }
.aego-edu-annot-tag.color-purple { background: #4c1d95; color: #d8b4fe; }
.aego-edu-annot-tag.color-gold { background: #78350f; color: #fde68a; }

/* ---------- WARIANT 3: Przed i Po ---------- */
.aego-edu-vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 860px) {
  .aego-edu-vs-grid { grid-template-columns: 1fr; }
}
.aego-edu-vs-col {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.aego-edu-vs-col--bad { border-top: 4px solid #ef4444; }
.aego-edu-vs-col--good { border-top: 4px solid #10b981; }

.aego-edu-vs-col__badge {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.aego-edu-vs-col--bad .aego-edu-vs-col__badge { color: #dc2626; }
.aego-edu-vs-col--good .aego-edu-vs-col__badge { color: #059669; }

.aego-edu-vs-prompt {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.86rem;
}
.aego-edu-vs-prompt strong { display: block; margin-bottom: 4px; color: #64748b; font-size: 0.75rem; text-transform: uppercase; }
.aego-edu-vs-prompt code { color: #0f172a; font-family: inherit; font-size: 0.9rem; }

.aego-edu-chat-mock {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
}
.aego-edu-chat-mock p { margin: 0 0 10px; }
.aego-edu-chat-mock ol { margin: 0 0 10px; padding-left: 20px; }

.aego-edu-risk-alert {
  background: #fef3c7;
  border-left: 3px solid #d97706;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #92400e;
  border-radius: 4px;
  margin-top: 10px;
}

.aego-edu-vs-verdict {
  margin-top: auto;
  border-radius: 8px;
  padding: 16px;
}
.aego-edu-vs-verdict h4 { margin: 0 0 8px; font-size: 0.95rem; font-weight: 800; }
.aego-edu-vs-verdict ul { list-style: none; padding: 0; margin: 0; }
.aego-edu-vs-verdict li { font-size: 0.86rem; margin-bottom: 6px; line-height: 1.4; }
.aego-edu-vs-verdict--bad { background: #fef2f2; color: #991b1b; }
.aego-edu-vs-verdict--good { background: #ecfdf5; color: #065f46; }

.aego-edu-summary-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.aego-edu-summary-box h3 { margin: 0 0 12px; font-size: 1.3rem; font-weight: 800; color: #0f172a; }
.aego-edu-summary-box p { color: #475569; font-size: 0.98rem; line-height: 1.6; margin: 0 0 20px; }

/* ---------- WARIANT 4: Kreator Live ---------- */
.aego-edu-generator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .aego-edu-generator-layout { grid-template-columns: 1fr; }
}
.aego-edu-field {
  margin-bottom: 20px;
}
.aego-edu-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}
.aego-edu-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s ease;
}
.aego-edu-select:focus {
  border-color: #0f172a;
}
.aego-edu-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aego-edu-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  color: #334155;
  cursor: pointer;
}
.aego-edu-checkbox input {
  margin-top: 3px;
}

.aego-edu-card--result {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.aego-edu-result-box {
  flex-grow: 1;
  background: #0b1528;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #1e293b;
}
.aego-edu-result-box pre {
  margin: 0;
  color: #f1f5f9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.aego-edu-gen-hint {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
}

/* ---------- CTA Box ---------- */
.aego-edu-cta-box {
  background: linear-gradient(135deg, #0b1528 0%, #1e293b 100%);
  border-radius: 12px;
  padding: 36px 40px;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(11, 21, 40, 0.15);
  margin-top: 36px;
}
.aego-edu-cta-box__content {
  max-width: 620px;
}
.aego-edu-cta-box__content h2 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 800;
  color: #ffffff;
  margin: 10px 0 8px;
  line-height: 1.3;
}
.aego-edu-cta-box__content p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}
.aego-edu-cta-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.aego-edu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.aego-edu-btn--primary {
  background: var(--aego-cta, #c48b31);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(196, 139, 49, 0.4);
}
.aego-edu-btn--primary:hover {
  background: #a97324;
  color: #ffffff;
  transform: translateY(-2px);
}
.aego-edu-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.aego-edu-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Responsywność */
@media (max-width: 768px) {
  .aego-edu-hero { padding: 32px 0 24px; }
  .aego-edu-card { padding: 20px; }
  .aego-edu-cta-box { padding: 24px 20px; }
  .aego-edu-switcher__btns { width: 100%; justify-content: flex-start; }
  .aego-edu-switcher__btn { font-size: 0.76rem; padding: 6px 10px; }
}

