/**
 * SHINE BORDER - Animated Gradient Border
 * Efecto de borde brillante con gradiente rotando
 * Para CTAs premium y cards destacados
 */

/* =================================
   SHINE BORDER WRAPPER
   ================================= */
.shine-border {
  position: relative;
  border-radius: 16px;
  padding: 2px; /* Border thickness */
  background: transparent;
  isolation: isolate;
  overflow: hidden;
}

.shine-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    #7c3aed,
    #3b82f6,
    #06b6d4,
    #22d3ee,
    #06b6d4,
    #3b82f6,
    #7c3aed
  );
  animation: shine-spin 3s linear infinite;
  z-index: -2;
}

.shine-border::after {
  content: '';
  position: absolute;
  inset: 2px; /* Match padding */
  border-radius: calc(16px - 2px);
  background: var(--shine-bg, #0A0A0A);
  z-index: -1;
}

@keyframes shine-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =================================
   SHINE BORDER VARIANTS
   ================================= */

/* Faster spin for attention */
.shine-border--fast::before {
  animation-duration: 1.5s;
}

/* Slower spin for elegance */
.shine-border--slow::before {
  animation-duration: 5s;
}

/* Purple theme (default) */
.shine-border--purple::before {
  background: conic-gradient(
    from 0deg,
    #7c3aed,
    #a78bfa,
    #c4b5fd,
    #a78bfa,
    #7c3aed
  );
}

/* Cyan theme */
.shine-border--cyan::before {
  background: conic-gradient(
    from 0deg,
    #06b6d4,
    #22d3ee,
    #67e8f9,
    #22d3ee,
    #06b6d4
  );
}

/* Rainbow theme */
.shine-border--rainbow::before {
  background: conic-gradient(
    from 0deg,
    #ec4899,
    #f43f5e,
    #f97316,
    #eab308,
    #22c55e,
    #06b6d4,
    #3b82f6,
    #8b5cf6,
    #ec4899
  );
}

/* =================================
   SHINE BORDER BUTTON
   ================================= */
.btn-shine {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: var(--font-display, 'Clash Display', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s;
}

.btn-shine::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    #7c3aed,
    #3b82f6,
    #06b6d4,
    #22d3ee,
    #06b6d4,
    #3b82f6,
    #7c3aed
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: shine-spin 3s linear infinite;
}

.btn-shine::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: calc(12px - 2px);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
  z-index: -1;
}

.btn-shine:hover {
  transform: scale(1.02);
}

.btn-shine:active {
  transform: scale(0.98);
}

/* Large shine button */
.btn-shine--lg {
  padding: 20px 44px;
  font-size: 1.15rem;
  border-radius: 14px;
}

/* =================================
   SHINE BORDER CARD
   ================================= */
.card-shine {
  position: relative;
  border-radius: 20px;
  padding: 2px;
  isolation: isolate;
  overflow: hidden;
}

.card-shine::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    #7c3aed,
    #3b82f6,
    #06b6d4,
    transparent 60%
  );
  animation: shine-spin 4s linear infinite;
  z-index: -2;
}

.card-shine::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: calc(20px - 2px);
  background: var(--card-bg, #0A0A0A);
  z-index: -1;
}

.card-shine__content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

/* =================================
   USAGE EXAMPLES:
   
   <!-- Shine Border Wrapper -->
   <div class="shine-border">
     <div style="padding: 2rem; background: #0A0A0A; border-radius: 14px;">
       Content here
     </div>
   </div>
   
   <!-- Shine Border Button -->
   <button class="btn-shine btn-shine--lg">
     Acceder Ahora →
   </button>
   
   <!-- Shine Border Card -->
   <div class="card-shine">
     <div class="card-shine__content">
       <h3>Premium Plan</h3>
       <p>Description here</p>
     </div>
   </div>
   
   ================================= */
