/* css/faq-styles.css - Lekki styl dopasowany do portalu */

.faq-section {
  margin: 2rem 0;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.faq-section__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e3a8a;
  margin: 0 0 1.5rem 0;
  padding: 0;
  background: none;
  border-bottom: 2px solid #1e3a8a;
  padding-bottom: 0.5rem;
}

.faq-container {
  padding: 0;
}

.faq-item {
  border: none;
  border-bottom: 1px solid #f1f5f9;
  margin: 0;
  border-radius: 0;
  background: #fff;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item:hover {
  background: #f8fafc;
}

.faq-question {
  background: #fff;
  border: none;
  width: 100%;
  text-align: left;
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s ease;
  border-radius: 0;
}

.faq-question:hover {
  background: #f8fafc;
  color: #1e3a8a;
}

.faq-question:focus {
  outline: 2px solid #1e3a8a;
  outline-offset: -2px;
  background: #f8fafc;
}

.faq-question[aria-expanded="true"] {
  background: #f0f4ff;
  color: #1e3a8a;
  font-weight: 600;
}

.faq-answer {
  background: #fff;
  padding: 15px 1.5rem 1rem 1.5rem;
  line-height: 1.6;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  max-height: 500px;
  overflow: hidden;
}

.faq-answer.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top: none;
}

.faq-answer p {
  margin: 0 0 0.5rem 0;
  color: #64748b;
  font-size: 0.95rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.toggle-icon {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: normal;
}

.faq-question:hover .toggle-icon {
  color: #1e3a8a;
}

.faq-question[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
  color: #1e3a8a;
}

/* Lepsze dopasowanie do Bootstrap */
.faq-section h2.faq-section__title {
  font-family: inherit;
  line-height: 1.3;
}

/* Responsive design */
@media (max-width: 768px) {
  .faq-section {
    margin: 1rem 0;
    border-radius: 6px;
  }

  .faq-section__title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
  }

  .faq-question {
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
  }

  .faq-answer {
    padding: 0 1rem 0.85rem 1rem;
  }
}

@media (max-width: 576px) {
  .faq-section {
    margin: 0.5rem 0;
    border-radius: 4px;
    border: none;
    box-shadow: none;
  }

  .faq-section__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .faq-question {
    font-size: 0.9rem;
    padding: 0.75rem;
  }

  .faq-answer {
    padding: 0 0.75rem 0.75rem 0.75rem;
  }

  .faq-answer p {
    font-size: 0.9rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .faq-answer,
  .toggle-icon,
  .faq-question,
  .faq-item {
    transition: none;
  }
}

/* Focus visible dla lepszej dostępności */
.faq-question:focus-visible {
  outline: 2px solid #1e3a8a;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .faq-section {
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .faq-section__title {
    color: #1e3a8a !important;
    border-bottom: 2px solid #1e3a8a !important;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
  }

  .faq-answer.collapsed {
    max-height: none;
    padding: 0 1.5rem 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
  }

  .toggle-icon {
    display: none;
  }

  .faq-question {
    background: #f8fafc !important;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
  }
}

/* Styl dla search input (opcjonalny) */
.faq-search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #fff;
}

.faq-search-input:focus {
  outline: none;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Highlight dla search results */
.faq-item mark {
  background-color: #fef3c7;
  color: #92400e;
  padding: 0.125rem 0.25rem;
  border-radius: 2px;
}

/* Minimalistyczne podejście - usuń wszystkie cienie i efekty */
.faq-section {
  box-shadow: none;
}

.faq-item {
  box-shadow: none;
}

/* Alternatywny styl - jeszcze prostszy */
.faq-section.simple {
  border: none;
  background: transparent;
}

.faq-section.simple .faq-section__title {
  background: none;
  color: #1e3a8a;
  padding: 0 0 1rem 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.faq-section.simple .faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.faq-section.simple .faq-item:last-child {
  margin-bottom: 0;
}
