/**
 * comments-style.css
 * Estilo por defecto del widget de comentarios. Está pensado en tonos
 * oscuros con acento rojo, en línea con el resto de Crítica Maldita.
 * Es CSS común y corriente: modificá cualquier valor sin restricciones,
 * o sobreescribilo desde tu propia hoja de estilos.
 */

.cm-comments {
  font-family: inherit;
  max-width: 700px;
  margin: 2em 0;
}

.cm-title {
  font-size: 1.2em;
  margin-bottom: 0.8em;
  border-bottom: 1px solid #444;
  padding-bottom: 0.4em;
}

.cm-list {
  margin-bottom: 1.5em;
}

.cm-comment {
  padding: 0.8em 0;
  border-bottom: 1px solid #333;
}

.cm-meta {
  font-size: 0.85em;
  color: #999;
  margin-bottom: 0.3em;
}

.cm-date {
  color: #777;
}

.cm-body {
  line-height: 1.5;
  white-space: pre-wrap;
}

.cm-form {
  margin-top: 1.5em;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.cm-form input,
.cm-form textarea {
  padding: 0.6em;
  border: 1px solid #555;
  border-radius: 4px;
  background: #1a1a1a;
  color: #eee;
  font-family: inherit;
  font-size: 1em;
}

.cm-form button {
  align-self: flex-start;
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 4px;
  background: #b71c1c;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

.cm-form button:hover {
  background: #8e0000;
}

.cm-status {
  font-size: 0.85em;
  color: #4caf50;
  min-height: 1.2em;
}

.cm-loading,
.cm-empty,
.cm-error {
  color: #777;
  font-style: italic;
}
