/* Main CSS - Aurora Seminars */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Body scroll lock for mobile menu */
body.menu-open {
  overflow: hidden;
}

body.cookie-locked {
  overflow: hidden;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid #4263eb;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Remove default focus for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Selection color */
::selection {
  background-color: #dbe4ff;
  color: #364fc7;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f4f7f4;
}

::-webkit-scrollbar-thumb {
  background: #bac8ff;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #91a7ff;
}

/* Form input transitions */
input,
textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input.error,
textarea.error {
  border-color: #e03131;
  box-shadow: 0 0 0 2px rgba(224, 49, 49, 0.1);
}

input.success,
textarea.success {
  border-color: #5a7f5a;
  box-shadow: 0 0 0 2px rgba(90, 127, 90, 0.1);
}

/* Animated gradient for hero */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-gradient {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

/* Card hover lift */
.card-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
  transform: translateY(-4px);
}

/* FAQ accordion styles */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer.open {
  max-height: 500px;
}

.faq-toggle .faq-icon {
  transition: transform 0.3s ease;
}

.faq-toggle.active .faq-icon {
  transform: rotate(180deg);
}

/* Mobile menu slide animation */
#mobile-menu .absolute.right-0 {
  transition: transform 0.3s ease;
}

#mobile-menu.hidden .absolute.right-0 {
  transform: translateX(100%);
}

/* Link underline animation */
.link-underline {
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #4263eb;
  transition: width 0.3s ease;
}

.link-underline:hover::after {
  width: 100%;
}

/* Session card pulse dot */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #5a7f5a;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(90, 127, 90, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(90, 127, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(90, 127, 90, 0); }
}

/* Cookie consent entrance */
@keyframes slideInRight {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

#cookie-consent:not(.hidden) {
  animation: slideInRight 0.4s ease-out;
}

/* Print styles */
@media print {
  header,
  footer,
  #cookie-consent,
  #mobile-menu,
  #registration {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Typography fine-tuning */
.prose p {
  margin-bottom: 1.25rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Button disabled state */
button:disabled,
button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading spinner for form submission */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
