/* Accessibility & UI Polish */

/* 1. Color Contrast Improvements */
:root {
  --primary-text-orange: #C2410C; /* Darker orange for text (WCAG AA compliant against white) */
}

.text-orange-accessible {
  color: var(--primary-text-orange) !important;
}

/* Fix potentially low-contrast orange text */
.stat-value.orange,
.highlight-orange {
  color: var(--primary-text-orange) !important;
}

/* Accessible Button Colors - Overriding lighter gradients */
.generate-workout-btn {
  background: linear-gradient(135deg, #16A34A, #15803d) !important; /* Darker Green (WCAG AA Large Text compliant) */
  color: white !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Improves readability */
}

.generate-workout-btn.quick-start-btn {
  background: linear-gradient(135deg, #DC2626, #B91C1C) !important; /* Darker Red/Orange (WCAG AA Large Text compliant) */
}

/* 2. Focus States */
:focus-visible {
  outline: 3px solid #005fcc; /* High contrast blue for focus */
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.2);
}

/* Custom focus for cards */
.wizard-option:focus-visible,
.muscle-card:focus-visible,
.equipment-card:focus-visible {
  outline: 3px solid #005fcc;
  transform: translateY(-2px);
}

/* 3. Touch Targets (Mobile Optimization) */
@media (max-width: 768px) {
  .wizard-btn,
  .nav-btn,
  .mobile-nav-toggle,
  .close-modal-btn,
  .close-gym-mode,
  .gym-action-btn,
  .edit-button,
  button,
  a.btn,
  input[type="checkbox"],
  input[type="radio"] {
    min-height: 44px;
    min-width: 44px;
  }

  /* Increase padding for specific buttons */
  .wizard-footer .wizard-btn {
    padding: 12px 24px;
  }

  /* Ensure spacing between touch targets */
  .wizard-options,
  .muscle-grid,
  .equipment-grid {
    gap: 12px;
  }
}

/* Skeleton Loading Animation */
@keyframes skeleton-pulse {
  0% {
    background-color: #f0f0f0;
  }
  50% {
    background-color: #e0e0e0;
  }
  100% {
    background-color: #f0f0f0;
  }
}

.skeleton {
  animation: skeleton-pulse 1.5s infinite ease-in-out;
  border-radius: 8px;
  color: transparent !important;
  pointer-events: none;
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
  width: 80%;
}

.skeleton-card {
  height: 150px;
  width: 100%;
}
