@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');/**
 * Glass Guest List Modal Styles
 * 
 * Web-specific styles for the glass-themed guest list modal.
 * These styles handle things that React Native Web doesn't support directly.
 */

/* Remove default focus outline from search input */
.glass-search-input,
.glass-search-input:focus,
.glass-search-input:focus-visible,
.glass-search-input:active {
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
}

/* Target React Native Web's internal input wrapper */
.glass-search-input input,
.glass-search-input input:focus,
.glass-search-input input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Smooth scrollbar for the modal content */
.glass-modal-scroll::-webkit-scrollbar {
  width: 6px;
}

.glass-modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.glass-modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.glass-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
.mentions-input {
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 22px;
  outline: none;
  /* --- FIX: Remove flex properties - let the parent control sizing --- */
  height: 100%;
  width: 100%;
}

.mentions-input__control {
  font-size: 16px;
  /* --- FIX: Set explicit height instead of flex --- */
  height: 80px !important;
  max-height: 80px !important;
  overflow: hidden;
}

.mentions-input__highlighter {
  padding: 4px 5px;
  min-height: 80px;
  max-height: 80px !important;
  font-size: 16px;
  line-height: 22px;
  word-spacing: 0;
  letter-spacing: 0;
  overflow-y: auto !important;
}

.mentions-input__highlighter__substring {
  color: #1C1C1E !important;
  visibility: visible !important;
}

.mentions-input__highlighter strong {
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  word-spacing: 0;
  margin: 0;
  padding: 0;
  display: inline;
}

.mentions-input__input {
  padding: 4px 8px;
  min-height: 80px;
  max-height: 80px !important;
  color: transparent;
  outline: none;
  border: none;
  caret-color: #007AFF;
  background-color: transparent;
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 22px;
  word-spacing: 0;
  letter-spacing: 0;
  overflow-y: auto !important;
}

.mentions-input__suggestions {
  border: 1px solid #E5E5EA;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
}

.mentions-input__suggestions__item {
  padding: 8px 12px;
  cursor: pointer;
  outline: none;
}

.mentions-input__suggestions__item--focused {
  background-color: #F6F6F6 !important;
}/**
 * Web Thread Input CSS - Soft Pastel Theme
 * 
 * This stylesheet provides the styling for MentionsInput in the thread system.
 * Uses CSS variables for theming support.
 */

/* ============================================================================
   BASE CONTAINER
   ============================================================================ */
.web-thread-input {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 80px;
  padding: 12px;
}

/* ============================================================================
   MENTIONS INPUT CONTAINER
   ============================================================================ */
.web-thread-mentions-input {
  flex: 1;
  min-height: 60px;
}

.web-thread-mentions-input__control {
  min-height: 60px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================================================
   TEXTAREA
   ============================================================================ */
.web-thread-mentions-input__input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  resize: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #1a1a1a !important;
  min-height: 60px !important;
}

.web-thread-mentions-input__input::placeholder {
  color: rgba(99, 149, 237, 0.6) !important;
}

/* Dark theme input */
.web-thread-input--dark .web-thread-mentions-input__input {
  color: #f1f5f9 !important;
}

.web-thread-input--dark .web-thread-mentions-input__input::placeholder {
  color: rgba(99, 149, 237, 0.5) !important;
}

/* ============================================================================
   HIGHLIGHTER (for showing styled mentions)
   ============================================================================ */
.web-thread-mentions-input__highlighter {
  border: none !important;
  padding: 0 !important;
  min-height: 60px !important;
}

/* ============================================================================
   SUGGESTIONS DROPDOWN
   ============================================================================ */
.web-thread-mentions-input__suggestions {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 100% !important;
  z-index: 1000 !important;
  margin-bottom: 8px !important;
  max-width: 280px !important;
}

.web-thread-mentions-input__suggestions__list {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  overflow: hidden !important;
  padding: 6px !important;
}

