/* =========================================
   Verslo Diagnostika — diagnostika.css
   ========================================= */

*, *::before, *::after { box-sizing: border-box; }

body.diag-page {
  margin: 0;
  min-height: 100vh;
  background: #0a0a0a;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Top bar ---- */
.diag-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #0d0d0d;
  border-bottom: 1px solid rgba(255,199,0,0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.diag-back-home {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.diag-back-home:hover { color: #FFC700; }

.diag-header-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFC700;
}

/* ---- Hero background ---- */
.diag-hero-bg {
  position: fixed;
  inset: 0;
  background: url('/img/pliazo.jpg') center/cover no-repeat;
  z-index: 0;
}
.diag-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.85) 100%);
}

/* ---- Main ---- */
.diag-main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 44px);
  display: flex;
  justify-content: center;
  padding: 20px 16px 60px;
}

.diag-root {
  width: 100%;
  max-width: 540px;
}

/* ---- Screens ---- */
.diag-screen {
  animation: fadeSlideUp 0.35s ease both;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Header ---- */
.diag-title {
  font-size: 26px;
  font-weight: 900;
  color: #FFC700;
  margin: 0 0 8px;
}

.diag-intro {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin: 0 0 6px;
}

.diag-intro-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin: 0 0 20px;
}

/* ---- Type picker ---- */
.diag-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (min-width: 420px) {
  .diag-type-grid { grid-template-columns: repeat(3, 1fr); }
}

.diag-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 10px;
  border-radius: 14px;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.18s;
  text-align: center;
}

.diag-type-card:hover {
  border-color: #FFC700;
  background: rgba(255,199,0,0.1);
  transform: translateY(-4px);
}

.diag-type-emoji  { font-size: 30px; line-height: 1; }
.diag-type-label  { color: #fff; font-size: 13px; font-weight: 800; }
.diag-type-desc   { color: rgba(255,255,255,0.4); font-size: 10px; line-height: 1.4; }

/* ---- Progress bar ---- */
.diag-progress-wrap {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-bottom: 16px;
  position: relative;
  overflow: visible;
}
.diag-progress-bar {
  height: 100%;
  background: #FFC700;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.diag-progress-label {
  position: absolute;
  right: 0;
  top: -18px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* ---- Question screen ---- */
.diag-q-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.diag-type-badge {
  font-size: 12px;
  color: #FFC700;
  background: rgba(255,199,0,0.12);
  border-radius: 20px;
  padding: 3px 10px;
  font-weight: 700;
}

.diag-group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  font-weight: 700;
  margin-bottom: 10px;
}

.diag-question-text {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 18px;
  line-height: 1.3;
}

/* ---- Choice buttons ---- */
.diag-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.diag-choice-btn {
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 14px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.diag-choice-btn:hover,
.diag-choice-btn.selected {
  border-color: #FFC700;
  background: rgba(255,199,0,0.1);
  color: #fff;
}

/* ---- Score buttons ---- */
.diag-score-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.diag-score-btn {
  flex: 1;
  padding: 14px 0;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.diag-score-btn:hover,
.diag-score-btn.active {
  border-color: #FFC700;
  background: rgba(255,199,0,0.15);
  color: #FFC700;
}

.diag-score-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin: 0 0 20px;
}

/* ---- Open text ---- */
.diag-textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  margin-bottom: 20px;
  font-family: inherit;
}

.diag-textarea:focus {
  outline: none;
  border-color: #FFC700;
}

.diag-textarea::placeholder { color: rgba(255,255,255,0.25); }

/* ---- Nav buttons ---- */
.diag-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.diag-btn-primary {
  background: #FFC700;
  color: #000;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background 0.2s, transform 0.15s;
}

.diag-btn-primary:hover {
  background: #FFD84D;
  transform: translateY(-2px);
}

.diag-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.55);
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.2s, color 0.2s;
  margin-top: 4px;
}
.diag-btn-ghost:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

.diag-btn-ghost-sm {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
}
.diag-btn-ghost-sm:hover { color: #fff; }

/* ---- Method explain box ---- */
.diag-method-box {
  background: rgba(255,199,0,0.07);
  border: 1px solid rgba(255,199,0,0.2);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.diag-method-title {
  font-size: 12px;
  font-weight: 800;
  color: #FFC700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}

.diag-method-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ---- Examples chips ---- */
.diag-examples-wrap {
  margin-top: 10px;
}

.diag-examples-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
  font-weight: 600;
}

.diag-examples-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.diag-examples-grid::-webkit-scrollbar { width: 3px; }
.diag-examples-grid::-webkit-scrollbar-thumb { background: rgba(255,199,0,0.3); border-radius: 2px; }

.diag-example-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 12px;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1.4;
  width: 100%;
}

.diag-example-chip:hover {
  background: rgba(255,199,0,0.08);
  border-color: rgba(255,199,0,0.3);
  color: rgba(255,255,255,0.9);
}

.diag-example-chip.diag-chip-used {
  background: rgba(255,199,0,0.12);
  border-color: rgba(255,199,0,0.4);
  color: #FFC700;
}

/* ---- Results ---- */
.diag-results-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.diag-results-header h1 {
  font-size: 22px;
  font-weight: 900;
  color: #FFC700;
  margin: 0;
}

.diag-result-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}

