/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * Custom styles for the Monologue application
 */


body {
  font-family: "Hanken Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

/* Custom styles for unified composer */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Auto-resize textarea styles */
.auto-resize {
  resize: none;
  overflow: hidden;
}

/* Link preview hover effects */
.link-preview:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Typewriter animation styles */
.typewriter-cursor {
  animation: blink 1s infinite;
  color: #6b7280; /* gray-500 */
  font-weight: 300;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Rich text toolbar toggle button - always visible for now */
.composer__rich-text-btn {
  display: inline-flex; /* Always visible for testing */
}


/* Toolbar visibility controls */
trix-toolbar {
  display: none; /* Hidden by default */
}

.composer--rich-text trix-toolbar {
  display: block !important;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  background-color: #f9fafb;
  border-radius: 0.375rem 0.375rem 0 0;
}

/* Spacing adjustment when toolbar is visible */
.composer--rich-text trix-editor {
  margin-top: 0.5rem;
  border-radius: 0 0 0.375rem 0.375rem;
}

/* Basic Trix editor styling */
trix-editor {
  min-height: 2.5rem;
  padding: 0.5rem;
  border: none;
  outline: none;
  resize: none;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Unified composer - larger font size */
#unified-composer trix-editor {
  font-size: 1rem;
  line-height: 1.5rem;
}

/* Ensure Trix editor takes full width */
.composer-trix {
  width: 100%;
}

/* Edit modal specific styles - toolbar always visible */
.composer--rich-text trix-toolbar {
  display: block;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Modal context adjustments */
.composer--rich-text .composer-trix trix-toolbar {
  margin: -0.75rem -0.75rem 0.5rem -0.75rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f9fafb;
}