/* Comments Styles - Ptah Theme */

.comments-section{
    border-top: var(--border);
    margin-top: 1rem;
}

/* Header des commentaires */
.comments-header {
    padding:1rem 0
}

.comments-title, .comment-form-title {
    margin: 0;
}

.comments-subtitle {
  color: var(--dark-muted);
  margin: 0;
  font-style: italic;
}

/* Liste des commentaires */

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-item {
  margin-bottom: 1rem;
}

.comment-body {
  background: var(--light-menu);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

/* Métadonnées du commentaire */
.comment-meta {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.comment-avatar {
  border-radius: 50%;
}

.comment-author-info {
  display: flex;
  flex-direction: column;
}

.comment-date {
  color: var(--dark-muted);
}

/* Actions du commentaire */
.comment-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

/* En attente de modération */
.comment-awaiting-moderation {
    background: var(--warning);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    margin: 0;
}

/* Navigation des commentaires */
.comment-navigation {
  margin: 1rem 0;
  text-align: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.nav-previous {
  text-align: left;
  flex: 0 0 auto;
}

.nav-next {
  text-align: right;
  flex: 0 0 auto;
}

.nav-previous a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-dark);
  transition: 0.25s;
}

.nav-next a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-dark);
  transition: 0.25s;
}

.nav-previous a:hover,
.nav-next a:hover {
  outline: none;
}


/* Commentaires fermés */
.comments-closed {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--light-muted);
  border-radius: var(--radius);
  margin: 2rem 0;
}

.comments-closed-icon {
  margin-bottom: 1rem;
  color: var(--dark-muted);
}

.comments-closed-text {
  color: var(--dark-muted);
  margin: 0;
}

/* Formulaire de commentaire */
.comment-form-wrapper {
  background: var(--light-menu);
  border: var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.comment-form-title {
  text-align: center;
}

/* Réponses imbriquées */
.comment-list .children {
  list-style: none;
  padding-left: 2rem;
  margin-top: 1rem;
}

.comment-list .children .comment-body {
  border-left: 3px solid var(--accent-main);
}

/* Responsive */
@media (max-width: 768px) {
  .comments-section {
    margin: 2rem auto 0;
    padding: 0 0.5rem;
  }
  
  .comments-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
  
  .comments-title {
    font-size: 1.75rem;
  }
  
  .comment-meta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .comment-author {
    width: 100%;
  }
  
  .comment-actions {
    align-self: flex-end;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-previous,
  .nav-next {
    max-width: 100%;
  }
  
  .comment-form-wrapper {
    padding: 1.5rem;
  }
  
  .comment-list .children {
    padding-left: 1rem;
  }
}

@media (max-width: 480px) {
  
  .comment-body {
    padding: 1rem;
  }
  
  .comment-form-wrapper {
    padding: 1rem;
  }
  
  .comment-avatar {
    width: 40px;
    height: 40px;
  }
}