.web-thread-input--dark .web-thread-mentions-input__suggestions__list {
  background-color: #2a2a2a !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* ============================================================================
   SUGGESTION ITEMS
   ============================================================================ */
.web-thread-mentions-input__suggestions__item {
  padding: 10px 14px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1a1a1a !important;
  transition: background-color 0.15s ease !important;
}

.web-thread-input--dark .web-thread-mentions-input__suggestions__item {
  color: #e2e8f0 !important;
}

.web-thread-mentions-input__suggestions__item--focused {
  background-color: rgba(99, 149, 237, 0.12) !important;
}

.web-thread-input--dark .web-thread-mentions-input__suggestions__item--focused {
  background-color: rgba(99, 149, 237, 0.2) !important;
}

.web-thread-mentions-input__suggestions__item:hover {
  background-color: rgba(99, 149, 237, 0.08) !important;
}

.web-thread-input--dark .web-thread-mentions-input__suggestions__item:hover {
  background-color: rgba(99, 149, 237, 0.15) !important;
}

/* ============================================================================
   CUSTOM SUGGESTION ITEMS
   ============================================================================ */
.suggestion-item {
  display: block;
  color: #6395ED;
  font-weight: 500;
}

.suggestion-item--group {
  color: #A855F7;
}

.web-thread-input--dark .suggestion-item {
  color: #93C5FD;
}

.web-thread-input--dark .suggestion-item--group {
  color: #C084FC;
}

/* ============================================================================
   MENTION HIGHLIGHT STYLES
   ============================================================================ */
.web-thread-mentions-input__highlighter__substring {
  visibility: none !important;
}

/* User mentions - soft blue */
.web-thread-mentions-input__highlighter strong {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.2px;
  word-spacing: 0;
  margin: 0;
  padding: 0;
  display: inline;
  background-color: rgb(165, 198, 255);
  border-radius: 4px;
}

.web-thread-input--dark .web-thread-mentions-input__highlighter strong {
  background-color: rgb(17, 43, 88);
}

/* ============================================================================
   SCROLLBAR STYLING
   ============================================================================ */
.web-thread-mentions-input__input::-webkit-scrollbar {
  width: 6px;
}

.web-thread-mentions-input__input::-webkit-scrollbar-track {
  background: transparent;
}

.web-thread-mentions-input__input::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.web-thread-input--dark .web-thread-mentions-input__input::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ============================================================================
   LIGHT THEME VARIABLES
   ============================================================================ */
.web-thread-input--light {
  --input-text-color: #1a1a1a;
  --input-placeholder-color: rgba(99, 149, 237, 0.6);
  --suggestion-bg: #ffffff;
  --suggestion-border: rgba(0, 0, 0, 0.1);
  --suggestion-hover: rgba(99, 149, 237, 0.08);
  --suggestion-focused: rgba(99, 149, 237, 0.12);
  --mention-color: #6395ED;
  --mention-bg: rgba(99, 149, 237, 0.1);
}

/* ============================================================================
   DARK THEME VARIABLES
   ============================================================================ */
.web-thread-input--dark {
  --input-text-color: #f1f5f9;
  --input-placeholder-color: rgba(99, 149, 237, 0.5);
  --suggestion-bg: #2a2a2a;
  --suggestion-border: rgba(255, 255, 255, 0.12);
  --suggestion-hover: rgba(99, 149, 237, 0.15);
  --suggestion-focused: rgba(99, 149, 237, 0.2);
  --mention-color: #93C5FD;
  --mention-bg: rgba(99, 149, 237, 0.2);
}

/* ============================================================================
   FOCUS STATES
   ============================================================================ */
.web-thread-input:focus-within {
  /* Container glow when focused - intentionally empty, customize as needed */
  outline: none;
}

.web-thread-input--light:focus-within {
  /* Light mode focus - intentionally empty, customize as needed */
  outline: none;
}

.web-thread-input--dark:focus-within {
  /* Dark mode focus - intentionally empty, customize as needed */
  outline: none;
}

/* ============================================================================
   MAIN CONTAINER - Uses Level 2 (Section) from GlassTheme
   ============================================================================ */
.thread-input-container {
  background: var(--thread-card);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: background 0.3s ease;
}

.thread-input-container.web-thread-input--light {
  border-color: rgba(0, 0, 0, 0.08);
}

.thread-input-container.web-thread-input--dark {
  border-color: rgba(255, 255, 255, 0.12);
}

/* ============================================================================
   COLLAPSED STATE - Pill styling
   ============================================================================ */
.thread-input-collapsed {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 14px 18px;
}

/* ============================================================================
   EXPANDED CONTENT
   ============================================================================ */
.thread-input-expanded-content {
  display: flex;
  flex-direction: column;
}

.thread-input-expanded.web-thread-input--light {
  border-color: rgba(0, 0, 0, 0.08);
}

.thread-input-expanded.web-thread-input--dark {
  border-color: rgba(255, 255, 255, 0.12);
}
/**
 * WebThreadMessage CSS - Glass hierarchy styling
 * 
 * Following the glass design system:
 * - Cards use white/light tint (closer = brighter in light mode)
 * - Cards use subtle white tint (brighter in dark mode too)
 * - 20px border radius matching GlassSectionContainer
 * - Subtle shadows for depth separation
 */

/* ============================================================================
   CARD BASE
   ============================================================================ */

.web-thread-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.web-thread-card .card-inner {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 10px;
  border-radius: var(--thread-card-radius, 20px);
  background: var(--thread-card);
  box-shadow: var(--thread-card-shadow);
  /* NOTE: No backdrop-filter here - the parent sheet already has one.
     Nested backdrop-filters cause severe rendering artifacts in WebKit/Chrome. */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.web-thread-card .card-inner:hover {
  transform: translateY(-1px);
}

/* ============================================================================
   LIGHT THEME
   ============================================================================ */

.web-thread-card.light .card-inner {
  /* Background from GlassTheme Level 2 via CSS variable */
  background: var(--thread-card);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.web-thread-card.light .card-inner:hover {
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Replies use same background as parent cards */
.web-thread-card.light.reply .card-inner {
  background: var(--thread-card);
}

/* New message highlight */
.web-thread-card.light.new .card-inner {
  border-left: 3px solid #007AFF;
}

/* ============================================================================
   DARK THEME
   ============================================================================ */

.web-thread-card.dark .card-inner {
  /* Background from GlassTheme Level 2 via CSS variable */
  background: var(--thread-card);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.web-thread-card.dark .card-inner:hover {
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Replies use same background as parent cards */
.web-thread-card.dark.reply .card-inner {
  background: var(--thread-card);
}

/* New message highlight */
.web-thread-card.dark.new .card-inner {
  border-left: 3px solid #60A5FA;
}

/* ============================================================================
   PRIVATE MESSAGES - Purple tint overlay
   ============================================================================ */

.web-thread-card.private .card-inner {
  /* Use thread card background with purple border instead of purple bg */
  background: var(--thread-card);
  border: 1px dashed rgba(168, 85, 247, 0.35);
}

.web-thread-card.private.light .card-inner {
  border-color: rgba(168, 85, 247, 0.3);
}

.web-thread-card.private.dark .card-inner {
  border-color: rgba(168, 85, 247, 0.4);
}

/* ============================================================================
   AVATAR - Compact size
   ============================================================================ */

.web-thread-card .avatar-container {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

/* Smaller avatar for replies */
.web-thread-card.reply .avatar-container {
  width: 28px;
  height: 28px;
}

.web-thread-card .private-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #A78BFA;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--thread-bg);
}

/* ============================================================================
   CONTENT
   ============================================================================ */

.web-thread-card .content-container {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.web-thread-card .message-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.web-thread-card .author-section {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.web-thread-card .author-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.web-thread-card .host-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #A78BFA;
  color: #FFF;
  flex-shrink: 0;
}

.web-thread-card .timestamp {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.web-thread-card .message-body {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ============================================================================
   MENTIONS
   ============================================================================ */

.thread-mention,
.thread-group-mention {
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.thread-mention:hover,
.thread-group-mention:hover {
  opacity: 0.8;
}

/* ============================================================================
   ACTIONS
   ============================================================================ */

.web-thread-card .message-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.web-thread-card .action-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.web-thread-card .action-btn:hover {
  background: rgba(128, 128, 128, 0.1);
}

.web-thread-card .action-btn.delete-btn {
  margin-left: auto;
  padding: 6px 8px;
}

.web-thread-card .action-btn.delete-btn:hover {
  background: rgba(255, 107, 107, 0.1);
}

.web-thread-card .action-btn svg {
  flex-shrink: 0;
}

/* ============================================================================
   CONNECTOR LINE (for replies)
   ============================================================================ */

.web-thread-card .thread-connector {
  position: absolute;
  left: -12px;
  top: 0;
  bottom: 50%;
  width: 2px;
  border-radius: 1px;
}

.web-thread-card .thread-connector::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 12px;
  height: 2px;
  background: inherit;
  border-radius: 1px;
}

/* ============================================================================
   REPLY INPUT CONTAINER
   ============================================================================ */

.web-thread-card .reply-input-container {
  margin-top: 12px;
  margin-left: 52px; /* Avatar width + gap */
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.web-thread-card {
  animation: slideIn 0.2s ease-out;
}

/* New message pulse */
.web-thread-card.new .card-inner {
  animation: newPulse 2s ease-out;
}

@keyframes newPulse {
  0% {
    box-shadow: 
      0 0 0 0 rgba(96, 165, 250, 0.4),
      var(--thread-card-shadow);
  }
  70% {
    box-shadow: 
      0 0 0 8px rgba(96, 165, 250, 0),
      var(--thread-card-shadow);
  }
  100% {
    box-shadow: var(--thread-card-shadow);
  }
}

.web-thread-card.light.new .card-inner {
  animation: newPulseLight 2s ease-out;
}

@keyframes newPulseLight {
  0% {
    box-shadow: 
      0 0 0 0 rgba(0, 122, 255, 0.3),
      0 1px 3px rgba(0, 0, 0, 0.04),
      0 4px 12px rgba(0, 0, 0, 0.03);
  }
  70% {
    box-shadow: 
      0 0 0 8px rgba(0, 122, 255, 0),
      0 1px 3px rgba(0, 0, 0, 0.04),
      0 4px 12px rgba(0, 0, 0, 0.03);
  }
  100% {
    box-shadow: 
      0 1px 3px rgba(0, 0, 0, 0.04),
      0 4px 12px rgba(0, 0, 0, 0.03);
  }
}

/* ============================================================================
   EXPAND RING ANIMATION
   ============================================================================ */

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.expand-ring-animated {
  animation: spin 6s linear infinite;
  transform-origin: center center;
}
/**
 * Thread CSS - Unified styles for the thread system
 * 
 * ARCHITECTURE:
 * - All colors come from CSS custom properties (--thread-*)
 * - Properties are set by Thread.tsx via getThreadCSSVariables()
 * - This file handles what JS cannot: hover, focus, scrollbars, backdrop-filter
 * 
 * FILE HIERARCHY:
 * - Thread.tsx         → Sets CSS variables, imports this file
 * - ThreadList.tsx     → Uses variables via class names
 * - ThreadMessage.tsx  → Uses variables via class names
 * - ThreadInput.tsx    → Uses variables via class names
 */

/* ============================================================================
   ROOT CONTAINER
   ============================================================================ */

.thread-root {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
}

/* GPU acceleration for smooth animations */
.thread-root > div:last-child {
  will-change: transform, opacity;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ============================================================================
   BACKDROP OVERLAY - Transparent (no darkening/lightening)
   ============================================================================ */

.thread-root > div:first-child {
  background: transparent !important;
}

/* Dark mode: no overlay */
.thread-theme-dark > div:first-child {
  background: transparent !important;
}

/* Light mode: no overlay */
.thread-theme-light > div:first-child {
  background: transparent !important;
}

/* ============================================================================
   SCROLLBARS
   ============================================================================ */

.thread-theme-dark ::-webkit-scrollbar {
  width: 6px;
}

.thread-theme-dark ::-webkit-scrollbar-track {
  background: transparent;
}

.thread-theme-dark ::-webkit-scrollbar-thumb {
  background: var(--thread-border, rgba(255, 255, 255, 0.15));
  border-radius: 3px;
}

.thread-theme-dark ::-webkit-scrollbar-thumb:hover {
  background: var(--thread-border-subtle, rgba(255, 255, 255, 0.25));
}

.thread-theme-light ::-webkit-scrollbar {
  width: 6px;
}

.thread-theme-light ::-webkit-scrollbar-track {
  background: transparent;
}

.thread-theme-light ::-webkit-scrollbar-thumb {
  background: var(--thread-border, rgba(0, 0, 0, 0.12));
  border-radius: 3px;
}

.thread-theme-light ::-webkit-scrollbar-thumb:hover {
  background: var(--thread-border-subtle, rgba(0, 0, 0, 0.20));
}

/* ============================================================================
   MENTIONS INPUT STYLING
   ============================================================================ */

.thread-theme-dark .mentions-input,
.thread-theme-dark .mentions-input__control,
.thread-theme-dark .mentions-input__highlighter,
.thread-theme-dark .mentions-input__input {
  background-color: transparent !important;
}

.thread-theme-dark .mentions-input__highlighter__substring {
  color: var(--thread-text-primary) !important;
}

.thread-theme-dark .mentions-input__input {
  caret-color: var(--thread-primary) !important;
  color: transparent !important;
}

.thread-theme-dark .mentions-input__input::placeholder {
  color: var(--thread-text-secondary) !important;
}

.thread-theme-light .mentions-input__input::placeholder {
  color: var(--thread-text-secondary) !important;
}

.thread-theme-dark .mentions-input__suggestions {
  background-color: var(--thread-surface) !important;
  border-color: var(--thread-border) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

.thread-theme-dark .mentions-input__suggestions__item {
  color: var(--thread-text-primary) !important;
}

.thread-theme-dark .mentions-input__suggestions__item--focused {
  background-color: var(--thread-surface-hover) !important;
}

.thread-theme-light .mentions-input__suggestions {
  background-color: var(--thread-surface) !important;
  border-color: var(--thread-border) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.thread-theme-light .mentions-input__suggestions__item {
  color: var(--thread-text-primary) !important;
}

.thread-theme-light .mentions-input__suggestions__item--focused {
  background-color: var(--thread-surface-hover) !important;
}

/* ============================================================================
   MESSAGE CARD HOVER EFFECTS
   ============================================================================ */

.thread-message-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.thread-message-card:hover {
  transform: translateY(-1px);
}

.thread-theme-dark .thread-message-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.6);
}

.thread-theme-light .thread-message-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.10);
}

/* ============================================================================
   ACTION BUTTON HOVER STATES
   ============================================================================ */

.thread-action-button {
  transition: opacity 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}

.thread-action-button:hover {
  opacity: 0.85;
}

.thread-theme-dark .thread-action-button:hover {
  background-color: var(--thread-surface-hover);
}

.thread-theme-light .thread-action-button:hover {
  background-color: var(--thread-surface-hover);
}

/* ============================================================================
   INPUT FOCUS STATES
   ============================================================================ */

.thread-input-container {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.thread-input-container:focus-within {
  border-color: var(--thread-primary) !important;
}

.thread-theme-dark .thread-input-container:focus-within {
  box-shadow: 0 0 0 2px var(--thread-primary-muted);
}

.thread-theme-light .thread-input-container:focus-within {
  box-shadow: 0 0 0 2px var(--thread-primary-muted);
}

/* ============================================================================
   BADGE HOVER EFFECTS
   ============================================================================ */

.thread-badge {
  transition: transform 0.1s ease;
}

.thread-badge:hover {
  transform: scale(1.05);
}

/* ============================================================================
   CONNECTOR LINES (for reply threads)
   ============================================================================ */

.thread-connector-line {
  background-color: var(--thread-connector);
  transition: background-color 0.2s ease;
}

.thread-connector-line.highlight {
  background-color: var(--thread-connector-highlight);
}

/* ============================================================================
   PRIVATE MESSAGE STYLING
   ============================================================================ */

.thread-message-private {
  border-style: dashed !important;
  border-color: var(--thread-private-muted) !important;
}

.thread-theme-dark .thread-message-private {
  background-color: rgba(168, 85, 247, 0.08) !important;
}

.thread-theme-light .thread-message-private {
  background-color: rgba(168, 85, 247, 0.05) !important;
}

/* ============================================================================
   NEW MESSAGE INDICATOR
   ============================================================================ */

.thread-message-new {
  position: relative;
}

.thread-message-new::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--thread-primary);
}

/* ============================================================================
   REPLY LINE ANIMATION
   ============================================================================ */

@keyframes thread-reply-highlight {
  0% {
    background-color: var(--thread-primary-muted);
  }
  100% {
    background-color: transparent;
  }
}

.thread-message-highlighted {
  animation: thread-reply-highlight 2s ease-out;
}

/* ============================================================================
   NUCLEAR OVERRIDES - For React Native Web inline styles
   Only used for legacy components that can't accept theme props
   ============================================================================ */

/* Override white backgrounds in dark mode */
.thread-theme-dark div[style*="background-color: rgb(255"],
.thread-theme-dark div[style*="background-color: white"],
.thread-theme-dark div[style*="backgroundColor: rgb(255"],
.thread-theme-dark div[style*="backgroundColor: white"] {
  background-color: var(--thread-card) !important;
}

/* Override black text in dark mode */
.thread-theme-dark div[style*="color: rgb(0,"],
.thread-theme-dark div[style*="color: rgb(28,"],
.thread-theme-dark span[style*="color: rgb(0,"],
.thread-theme-dark span[style*="color: rgb(28,"] {
  color: var(--thread-text-primary) !important;
}

/* Override gray text in dark mode */
.thread-theme-dark div[style*="color: rgb(142"],
.thread-theme-dark div[style*="color: rgb(128"],
.thread-theme-dark span[style*="color: rgb(142"],
.thread-theme-dark span[style*="color: rgb(128"] {
  color: var(--thread-text-secondary) !important;
}

/* Override light borders in dark mode */
.thread-theme-dark div[style*="border-color: rgb(229"],
.thread-theme-dark div[style*="border-color: rgb(209"],
.thread-theme-dark div[style*="borderColor: rgb(229"],
.thread-theme-dark div[style*="borderColor: rgb(209"] {
  border-color: var(--thread-border) !important;
}

/* Override connector colors in dark mode */
.thread-theme-dark div[style*="background-color: rgb(183, 201, 221)"],
.thread-theme-dark div[style*="backgroundColor: rgb(183, 201, 221)"],
.thread-theme-dark div[style*="background-color: rgb(209"],
.thread-theme-dark div[style*="backgroundColor: rgb(209"] {
  background-color: var(--thread-connector) !important;
}

/* ============================================================================
   DRAG HANDLE
   ============================================================================ */

/* Drag handle - prevent text selection and provide visual feedback */
.thread-drag-handle {
  cursor: grab !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.thread-drag-handle:active {
  cursor: grabbing !important;
}


/* Plus Jakarta Sans - Premium Type System */
@font-face {
    font-family: 'Ionicons';
    src: url('/byond_fapi/fonts/Ionicons.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }:root {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0);
  background-color: transparent;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Prevent browser text size adjustment */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

:root, html, body {
  touch-action: pan-x pan-y;
  min-height: 100%;
  /* Prevent browser text size adjustment */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Transparent — FixedEventBackground handles background color behind safe areas */
body, #root {
  background-color: transparent !important;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: transparent;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}
