/* Blog Interaction Styles for Nimbus Code */

/* Like/Dislike System */
.blog-reactions {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(33, 33, 33, 0.3);
}

.reaction-button {
  display: flex;
  align-items: center;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 8px 15px;
  margin-right: 15px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  transition: all 0.3s;
  border-radius: 3px;
}

.reaction-button:hover {
  background-color: rgba(0, 255, 0, 0.1);
  transform: translateY(-2px);
}

.reaction-button.active {
  background-color: rgba(0, 255, 0, 0.2);
  border-color: #0f0;
}

.reaction-button.liked.active {
  color: #0f0;
}

.reaction-button.disliked.active {
  color: #ff5555;
}

.reaction-icon {
  margin-right: 8px;
  font-size: 1.2rem;
}

.reaction-count {
  font-weight: bold;
}

.blog-share {
  margin-left: auto;
}

.share-button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 5px;
  transition: color 0.3s;
}

.share-button:hover {
  color: #0f0;
}

/* Comment System */
.blog-comments {
  margin: 2rem 0;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.comment-count {
  font-size: 1.2rem;
  font-weight: bold;
}

.comment-sort {
  display: flex;
  align-items: center;
}

.sort-label {
  margin-right: 10px;
  color: var(--text-muted);
}

.sort-select {
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  font-family: 'Courier New', monospace;
}

.comment-form {
  margin-bottom: 2rem;
  background-color: rgba(33, 33, 33, 0.3);
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.comment-form textarea {
  width: 100%;
  background-color: var(--terminal-input);
  border: 1px solid var(--terminal-border);
  color: var(--terminal-text);
  padding: 10px;
  font-family: 'Courier New', monospace;
  resize: vertical;
  min-height: 100px;
  margin-bottom: 1rem;
}

.comment-form textarea:focus {
  outline: none;
  border-color: #0f0;
  box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment-info {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.comments-list {
  margin-top: 2rem;
}

.comment {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border-color);
}

.comment:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  overflow: hidden;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-meta {
  flex: 1;
}

.comment-author {
  font-weight: bold;
  color: #0f0;
}

.comment-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.comment-body {
  margin-left: 50px;
  line-height: 1.5;
}

.comment-actions {
  display: flex;
  margin-top: 0.5rem;
  margin-left: 50px;
}

.comment-action {
  color: var(--text-muted);
  margin-right: 15px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.3s;
}

.comment-action:hover {
  color: #0f0;
}

.reaction-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 255, 0, 0.2);
  border: 1px solid #0f0;
  color: #0f0;
  padding: 10px 20px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
}

.reaction-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-reactions {
    flex-wrap: wrap;
  }
  
  .blog-share {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
  
  .comment-form .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .comment-form .comment-info {
    margin-bottom: 10px;
  }
}
