/* Custom CSS for FindFirst Theme */

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links */
a {
  transition: color 0.3s ease;
}

a:focus {
  outline: 2px solid var(--primary-yellow);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  transition: all 0.3s ease;
}

.btn:focus {
  outline: 2px solid var(--primary-yellow);
  outline-offset: 2px;
}

/* Forms */
input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 0.375rem;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(11, 85, 255, 0.1);
}

textarea {
  resize: vertical;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

table th,
table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

table th {
  background-color: var(--light-bg);
  font-weight: 700;
}

table tbody tr:hover {
  background-color: var(--light-bg);
}

/* Code */
code,
pre {
  background-color: var(--light-bg);
  border-radius: 0.375rem;
  font-family: 'Courier New', monospace;
}

code {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

pre {
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
}

pre code {
  background-color: transparent;
  padding: 0;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--primary-yellow);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #666;
}

/* Lists */
ul,
ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-navy);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

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

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }

  .no-print {
    display: none;
  }
}

/* Mobile Menu Enhancements */
@media (max-width: 1024px) {
  .site-navigation.active {
    animation: slideInLeft 0.3s ease-out;
  }

  .menu-toggle {
    z-index: 100;
  }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
  :root {
    --light-bg: #1a1a1a;
  }

  body {
    background-color: #0a0a0a;
    color: #f0f0f0;
  }
}

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