/* Custom styles for EliteLaunchium */

/* CSS Variables */
:root {
  --color-primary: #000000;
  --color-secondary: #8b5cf6;
  --color-accent: #dc2626;
}

/* Global Styles */
body {
  font-family: 'Open Sans', sans-serif;
}

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

/* Custom focus styles */
.focus\:ring-primary:focus {
  --tw-ring-color: var(--color-primary);
}

/* Accordion styles */
.accordion-trigger[aria-expanded="true"] i {
  transform: rotate(180deg);
}

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

.accordion-content.open {
  max-height: 500px;
}

/* Form styles */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Button hover effects */
.btn-primary {
  background-color: var(--color-primary);
  color: white;
  transition: opacity 0.2s ease-in-out;
}

.btn-primary:hover {
  opacity: 0.9;
}

/* Navigation active state */
.nav-active {
  color: var(--color-primary) !important;
  border-bottom: 2px solid var(--color-primary);
}

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

/* Cookie banner styles */
#cookie-banner {
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Print styles */
@media print {
  .no-print {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #000000;
    --color-secondary: #6b21a8;
    --color-accent: #dc2626;
  }
}

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

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
  /* Dark mode styles can be added here if needed */
}

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

/* Error states */
.error {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Success states */
.success {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

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

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Focus visible for better accessibility */
.focus-visible:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
/* 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; }
