/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Tailwind CSS is loaded directly in the layout via stylesheet_link_tag "tailwind" */
/* Trix CSS loaded via CDN in layouts for better icon support */
@import "./actiontext.css";
@import "./components/hero.css";

/* =============================================
   COOL BRANCH ENHANCEMENTS 🚀
   Custom styling for enhanced user experience
   ============================================= */

/* Line clamp utilities for text truncation */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Custom Trix Editor Styles for Support Forms */
.support-trix-editor trix-editor {
  border: 1px solid #d6d3d1;
  border-radius: 0.375rem;
  min-height: 200px;
  padding: 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
  background: white;
}

.support-trix-editor trix-editor:focus {
  outline: none;
  border-color: #57534e;
  box-shadow: 0 0 0 2px rgba(87, 83, 78, 0.1);
}

.support-trix-editor trix-toolbar {
  border: 1px solid #d6d3d1;
  border-bottom: none;
  border-radius: 0.375rem 0.375rem 0 0;
  background: #fafaf9;
  padding: 0.5rem;
}

.support-trix-editor trix-toolbar .trix-button-group {
  border: 1px solid #d6d3d1;
  border-radius: 0.25rem;
  background: white;
  margin: 0 0.25rem 0 0;
}

.support-trix-editor trix-toolbar .trix-button {
  color: #57534e;
  border: none;
  background: transparent;
  padding: 0.25rem 0.5rem;
}

.support-trix-editor trix-toolbar .trix-button:hover {
  background: #f5f5f4;
}

.support-trix-editor trix-toolbar .trix-button.trix-active {
  background: #57534e;
  color: white;
}
