/* Global Theme Styles: gradient, glow, buttons, hovers */
:root {
  --theme-purple: #8B5CF6;
  --theme-pink: #EC4899;
  --theme-dark: #0F0F12;
  --theme-panel: #1F1F23;
  --theme-glow: rgba(139, 92, 246, 0.6);
  --theme-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --theme-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient utilities */
.gradient-theme {
  background-image: linear-gradient(135deg, var(--theme-purple), var(--theme-pink));
}

.gradient-text-theme {
  background: linear-gradient(90deg, var(--theme-purple), var(--theme-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glow utility */
.glow-theme {
  box-shadow: 0 0 20px var(--theme-glow);
}

/* Card hover/highlight - only for interactive/clickable cards */
.card-hover-theme {
  transition: all 0.4s var(--theme-ease-spring), transform 0.2s var(--theme-ease-spring);
  border: 1px solid rgba(139, 92, 246, 0.15);
}
.card-hover-theme:is(button, a, [onclick], [role="button"]):hover,
.card-hover-theme:has(button:hover, a:hover):hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.05);
  cursor: pointer;
}

/* Link hover underlines */
.link-hover-theme {
  position: relative;
  transition: color 0.3s var(--theme-ease-smooth);
}
.link-hover-theme::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--theme-purple), var(--theme-pink));
  transition: width 0.3s var(--theme-ease-spring);
  border-radius: 2px;
}
.link-hover-theme:hover::after { width: 100%; }

/* Buttons */
.btn-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .5rem .9rem;
  border-radius: .5rem;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #fff;
  background-image: linear-gradient(135deg, var(--theme-purple), var(--theme-pink));
  /* Remove glow at rest; keep subtle motion */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.3s var(--theme-ease-spring), transform 0.2s var(--theme-ease-spring);
}
.btn-theme:hover {
  transform: translateY(-2px);
  /* Thin purple border + neutral shadow on hover */
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.btn-theme:active { transform: scale(0.97); }

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: .5rem;
  color: #fff;
  font-weight: 600;
  /* Neutral resting shadow */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.3s var(--theme-ease-spring);
}
.btn-glass:hover {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

/* Inputs */
.input-theme {
  transition: all 0.3s var(--theme-ease-smooth);
  border-color: #35353b;
}
.input-theme:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}
.input-theme:focus {
  border-color: var(--theme-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
  background: rgba(139, 92, 246, 0.05);
}
