/*
 * 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.
 */

.attachment__caption {
  display: none;
}

/* Mobile menu icon transitions */
.mobile-menu-icon {
  transition: all 0.3s ease-in-out;
}

/* Show/hide icons based on aria-expanded state */
[aria-expanded="true"] .in-aria-expanded\:hidden {
  display: none;
}

[aria-expanded="false"] .not-in-aria-expanded\:hidden {
  display: none;
}

/* Mobile menu slide animation */
.mobile-menu-enter {
  transform: translateY(-100%);
  opacity: 0;
}

.mobile-menu-enter-active {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.3s ease-in-out;
}

.mobile-menu-exit {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-exit-active {
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

/* Rich text editor styling */
.trix-content {
  @apply text-slate-700 leading-relaxed;
}

#post_body h1, .trix-content h1 {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

#post_body h2, .trix-content h2 {
  margin-bottom: 15px;
  font-size: 1.875rem;
  line-height: 2.25rem;
}

#post_body h3, .trix-content h3 {
  font-size: 1.5rem;
  line-height: 1.75rem;
}

.trix-content p {
  @apply mb-4;
}

.trix-content ul, .trix-content ol {
  @apply mb-4 pl-6;
}

.trix-content li {
  @apply mb-2;
}

.trix-content blockquote {
  @apply border-l-4 border-slate-300 pl-4 italic text-slate-600 my-4;
}

.trix-content a {
  @apply text-slate-600 underline hover:text-slate-800;
}

.trix-content img {
  @apply max-w-full h-auto rounded-lg my-4;
}

/* Trix toolbar styling */
.trix-button-group {
  @apply border-slate-300;
}

.trix-button {
  @apply text-slate-600 hover:text-slate-800;
}

.trix-button.trix-active {
  @apply bg-slate-100 text-slate-800;
}

.wysiwyg h2 {
  margin-bottom: 10px;
  font-size: 1.975rem;
  line-height: 2.25rem;
}

.wysiwyg h3 {
  font-size: 1.5rem;
  line-height: 1.75rem;
}

.wysiwyg p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}