/* blarg-cta-colorful.css
 * Blarg-native port of 21st.dev / shadcn ButtonColorful pattern.
 * Vanilla CSS — no React, no Tailwind, no shadcn build chain required.
 * Recolored from default indigo/purple/pink to Blarg moss/gold/rust palette
 * per feedback_blarg_infra_first + Sean directive 2026-05-29 ~01:00 EDT
 * ("morph everything to match the theme we have created for the Matrix App
 *  and websites but we are just going to enhance it").
 *
 * Usage:
 *   <button class="blarg-cta-colorful">
 *     <span class="cta-label">Explore Components</span>
 *     <svg class="cta-arrow" width="14" height="14" viewBox="0 0 24 24" fill="none"
 *          stroke="currentColor" stroke-width="2">
 *       <path d="M7 17L17 7M7 7h10v10"/>
 *     </svg>
 *   </button>
 *
 * Behavior matches the source ButtonColorful: gradient-blur backdrop that
 * grows on hover, content overlay with arrow icon. Identical motion;
 * Blarg-native colors.
 */

.blarg-cta-colorful {
  position: relative;
  height: 40px;
  padding: 0 1rem;
  overflow: hidden;
  background: var(--ink, #1c1f1d);
  color: var(--paper, #f4ede0);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Spline Sans Mono', 'JetBrains Mono', monospace;
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
}

[data-theme="dark"] .blarg-cta-colorful {
  background: var(--paper, #f4ede0);
  color: var(--ink, #1c1f1d);
}

.blarg-cta-colorful::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--moss, #4a5d4c),
    var(--gold, #c9a961),
    var(--rust, #a05c3f));
  filter: blur(8px);
  opacity: .4;
  transition: opacity .5s;
  pointer-events: none;
}

.blarg-cta-colorful:hover::before {
  opacity: .8;
}

.blarg-cta-colorful:focus-visible {
  outline: 2px solid var(--gold, #c9a961);
  outline-offset: 2px;
}

.blarg-cta-colorful:active {
  transform: translateY(1px);
}

.blarg-cta-colorful > * {
  position: relative;
  z-index: 1;
}

.blarg-cta-colorful .cta-label {
  letter-spacing: .02em;
}

.blarg-cta-colorful .cta-arrow {
  opacity: .9;
  flex-shrink: 0;
}

.blarg-cta-colorful:hover .cta-arrow {
  opacity: 1;
}

/* Size variants */
.blarg-cta-colorful.cta-sm { height: 32px; padding: 0 .75rem; font-size: .8rem }
.blarg-cta-colorful.cta-lg { height: 48px; padding: 0 1.5rem; font-size: 1rem }

/* Color variant overrides — keep gradient idea, swap accents */
.blarg-cta-colorful.cta-rust-warm::before {
  background: linear-gradient(90deg, var(--rust, #a05c3f), var(--gold, #c9a961), var(--moss, #4a5d4c));
}
.blarg-cta-colorful.cta-moss-cool::before {
  background: linear-gradient(135deg, var(--moss, #4a5d4c), var(--ink, #1c1f1d), var(--moss, #4a5d4c));
  opacity: .55;
}
