/* Custom styles for Healthy Sponsorship website */

/* Print styles for checklist */
@media print {
  header,
  footer,
  #evaluate-btn,
  #reset-btn,
  .no-print {
    display: none !important;
  }

  body {
    background: white !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .shadow-md {
    box-shadow: none !important;
    border: 1px solid #e5e7eb !important;
  }

  .bg-gray-50 {
    background: white !important;
  }

  #results-section {
    page-break-before: always;
  }
}

/* Radio button styling */
input[type="radio"] {
  cursor: pointer;
  width: 1rem;
  height: 1rem;
}

input[type="radio"]:checked {
  accent-color: #4f46e5;
}

/* Smooth transitions for interactive elements */
.checklist-item {
  transition: background-color 0.2s ease;
}

.checklist-item:hover {
  background-color: #f3f4f6;
}

/* Category result animations */
.category-result {
  transition: all 0.3s ease;
}

/* Navigation active state enhancement */
nav a {
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.2s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Card hover effects */
.hover\:shadow-lg:hover {
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

/* Table responsive styling */
@media (max-width: 640px) {
  table {
    font-size: 0.875rem;
  }

  th, td {
    padding: 0.5rem;
  }
}

/* Results section animation */
#results-section {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
  #nav-menu {
    background-color: rgba(67, 56, 202, 0.95);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
  }

  #nav-menu li a {
    padding: 0.75rem 1rem;
    display: block;
    border-radius: 0.25rem;
  }

  #nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

/* Resource links styling */
a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.75em;
  vertical-align: super;
}

/* Warning signs list styling */
.space-y-3 li {
  transition: background-color 0.2s ease;
}

/* Better scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

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

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

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #4f46e5;
  color: white;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}
