/* Trip Site — custom styles (Tailwind CDN handles utilities) */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Line clamp fallback */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Photo grid hover */
.photo-grid a:hover img { transform: scale(1.03); transition: transform 0.2s; }

/* Activity item selected state */
.activity-item.selected { ring: 2px; ring-color: #4f46e5; background: #eef2ff; }

/* Forum post animate in */
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
.forum-post { animation: fadeIn 0.2s ease-out; }

/* @mention autocomplete: a transparent textarea sits on top of a backdrop div
   that mirrors its text so @mentions can be colored while typing. */
.mention-backdrop {
  color: #111827;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow: hidden;
  pointer-events: none;
  font: inherit;
  line-height: inherit;
  box-sizing: border-box;
}
/* Also used for @mentions in rendered (posted) forum text, not just the compose backdrop. */
.mention-tag { color: #4f46e5; font-weight: 600; }
.mention-input {
  color: transparent;
  caret-color: #111827;
  box-sizing: border-box;
}
.mention-input::placeholder { color: #9ca3af; }

/* Lightbox overlay */
#lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }
#lightbox-close {
  position: absolute; top: 1rem; right: 1.5rem;
  color: white; font-size: 2rem; cursor: pointer; line-height: 1;
}
