/* Komponent komentarzy - Style */
.comment-form {
  margin-bottom: 2rem;
  width: 100%;
}

.comment-form__container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.comment-form__input {
  width: 100%;
  min-height: 80px;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  box-sizing: border-box;
  order: 1; /* Textarea jest pierwsza na mobile */
}

.comment-form__input:focus,
.comment-form__name:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.comment-form__input::placeholder,
.comment-form__name::placeholder {
  color: #6c757d;
  opacity: 1;
}

.comment-form__name {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  box-sizing: border-box;
  background-color: #fafbfc;
  order: 2; /* Input z imieniem jest drugi na mobile */
}

.comment-form__name:hover {
  border-color: #c8d1db;
  background-color: #f8f9fa;
}

.comment-form__name:focus {
  background-color: #ffffff;
}

.comment-form__submit {
  width: 100%; /* Pełna szerokość na mobile */
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  outline: none;
  order: 3; /* Przycisk jest ostatni na mobile */
}

.comment-form__submit:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

.comment-form__submit:active {
  transform: translateY(0);
}

.comment-form__submit:focus {
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Komunikat weryfikacji */
.comment-form__verification {
  background-color: #d4edda;
  color: #155724;
  margin-bottom: 32px;
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid #c3e6cb;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop (768px i więcej) */
@media (min-width: 768px) {
  .comment-form {
    flex-direction: row;
    align-items: flex-end;
  }

  .comment-form__container {
    flex: 1;
    flex-direction: column;
  }

  .comment-form__input {
    min-height: 60px;
  }

  .comment-form__name {
    width: 200px;
    flex-shrink: 0;
    background-color: #ffffff;
  }

  .comment-form__submit {
    width: auto;
    height: fit-content;
    padding: 12px 24px;
    flex-shrink: 0;
  }
}

/* Dodatkowe style dla lepszej integracji */
.users-comments {
  max-width: 100%;
}

@media (min-width: 1140px) {
  .add-comment-width-650 {
    width: 650px;
  }
}
@media (min-width: 1230px) {
  .add-comment-width-770 {
    width: 770px;
  }
}
