/* Poradnik Zdrowia Stawów - Autorski arkusz stylów */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --teal-primary: #0d9488;
  --teal-dark: #0f766e;
  --teal-deep: #115e59;
  --teal-light: #f0fdfa;
  --navy-dark: #0f172a;
  --navy-mid: #1e293b;
  --slate-text: #334155;
  --border-color: #e2e8f0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  line-height: 1.6;
}

.font-display {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
}

/* Krok Quizu */
.step-card {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.step-card.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Opcje w quizie */
.quiz-choice-item {
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #e2e8f0;
  user-select: none;
}

.quiz-choice-item:hover {
  border-color: #14b8a6;
  background-color: #f0fdfa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.1);
}

.quiz-choice-item.selected {
  border-color: #0d9488;
  background-color: #f0fdfa;
}

.quiz-choice-item.selected .radio-circle {
  background-color: #0d9488;
  border-color: #0d9488;
}

.quiz-choice-item.selected .radio-circle i {
  display: block !important;
}

/* Przycisk CTA */
.btn-primary-cta {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(15, 118, 110, 0.25);
}

.btn-primary-cta:hover {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.35);
}

.btn-primary-cta:active {
  transform: translateY(0);
}

/* Przycisk wstecz */
.back-btn-hover:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

/* Wskaźnik pulsujący */
.dot-pulse {
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(13, 148, 136, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
  }
}

/* Spinner ładowania analizy */
.scan-spinner {
  border: 4px solid #ccfbf1;
  border-top: 4px solid #0d9488;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Akordeon FAQ */
.faq-header {
  cursor: pointer;
  user-select: none;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, margin-top 0.2s ease;
}

.faq-item.active .faq-content {
  max-height: 500px;
  margin-top: 0.75rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Box cytowań naukowych */
.citation-box {
  background-color: #f8fafc;
  border-left: 3px solid #0d9488;
}

/* Płynne przewijanie */
html {
  scroll-behavior: smooth;
}
