/*
 * Explore social layer on the trip page: the trip like button (header) and
 * the public comments section (below the itinerary, like an Instagram post).
 * Mobile-first per Rule 8.
 */

/* ── Like button (sits with the header action icons over the dark hero) ── */

.trip-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.1s ease;
}

.trip-like-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.trip-like-btn:active {
  transform: scale(0.96);
}

.trip-like-btn.is-liked {
  background: var(--primary, #186966);
  border-color: var(--primary, #186966);
}

.trip-like-count[hidden] {
  display: none;
}

/* ── Comments section ── */

/* Lives inside the chat-sidebar shell (comments_sidebar.html): the pane
   scrolls, the section fills it. */
.comments-pane {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.trip-comments {
  margin: 0;
  padding: 0.8rem 1rem 1.5rem;
}

.trip-comments__countline {
  color: var(--text-muted, #52525b);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.trip-comments__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trip-comment {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border, #e4e4e7);
}

.trip-comment__avatar {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.trip-comment__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-50, #e2f5f4);
  color: var(--primary, #186966);
  font-weight: 700;
  font-size: 0.85rem;
}

.trip-comment__body {
  flex: 1;
  min-width: 0;
}

.trip-comment__text {
  margin: 0;
  overflow-wrap: anywhere;
}

.trip-comment__text strong {
  margin-right: 0.35rem;
}

.trip-comment__meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--text-muted, #52525b);
}

.trip-comment__action {
  border: 0;
  background: none;
  padding: 0.35rem 0;
  min-height: 32px;
  color: var(--text-muted, #52525b);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.trip-comment__action--delete:hover {
  color: var(--danger, #b3261e);
}

.trip-comment-reported {
  font-size: 0.8rem;
  color: var(--text-muted, #52525b);
  font-style: italic;
}

.trip-comment__like {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  border: 0;
  background: none;
  color: var(--text-muted, #52525b);
  cursor: pointer;
  font-size: 0.9rem;
}

.trip-comment__like.is-liked {
  color: var(--primary, #186966);
}

.trip-comment__like:disabled {
  cursor: default;
  opacity: 0.5;
}

.trip-comments__empty,
.trip-comments__signin {
  color: var(--text-muted, #52525b);
  margin: 0.6rem 0;
}

.trip-comments__form {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.trip-comments__input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border, #e4e4e7);
  border-radius: 999px;
  font: inherit;
}

.trip-comments__input:focus {
  outline: 2px solid var(--teal-400, #4cbfbb);
  border-color: transparent;
}
