/* Custom styles for ultraforge */

:root {
  --color-primary: #2563eb;
  --color-secondary: #dc2626;
  --color-accent: #64748b;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Transition for smooth interactions */
a, button {
  transition: all 0.2s ease-in-out;
}

/* Form validation styles */
.form-error {
  border-color: var(--color-secondary) !important;
}

.form-success {
  border-color: #10b981 !important;
}

/* Loading state */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

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

/* Cookie banner styles */
#cookie-banner {
  transition: all 0.3s ease-in-out;
}

/* Prose styles for legal pages */
.prose h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul {
  margin-bottom: 1rem;
}

.prose li {
  margin-bottom: 0.25rem;
}

/* Table styles */
table {
  border-collapse: collapse;
  width: 100%;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #1e40af;
    --color-secondary: #b91c1c;
    --color-accent: #374151;
  }
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  /* Add dark mode styles if needed in the future */
}

/* Utility classes */
.text-balance {
  text-wrap: balance;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom button hover effects */
.btn-primary {
  background-color: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: opacity 0.2s ease-in-out;
}

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

.btn-secondary {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
}
/* 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; }
