/* Cusdis Comments Basic Integration */

/* Comments section wrapper */
.comments-section {
  margin-top: 4rem;
}

.comments-title {
  color: var(--text-heading-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* Base Cusdis container styling */
#cusdis_thread {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-primary);
  position: relative;
  min-height: 400px;
}

/* Enhance border visibility in dark mode */
[data-theme="dark"] #cusdis_thread {
  border-top-color: var(--border-secondary);
}

/* More visible border in lights-out mode */
[data-theme="lights-out"] #cusdis_thread {
  border-top: 2px solid #333333;
}

/* Style the Cusdis iframe */
#cusdis_thread iframe {
  width: 100% !important;
  min-height: 400px !important;
  border: none !important;
  background: transparent !important;
}

/* Add loading state */
#cusdis_thread:empty::before {
  content: 'Loading comments...';
  display: block;
  text-align: center;
  padding: 2rem;
  color: var(--text-primary);
  opacity: 0.6;
  font-style: italic;
}

/* Mobile responsive */
@media screen and (max-width: 991px) {
  #cusdis_thread {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
  
  .comments-section {
    margin-top: 3rem;
  }
}