/* ================================
   DIARY INTERACTIONS STYLES
   Likes, Comments, Share
   ================================ */

/* Action Buttons States */
.diary-post-action.liked {
  color: #ff0000;
}

.diary-post-action.liked svg {
  fill: currentColor;
}

.diary-post-action .action-count {
  font-weight: 600;
  margin-left: 0.25rem;
}

/* Comments Section */
.diary-comments-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #1a1a1a;
  animation: slideDown 0.3s ease-out;
}

.diary-comments-list {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.diary-no-comments {
  color: #666666;
  font-size: 0.9rem;
  text-align: center;
  padding: 1.5rem;
  font-style: italic;
}

.diary-comment {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: #050505;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.diary-comment:hover {
  background: #0f0f0f;
}

.diary-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.diary-comment-content {
  flex: 1;
}

.diary-comment-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.diary-comment-text {
  font-size: 0.9rem;
  color: #cccccc;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.diary-comment-time {
  font-size: 0.75rem;
  color: #666666;
}

/* Comment Form */
.diary-comment-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.diary-comment-input {
  flex: 1;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 0.65rem 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
}

.diary-comment-input:focus {
  outline: none;
  border-color: #ffffff;
}

.diary-comment-input::placeholder {
  color: #666666;
}

.diary-comment-submit {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 4px;
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.diary-comment-submit:hover {
  background: #e0e0e0;
}

.diary-comment-submit:active {
  transform: scale(0.98);
}

/* Notification Toast */
.diary-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #ffffff;
  color: #000000;
  padding: 1rem 2rem;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.diary-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

/* Scrollbar for comments */
.diary-comments-list::-webkit-scrollbar {
  width: 6px;
}

.diary-comments-list::-webkit-scrollbar-track {
  background: #0a0a0a;
  border-radius: 3px;
}

.diary-comments-list::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 3px;
}

.diary-comments-list::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

/* Responsive */
@media (max-width: 768px) {
  .diary-comment-form {
    flex-direction: column;
  }

  .diary-comment-input {
    width: 100%;
  }

  .diary-comment-submit {
    width: 100%;
  }

  .diary-notification {
    left: 1rem;
    right: 1rem;
    transform: translateX(0) translateY(100px);
    width: auto;
  }

  .diary-notification.show {
    transform: translateX(0) translateY(0);
  }
}