.diag-card-red   { border-left: 4px solid #FF4444; }
.diag-card-stop  { border-left: 4px solid #FF8800; }
.diag-card-wig   { border-left: 4px solid #FFC700; }
.diag-card-prompt { background: rgba(0,0,0,0.3); }

.diag-card-title {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.diag-card-body {
  font-size: 15px;
  color: #fff;
  line-height: 1.5;
}

.diag-card-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
  font-style: italic;
}

/* ---- Priority list ---- */
.diag-priorities { display: flex; flex-direction: column; gap: 10px; }

.diag-priority-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.diag-priority-num {
  background: #FFC700;
  color: #000;
  font-weight: 900;
  font-size: 13px;
  border-radius: 50%;
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- Prompt export ---- */
.diag-prompt-textarea {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  line-height: 1.6;
  font-family: 'Courier New', monospace;
  resize: none;
  height: 180px;
  margin-bottom: 12px;
}

.diag-export-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.diag-export-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 8px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
.diag-export-btn:hover { background: rgba(255,255,255,0.15); }

.diag-export-chatgpt { border-color: rgba(16,163,127,0.4); color: #10A37F; }
.diag-export-chatgpt:hover { background: rgba(16,163,127,0.12); }

.diag-export-claude { border-color: rgba(205,127,50,0.4); color: #CC8844; }
.diag-export-claude:hover { background: rgba(205,127,50,0.1); }

.diag-export-gemini { border-color: rgba(66,133,244,0.4); color: #4285F4; }
.diag-export-gemini:hover { background: rgba(66,133,244,0.1); }

.diag-export-groq { border-color: rgba(245,80,54,0.4); color: #F55036; }
.diag-export-groq:hover { background: rgba(245,80,54,0.1); }

.diag-export-html { color: rgba(255,255,255,0.6); }

/* ---- Resume banner ---- */
.diag-resume-banner {
  background: rgba(255,199,0,0.07);
  border: 1px solid rgba(255,199,0,0.25);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.diag-resume-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.diag-resume-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.diag-resume-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFC700;
  margin-bottom: 2px;
}

.diag-resume-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.diag-resume-btns {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* ---- Registration CTA ---- */
.diag-cta-register {
  background: rgba(255,199,0,0.06);
  border: 1px solid rgba(255,199,0,0.2);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.diag-cta-register-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.diag-cta-register-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.diag-cta-register-title {
  font-size: 15px;
  font-weight: 800;
  color: #FFC700;
  margin-bottom: 4px;
}

.diag-cta-register-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* ---- CTA block ---- */
.diag-cta-block {
  text-align: center;
  padding: 12px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ---- Scorecard bars ---- */
.diag-scorecard { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }

.diag-scorecard-row {
  display: grid;
  grid-template-columns: 130px 1fr 36px;
  align-items: center;
  gap: 8px;
}

.diag-sc-label {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}

.diag-sc-bar-wrap {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  height: 6px;
  overflow: hidden;
}

.diag-sc-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.diag-sc-val {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-align: right;
}

/* ---- Multi-select ---- */
.diag-choices-multi .diag-choice-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.diag-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #FFC700;
  color: #000;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

.diag-multi-counter {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin: 4px 0 16px;
}

/* ---- Cognitive traps ---- */
.diag-trap-item {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  line-height: 1.4;
}
.diag-trap-item:last-child { border-bottom: none; }

/* ---- /360 Slider styles ---- */
.s360-canvas-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 20px;
}

.s360-canvas-wrap canvas {
  max-width: 280px;
  width: 100%;
  height: auto;
}

.s360-sliders {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.s360-row {
  display: grid;
  grid-template-columns: 140px 1fr 36px;
  align-items: center;
  gap: 10px;
}

.s360-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.s360-emoji { font-size: 16px; }

.s360-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.15);
  outline: none;
  cursor: pointer;
}

.s360-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFC700;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(255,199,0,0.2);
}

.s360-val {
  font-size: 15px;
  font-weight: 800;
  color: #FFC700;
  text-align: right;
  min-width: 24px;
}

.s360-final { margin-top: 12px; }

/* ---- Mobile ---- */
@media (max-width: 400px) {
  .diag-score-row { gap: 6px; }
  .diag-score-btn { font-size: 15px; padding: 12px 0; }
  .diag-question-text { font-size: 17px; }
  .s360-row { grid-template-columns: 110px 1fr 28px; }
  .s360-label { font-size: 11px; }
}
