/* Local LLM project surface */

.project-image {
  width: min(100%, 1200px);
  margin: 2rem auto;
}

.project-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.2);
}

.project-image figcaption {
  margin-top: 0.75rem;
  color: var(--color-text-muted, #64748b);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

.llm-assistant {
  margin: 2rem 0 3rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 47, 73, 0.72));
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.28);
}

.llm-assistant h3 {
  margin-bottom: 1.25rem;
  color: #67e8f9;
  letter-spacing: 0.02em;
}

.llm-question-list {
  display: grid;
  gap: 0.7rem;
}

.llm-question {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 6px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  font: inherit;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.llm-question:hover,
.llm-question:focus-visible {
  border-color: #67e8f9;
  background: rgba(14, 116, 144, 0.28);
  transform: translateX(3px);
}

.llm-question:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 3px;
}

.llm-response {
  min-height: 12rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-left: 3px solid #fbbf24;
  border-radius: 4px;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.58);
  white-space: pre-wrap;
  line-height: 1.7;
}

.llm-status {
  margin: 0;
  color: #cbd5e1;
}

@media (max-width: 600px) {
  .llm-assistant {
    margin-inline: -0.25rem;
  }

  .llm-response {
    min-height: 10rem;
    padding: 1rem;
  }
}
.llm-ai-disclosure {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 6px;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.55);
  font-size: 0.88rem;
  line-height: 1.5;
}

.llm-ai-disclosure::before {
  content: "AI · ";
  color: #67e8f9;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Styl wykresu czasu generowania zbliżony do wykresów w GRC */
.perf-chart-module {
  width: min(94%, 900px);
  max-width: 900px;
  margin: 2rem auto 1.4rem;
  padding: 1rem 1rem 0.75rem;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.22);
}

.perf-chart-inner {
  position: relative;
  width: 100%;
  height: 320px;
  padding: 0.5rem 0.25rem 0.25rem;
}

.perf-chart-caption {
  margin: 0 0 0.85rem;
  color: #dbeafe;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.llm-chart-note {
  margin: 0.2rem auto 1.5rem;
  max-width: 760px;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
  opacity: 0.92;
}

.llm-chart-note strong {
  color: #7dd3fc;
}

@media (max-width: 600px) {
  .perf-chart-module {
    width: min(100%, 900px);
    padding: 0.8rem 0.5rem 0.6rem;
  }

  .perf-chart-inner {
    height: 260px;
    padding: 0.25rem 0;
  }

  .perf-chart-caption {
    font-size: 0.92rem;
  }
}