/**
 * Animisha button tiers — Gold · Platinum · Diamond · Ruby
 * See docs/ANIMISHA_BUTTON_TIER_STANDARD.md
 *
 * Diamond visual shell: animisha-princess-tanzanite.css (facet markup required)
 */

:root {
  --animisha-btn-gold-from: var(--teal, #00f5d4);
  --animisha-btn-gold-to: var(--magenta, #ff2a6d);
  --animisha-btn-ruby-moon: #e8edf7;
  --animisha-btn-ruby-blood: #b91c1c;
  --animisha-btn-tap-min: 2.75rem;
}

/* ── Base ── */
.animisha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: var(--animisha-btn-tap-min);
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

.animisha-btn:focus-visible {
  outline: 2px solid var(--teal, #00f5d4);
  outline-offset: 3px;
}

.animisha-btn--block {
  display: flex;
  width: 100%;
}

.animisha-btn:disabled,
.animisha-btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Gold — everyday CTA ── */
.animisha-btn--gold {
  background: linear-gradient(135deg, var(--animisha-btn-gold-from), var(--animisha-btn-gold-to));
  color: #0a0a1a;
  box-shadow: var(--neon-cyan, 0 0 20px rgba(0, 245, 212, 0.5));
  text-shadow: none;
}

.animisha-btn--gold:hover:not(:disabled) {
  transform: translateY(-1px);
}

.animisha-btn--gold-outline {
  background: transparent;
  color: var(--text, #e8f4ff);
  border: 1px solid var(--border, rgba(0, 245, 212, 0.25));
  box-shadow: none;
}

.animisha-btn--gold-outline:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--teal, #00f5d4);
  color: var(--teal, #00f5d4);
}

/* ── Platinum — form submit ── */
.animisha-btn--platinum {
  background: linear-gradient(135deg, var(--animisha-btn-gold-from), var(--animisha-btn-gold-to));
  color: #0a0a1a;
  font-weight: 700;
  box-shadow:
    0 4px 20px rgba(0, 245, 212, 0.25),
    0 0 24px rgba(255, 42, 109, 0.12);
}

.animisha-btn--platinum:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 6px 24px rgba(0, 245, 212, 0.35),
    0 0 28px rgba(255, 42, 109, 0.18);
}

/* ── Diamond — marker; requires princess gem markup + CSS ── */
.animisha-btn--diamond {
  /* Visual: animisha-princess-tanzanite.css */
  min-height: 0;
  padding: 0;
  border-radius: 0;
  font-family: inherit;
}

.animisha-btn--diamond.founding-tanzanite-btn,
.animisha-btn--diamond.animisha-princess-tanzanite {
  width: 100%;
  margin-top: 1.25rem;
  padding: 1.1rem 1.3rem;
}

/* ── Ruby — sacred / intimate ── */
.animisha-btn--ruby {
  background: transparent;
  min-height: auto;
  padding: 0.35rem 0 0.5rem;
  border: none;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  font-family: "Cinzel", "DM Sans", serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--animisha-btn-ruby-moon);
  text-shadow: 0 0 12px rgba(201, 212, 232, 0.2);
  box-shadow: none;
}

.animisha-btn--ruby:hover:not(:disabled) {
  transform: none;
  border-bottom-color: rgba(201, 212, 232, 0.85);
  text-shadow:
    0 0 20px rgba(201, 212, 232, 0.55),
    0 0 24px rgba(185, 28, 28, 0.12);
  box-shadow: 0 6px 20px rgba(201, 212, 232, 0.2);
}

/* Ruby control — pono diamond gate */
.animisha-control--ruby .dash-pono-check {
  border-color: rgba(185, 28, 28, 0.55);
  box-shadow:
    0 0 8px rgba(185, 28, 28, 0.35),
    0 0 12px rgba(201, 212, 232, 0.15);
}

.animisha-control--ruby .dash-pono-check-input:checked + .dash-pono-check {
  background: rgba(185, 28, 28, 0.22);
  box-shadow:
    0 0 14px rgba(185, 28, 28, 0.55),
    0 0 18px rgba(201, 212, 232, 0.2);
}

/* Legacy aliases (migrate pages to animisha-btn--* over time) */
.btn.animisha-btn--gold,
a.btn-primary.animisha-btn--gold {
  /* gold tier */
}

@media (prefers-reduced-motion: reduce) {
  .animisha-btn {
    transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .animisha-btn--gold:hover:not(:disabled),
  .animisha-btn--gold-outline:hover:not(:disabled),
  .animisha-btn--platinum:hover:not(:disabled) {
    transform: none;
  }
}

@media (max-width: 720px) {
  .animisha-btn--block {
    width: 100%;
  }
}
