/* ===================================
   ENHANCED ATTRACTIVE CTA BUTTONS
   Beads of Brilliance
   =================================== */

/* Primary CTA Button - "Book Free Trial" */
.cta-button.primary {
  position: relative;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #2C3E50;
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  padding: 16px 32px;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4),
              0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Shine effect on primary button */
.cta-button.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.4), 
    transparent);
  transition: left 0.5s;
}

.cta-button.primary:hover::before {
  left: 100%;
}

.cta-button.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6),
              0 4px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #FFF700 0%, #FFB700 100%);
}

.cta-button.primary:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Add icon to primary button */
.cta-button.primary::after {
  content: '→';
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.cta-button.primary:hover::after {
  transform: translateX(5px);
}

/* Secondary CTA Button - "View Programs" / "Meet Our Teachers" */
.cta-button.secondary {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-weight: 600;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  padding: 16px 32px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-transform: capitalize;
}

/* Glow effect on secondary button */
.cta-button.secondary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.cta-button.secondary:hover::before {
  width: 300px;
  height: 300px;
}

.cta-button.secondary:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255, 255, 255, 0.95);
  color: #4A90E2;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3),
              0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-button.secondary:active {
  transform: translateY(-1px) scale(0.98);
}

/* Large button variant */
.cta-button.large {
  padding: 18px 40px;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  min-width: 200px;
}

/* Small button variant (for teacher cards) */
.cta-button.small {
  padding: 12px 24px;
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  border-radius: 40px;
}

/* Button container styling */
.cta-buttons,
.educator-hero-buttons,
.hero-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

/* Pulse animation for primary button */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6),
                0 2px 12px rgba(0, 0, 0, 0.15);
  }
}

.cta-button.primary {
  animation: pulse 2s infinite;
}

.cta-button.primary:hover {
  animation: none;
}

/* Ripple effect on click */
.cta-button {
  position: relative;
  overflow: hidden;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:active::after {
  width: 300px;
  height: 300px;
  transition: width 0s, height 0s;
}

/* Focus states for accessibility */
.cta-button:focus {
  outline: 3px solid rgba(255, 215, 0, 0.5);
  outline-offset: 3px;
}

.cta-button:focus:not(:focus-visible) {
  outline: none;
}

/* Loading state */
.cta-button.loading {
  pointer-events: none;
  opacity: 0.7;
}

.cta-button.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cta-buttons,
  .educator-hero-buttons,
  .hero-buttons {
    gap: 12px;
  }
  
  .cta-button {
    padding: 14px 28px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }
  
  .cta-button.large {
    padding: 16px 32px;
  }
}

@media (max-width: 480px) {
  .cta-buttons,
  .educator-hero-buttons,
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .cta-button {
    width: 100%;
    max-width: 320px;
    padding: 16px 24px;
  }
}

/* Special styling for CTA section buttons */
.cta-section .cta-button.primary {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #2C3E50;
  border: none;
}

.cta-section .cta-button.secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.cta-section .cta-button.primary:hover {
  background: linear-gradient(135deg, #FFF700 0%, #FFB700 100%);
  transform: translateY(-3px) scale(1.02);
}

.cta-section .cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #4A90E2;
  border-color: rgba(255, 255, 255, 0.9);
}

/* Gradient border effect for secondary buttons */
.cta-button.secondary.gradient-border {
  border: 2px solid transparent;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
    linear-gradient(135deg, #FFD700, #4A90E2);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Icon styling within buttons */
.cta-button .icon {
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.cta-button:hover .icon {
  transform: scale(1.1);
}

/* Success state */
.cta-button.success {
  background: linear-gradient(135deg, #27AE60, #2ECC71);
  color: white;
}

.cta-button.success::after {
  content: '✓';
  font-size: 1.2em;
}

/* Disabled state */
.cta-button:disabled,
.cta-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
