:root {
  --color-primary: #8b5cf6;
  --color-secondary: #f59e0b;
  --color-accent: #000000;
}

* {
  box-sizing: border-box;
}

.font-open-sans {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Button hover effects */
.transition-colors {
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

/* Form styling enhancements */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Cookie banner styling */
#cookie-banner {
  backdrop-filter: blur(8px);
}

/* FAQ accordion styling */
.faq-toggle[aria-expanded="true"] .transform {
  transform: rotate(180deg);
}

.faq-content {
  transition: max-height 0.3s ease-out;
  overflow: hidden;
}

.faq-content.hidden {
  max-height: 0;
}

.faq-content:not(.hidden) {
  max-height: 200px;
}

/* Mobile menu animation */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

/* Image optimization */
img {
  max-width: 100%;
  height: auto;
}

/* Print styles */
@media print {
  .no-print,
  header,
  footer,
  #cookie-banner,
  #cookie-modal {
    display: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #6d28d9;
  }
}

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

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Table responsive styling */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Custom checkbox styling for cookie preferences */
input[type="checkbox"] {
  accent-color: var(--color-primary);
}

/* Ensure proper spacing for prose content */
.prose h2 + p,
.prose h3 + p {
  margin-top: 0;
}

.prose ul + p,
.prose ol + p {
  margin-top: 1.5rem;
}
/* Cookie banner visibility — independent of Tailwind */
#cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
#cookie-modal.hidden { display: none !important; }
