/* Commentario Styles - Gruvbox Theme */

.commentario-wrapper {
  font-family: 'Roboto Mono', monospace;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: #ebdbb2;
}

/* Notifications */
.commentario-notification {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 4px;
  transition: opacity 0.3s;
}

.commentario-notification-success {
  background: #3c3836;
  color: #b8bb26;
  border-left: 4px solid #b8bb26;
}

.commentario-notification-error {
  background: #3c3836;
  color: #fb4934;
  border-left: 4px solid #fb4934;
}

/* Comment Form */
.commentario-form {
  background: #3c3836;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  border-left: 3px solid #b16286;
}

.commentario-form h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 20px;
  color: #ddd;
}

.commentario-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.commentario-form input[type="text"],
.commentario-form input[type="email"],
.commentario-form input[type="url"],
.commentario-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #504945;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Roboto Mono', monospace;
  box-sizing: border-box;
  background-color: #282828;
  color: #ebdbb2;
}

.commentario-form textarea {
  resize: vertical;
  margin-bottom: 10px;
}

.commentario-form input:focus,
.commentario-form textarea:focus {
  outline: none;
  border-color: #fe8019;
  box-shadow: 0 0 0 3px rgba(254, 128, 25, 0.1);
}

/* Honeypot - hide from users */
.commentario-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.commentario-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.commentario-btn-submit,
.commentario-btn-cancel {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Roboto Mono', monospace;
}

.commentario-btn-submit {
  background: #fe8019;
  color: #282828;
  border: 2px solid #fe8019;
}

.commentario-btn-submit:hover:not(:disabled) {
  background: #d65d0e;
  border-color: #d65d0e;
}

.commentario-btn-submit:disabled {
  background: #504945;
  border-color: #504945;
  color: #a89984;
  cursor: not-allowed;
}

.commentario-btn-cancel {
  background: #3c3836;
  color: #ebdbb2;
  border: 2px solid #504945;
}

.commentario-btn-cancel:hover {
  background: #282828;
  border-color: #fe8019;
}

.commentario-form-notice {
  font-size: 12px;
  color: #a89984;
  font-style: italic;
}

/* Reply Form */
.commentario-reply-form {
  margin-top: 15px;
  margin-bottom: 15px;
  background: #282828;
  border-left-color: #fe8019;
}

/* Comments Section */
.commentario-comments {
  margin-top: 30px;
}

.commentario-empty {
  text-align: center;
  padding: 40px 20px;
  color: #a89984;
  font-style: italic;
  background: #3c3836;
  border-radius: 8px;
  border-left: 3px solid #b16286;
}

.commentario-loading {
  text-align: center;
  padding: 40px 20px;
  color: #a89984;
}

/* Individual Comment */
.commentario-comment {
  margin-bottom: 20px;
  padding: 15px;
  background: #3c3836;
  border-left: 3px solid #b16286;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.commentario-comment:hover {
  border-left-color: #fe8019;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.commentario-comment-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #504945;
}

.commentario-author {
  font-size: 15px;
  color: #ebdbb2;
  font-weight: 600;
}

.commentario-author a {
  color: #d65d0e;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.commentario-author a:hover {
  color: #1d2021;
  background-color: #b8bb26;
  border-bottom-color: transparent;
}

.commentario-date {
  font-size: 13px;
  color: #a89984;
}

.commentario-comment-content {
  margin: 12px 0;
  line-height: 1.6;
  color: #ebdbb2;
}

.commentario-comment-content p {
  margin: 0 0 10px 0;
}

.commentario-comment-content p:last-child {
  margin-bottom: 0;
}

.commentario-comment-content a {
  color: #d65d0e;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.commentario-comment-content a:hover {
  color: #1d2021;
  background-color: #b8bb26;
  text-decoration: none;
}

.commentario-comment-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 10px 0;
  border: 2px solid #504945;
}

.commentario-comment-content code {
  background: lightblue;
  color: black;
  padding: 0.1em 0.2em;
  border-radius: 3px;
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
}

.commentario-comment-content pre {
  background: #272822;
  padding: 12px;
  border-radius: 4px;
  overflow-x: auto;
  line-height: 1.4;
}

.commentario-comment-content pre code {
  padding: 0;
  background: none;
  color: #ebdbb2;
}

.commentario-comment-content blockquote {
  margin: 10px 0;
  padding-left: 15px;
  border-left: 3px solid blue;
  color: #d5c4a1;
}

.commentario-comment-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.commentario-btn-reply,
.commentario-btn-toggle {
  padding: 6px 12px;
  background: #282828;
  border: 1px solid #504945;
  border-radius: 4px;
  font-size: 13px;
  color: #a89984;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Roboto Mono', monospace;
}

.commentario-btn-reply:hover,
.commentario-btn-toggle:hover {
  background: #3c3836;
  border-color: #fe8019;
  color: #fe8019;
}

/* Replies */
.commentario-replies {
  margin-top: 15px;
}

.commentario-replies.commentario-collapsed {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .commentario-wrapper {
    padding: 0;
  }

  .commentario-form-row {
    grid-template-columns: 1fr;
  }

  .commentario-comment {
    padding: 12px;
  }

  .commentario-comment[style*="margin-left"] {
    margin-left: 15px !important;
  }

  .commentario-comment-header {
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .commentario-form {
    padding: 15px;
  }

  .commentario-btn-submit,
  .commentario-btn-cancel {
    width: 100%;
  }

  .commentario-form-actions {
    flex-direction: column;
  }
}
