/* assets/css/maxi-read-more.css */

/* Toggle button */
.maxi-rm-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  background: transparent;
  border: none;
  line-height: 1.4;
  padding: 0;
  color: inherit;
  transition: 
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.maxi-rm-toggle:focus {
  outline: 2px solid rgba(0,0,0,0.2);
  outline-offset: 2px;
}

.maxi-rm-toggle[data-icon-position="after"] {
  flex-direction: row-reverse;
}

/* Icons */
.maxi-rm-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.maxi-rm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, color 0.2s ease;
}

/* Labels */
.maxi-rm-label {
  display: inline-flex;
  align-items: center;
}

/* Content wrapper */
.maxi-rm-content-wrapper {
  margin-top: 0.5rem;
  transition: 
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.maxi-rm-content {
  width: 100%;
}



/* Active states */
.maxi-rm-toggle.maxi-rm-active {
  background-color: var(--maxi-rm-active-bg, #f0f0f0);
  border: 1px solid var(--maxi-rm-active-border, #ccc);
}

.maxi-rm-toggle.maxi-rm-active:hover {
  background-color: var(--maxi-rm-active-hover-bg, #e0e0e0);
  border-color: var(--maxi-rm-active-hover-border, #999);
}

.maxi-rm-content-wrapper.maxi-rm-active {
  background-color: var(--maxi-rm-content-active-bg, #fafafa);
  border: 1px solid var(--maxi-rm-content-active-border, #ddd);
}

.maxi-rm-content-wrapper.maxi-rm-active:hover {
  background-color: var(--maxi-rm-content-active-hover-bg, #f5f5f5);
  border-color: var(--maxi-rm-content-active-hover-border, #bbb);
}

/* Text alignment helpers (Elementor selectors will override these) */
.maxi-rm-content.text-left   { text-align: left; }
.maxi-rm-content.text-center { text-align: center; }
.maxi-rm-content.text-right  { text-align: right; }
.maxi-rm-content.text-justify{ text-align: justify; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .maxi-rm-icon {
    transition: none;
  }
}
