/* Anthem Theme - Patriotic Red, White, and Blue Color Palette */
:root {
  /* Patriotic Color Palette */
  --color-anthem-red-50: #fef2f2;
  --color-anthem-red-100: #fee2e2;
  --color-anthem-red-200: #fecaca;
  --color-anthem-red-300: #fca5a5;
  --color-anthem-red-400: #f87171;
  --color-anthem-red-500: #ef4444;
  --color-anthem-red-600: #dc2626;
  --color-anthem-red-700: #b91c1c;
  --color-anthem-red-800: #991b1b;
  --color-anthem-red-900: #7f1d1d;

  --color-anthem-blue-50: #eff6ff;
  --color-anthem-blue-100: #dbeafe;
  --color-anthem-blue-200: #bfdbfe;
  --color-anthem-blue-300: #93c5fd;
  --color-anthem-blue-400: #60a5fa;
  --color-anthem-blue-500: #3b82f6;
  --color-anthem-blue-600: #2563eb;
  --color-anthem-blue-700: #1d4ed8;
  --color-anthem-blue-800: #1e40af;
  --color-anthem-blue-900: #1e3a8a;

  --color-anthem-white: #ffffff;
  --color-anthem-gray-50: #f9fafb;
  --color-anthem-gray-100: #f3f4f6;
  --color-anthem-gray-200: #e5e7eb;
  --color-anthem-gray-300: #d1d5db;
  --color-anthem-gray-400: #9ca3af;
  --color-anthem-gray-500: #6b7280;
  --color-anthem-gray-600: #4b5563;
  --color-anthem-gray-700: #374151;
  --color-anthem-gray-800: #1f2937;
  --color-anthem-gray-900: #111827;

  /* Theme color aliases */
  --color-anthem-primary: var(--color-anthem-blue-800);
  --color-anthem-primary-dark: var(--color-anthem-blue-900);
  --color-anthem-primary-light: var(--color-anthem-blue-500);
  --color-anthem-secondary: var(--color-anthem-red-600);
  --color-anthem-secondary-dark: var(--color-anthem-red-700);
  --color-anthem-accent: var(--color-anthem-red-700);
}

/* Base component styles */
.anthem-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-anthem-gray-200);
}

.anthem-card-hover {
  transition: box-shadow 0.2s;
}

.anthem-card-hover:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.anthem-button-primary {
  background-color: var(--color-anthem-blue-800);
  color: white;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
}

.anthem-button-primary:hover {
  background-color: var(--color-anthem-blue-900);
}

.anthem-button-primary:focus {
  outline: none;
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--color-anthem-blue-500);
}

.anthem-button-secondary {
  background-color: var(--color-anthem-red-600);
  color: white;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
}

.anthem-button-secondary:hover {
  background-color: var(--color-anthem-red-700);
}

.anthem-button-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--color-anthem-red-500);
}

.anthem-button-outline {
  border: 2px solid var(--color-anthem-blue-800);
  color: var(--color-anthem-blue-800);
  background-color: transparent;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
  cursor: pointer;
}

.anthem-button-outline:hover {
  background-color: var(--color-anthem-blue-50);
}

.anthem-button-outline:focus {
  outline: none;
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--color-anthem-blue-500);
}

.anthem-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
}

.anthem-badge-priority {
  background-color: #eab308;
  color: white;
}

.anthem-badge-aligns {
  background-color: #22c55e;
  color: white;
}

.anthem-badge-doesnt-align {
  background-color: var(--color-anthem-red-600);
  color: white;
}

.anthem-badge-neutral {
  background-color: var(--color-anthem-gray-500);
  color: white;
}

/* Sidebar styles */
.anthem-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 16rem;
  background-color: white;
  border-right: 1px solid var(--color-anthem-gray-200);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: transform 0.3s;
}

.anthem-sidebar-collapsed {
  transform: translateX(-100%);
}

/* Modal (theme component) */
.anthem-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.anthem-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 24, 39, 0.5);
  transition: opacity 0.2s;
}

.anthem-modal-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 32rem;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background-color: var(--color-anthem-white);
  color: var(--color-anthem-gray-900);
  border: 1px solid var(--color-anthem-gray-200);
  transition: transform 0.3s;
}

.anthem-modal-content.anthem-modal-sm { max-width: 28rem; }
.anthem-modal-content.anthem-modal-lg { max-width: 42rem; }
.anthem-modal-content.anthem-modal-xl { max-width: 56rem; }

.anthem-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-anthem-gray-200);
}

.anthem-modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-anthem-gray-900);
}

.anthem-modal-body {
  padding: 1rem 1.5rem;
}

.anthem-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-anthem-gray-200);
}

.anthem-modal-close {
  padding: 0.25rem;
  border-radius: 0.25rem;
  color: var(--color-anthem-gray-400);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.anthem-modal-close:hover {
  color: var(--color-anthem-gray-600);
}

.anthem-modal-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px white, 0 0 0 4px var(--color-anthem-blue-500);
}

/* Layout spacing utilities */
.anthem-content-top-spacing {
  /* Space for banner (52px) + header (52px) = 104px */
  padding-top: 104px;
}

.anthem-sidebar-top-spacing {
  /* Space for banner (52px) + header (52px) = 104px */
  top: 104px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .dark .anthem-card {
    background-color: var(--color-anthem-gray-800);
    border-color: var(--color-anthem-gray-700);
    color: var(--color-anthem-gray-100);
  }
  
  .dark .anthem-sidebar {
    background-color: var(--color-anthem-gray-800);
    border-color: var(--color-anthem-gray-700);
  }

  .dark .anthem-modal-content {
    background-color: var(--color-anthem-gray-800);
    border-color: var(--color-anthem-gray-700);
    color: var(--color-anthem-gray-100);
  }

  .dark .anthem-modal-header,
  .dark .anthem-modal-footer {
    border-color: var(--color-anthem-gray-700);
  }

  .dark .anthem-modal-title {
    color: var(--color-anthem-gray-100);
  }

  .dark .anthem-modal-close {
    color: var(--color-anthem-gray-400);
  }

  .dark .anthem-modal-close:hover {
    color: var(--color-anthem-gray-200);
  }
}
