/* SearchHounds - Modern CSS Design System */

/* CSS Variables for Design System */
:root {
  /* Colors */
  --primary-navy: #1e3a8a;
  --coral: #ff6b6b;
  --accent-green: #10b981;
  --background: #ffffff;
  --foreground: #1f2937;
  --muted-foreground: #4b5563;
  --input: #d1d5db;
  --ring: #3b82f6;
  --ring-offset-background: #ffffff;

  /* Typography */
  --font-heading: "Roboto", sans-serif;
  --font-body: "Open Sans", sans-serif;

  /* Spacing */
  --container-max-width: 1280px;
  --section-padding: 4rem 0;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: var(--background);
  color: var(--foreground);
}

/* Typography */
.font-heading {
  font-family: var(--font-heading);
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

/* Layout Utilities */
.min-h-screen {
  min-height: 100vh;
}

.bg-background {
  background-color: var(--background);
}

.bg-white {
  background-color: #ffffff;
}

.bg-gray-50 {
  background-color: #f3f4f6;
}

.text-white {
  color: #ffffff;
}

.text-foreground {
  color: var(--foreground);
}

.text-primary {
  color: var(--primary-navy);
}

.text-primary-navy {
  color: var(--primary-navy);
}

.text-coral {
  color: var(--coral);
}

.text-accent-green {
  color: var(--accent-green);
}

.text-gray-600 {
  color: #374151;
}

.text-gray-400 {
  color: #6b7280;
}

.text-slate-300 {
  color: #94a3b8;
}

.text-blue-600 {
  color: #2563eb;
}

/* Header Styles */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #d1d5db;
}

.max-w-7xl {
  max-width: var(--container-max-width);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.h-16 {
  height: 4rem;
}

.margin-05 {
  margin: 0.5rem;
}

.flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.items-center {
  align-items: center;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.space-x-8 > * + * {
  margin-left: 2rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

/* Text Sizes */
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Navigation */
nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--foreground);
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--primary-navy);
}

.hover\:text-primary-navy:hover {
  color: var(--primary-navy);
}

.hover\:text-coral:hover {
  color: var(--coral);
}

.hover\:text-white:hover {
  color: #ffffff;
}

.transition-colors {
  transition-property: color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Breadcrumbs */
.border-b {
  border-bottom-width: 1px;
}

.border-gray-200 {
  border-color: #d1d5db;
}

/* Hero Section */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-slate-900 {
  --tw-gradient-from: #0f172a;
  --tw-gradient-stops: var(--tw-gradient-from),
    var(--tw-gradient-to, rgba(15, 23, 42, 0));
}

.via-blue-900 {
  --tw-gradient-stops: var(--tw-gradient-from), #1e3a8a,
    var(--tw-gradient-to, rgba(30, 58, 138, 0));
}

.to-blue-800 {
  --tw-gradient-to: #1e40af;
}

.text-center {
  text-align: center;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-2xl {
  max-width: 42rem;
}

/* Grid System */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

/* Forms */
.flex-1 {
  flex: 1 1 0%;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.right-4 {
  right: 1rem;
}

.top-1\/2 {
  top: 50%;
}

.transform {
  transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0))
    rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0))
    skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1))
    scaleY(var(--tw-scale-y, 1));
}

.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  transform: translateY(-50%);
}

input[type="text"],
input[type="email"],
select {
  display: flex;
  height: 2.5rem;
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid var(--input);
  background-color: var(--background);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--ring);
}

/* Buttons */
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.bg-coral {
  background-color: var(--coral);
}

.hover\:bg-coral:hover {
  background-color: #e55555;
}

.bg-accent-green {
  background-color: var(--accent-green);
}

.hover\:bg-accent-green\/90:hover {
  background-color: rgba(16, 185, 129, 0.9);
}

.bg-orange-500 {
  background-color: #f97316;
}

.hover\:bg-orange-600:hover {
  background-color: #ea580c;
}

/* Cards */
.bg-white {
  background-color: #ffffff;
}

.card-enhanced {
  border: 2px solid #e5e7eb;
  transition: all 0.2s ease;
}

.card-enhanced:hover {
  border-color: rgba(255, 107, 107, 0.4);
  transform: translateY(-2px);
}

.rounded-xl {
  border-radius: 0.75rem;
  padding: 1em;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15),
    0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.shadow-sm {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.08);
}

.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.18),
    0 10px 10px -5px rgba(0, 0, 0, 0.08);
}

.border {
  border-width: 1px;
}

.border-2 {
  border-width: 2px;
}

.border-gray-100 {
  border-color: #d1d5db;
}

.hover\:border-coral\/30:hover {
  border-color: rgba(255, 107, 107, 0.5);
}

.p-6 {
  padding: 1.5rem;
}

.cursor-pointer {
  cursor: pointer;
}

.group {
  /* This creates a group context for hover effects */
  position: relative;
}

.block {
  display: block;
}

.hover\:-translate-y-1:hover {
  --tw-translate-y: -0.25rem;
}

/* Icon Styles */
.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

.w-8 {
  width: 2rem;
}

.h-8 {
  height: 2rem;
}

.h-4 {
  width: 1rem;
}

.w-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.w-5 {
  width: 1.25rem;
}

.rounded-full {
  border-radius: 9999px;
}

.inline-block {
  display: inline-block;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

/* Tag Styles */
.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 {
  gap: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.bg-gray-100 {
  background-color: #e5e7eb;
}

.rounded-full {
  border-radius: 9999px;
}

/* Images */
.object-cover {
  object-fit: cover;
}

.w-full {
  width: 100%;
}

.h-48 {
  height: 12rem;
}

/* Footer */
.border-t {
  border-top-width: 1px;
}

.border-slate-600 {
  border-color: #475569;
}

.mt-12 {
  margin-top: 3rem;
}

.pt-8 {
  padding-top: 2rem;
}

/* Hover Effects for Colors */
.hover\:opacity-80:hover {
  opacity: 0.8;
}

.group-hover\:bg-coral\/20:group-hover {
  background-color: rgba(255, 107, 107, 0.2);
}

.group-hover\:bg-primary\/20:group-hover {
  background-color: rgba(30, 58, 138, 0.2);
}

.group-hover\:bg-accent-green\/20:group-hover {
  background-color: rgba(16, 185, 129, 0.2);
}

.group-hover\:bg-orange-500\/20:group-hover {
  background-color: rgba(249, 115, 22, 0.2);
}

.group-hover\:bg-blue-600\/20:group-hover {
  background-color: rgba(37, 99, 235, 0.2);
}

/* Background Colors for Icons */
.bg-coral\/10 {
  background-color: rgba(255, 107, 107, 0.1);
}

.bg-primary\/10 {
  background-color: rgba(30, 58, 138, 0.1);
}

.bg-accent-green\/10 {
  background-color: rgba(16, 185, 129, 0.1);
}

.bg-orange-500\/10 {
  background-color: rgba(249, 115, 22, 0.1);
}

.bg-blue-600\/10 {
  background-color: rgba(37, 99, 235, 0.1);
}

/* Focus States */
.focus\:ring-4:focus {
  box-shadow: 0 0 0 4px var(--tw-ring-color);
}

.focus\:ring-coral\/30:focus {
  --tw-ring-color: rgba(255, 107, 107, 0.3);
}

.focus\:ring-2:focus {
  box-shadow: 0 0 0 2px var(--tw-ring-color);
}

.focus\:ring-accent-green:focus {
  --tw-ring-color: var(--accent-green);
}

.focus\:ring-orange-500:focus {
  --tw-ring-color: #f97316;
}

.focus\:border-transparent:focus {
  border-color: transparent;
}

/* Hidden utilities */
.hidden {
  display: none;
}

/* Responsive Design */
@media (min-width: 640px) {
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sm\:bottom-0 {
    bottom: 0;
  }

  .sm\:right-0 {
    right: 0;
  }

  .sm\:top-auto {
    top: auto;
  }

  .sm\:flex-col {
    flex-direction: column;
  }

  .sm\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .md\:block {
    display: block;
  }

  .md\:hidden {
    display: none;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }

  .md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .md\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .md\:max-w-\[420px\] {
    max-width: 420px;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Search functionality */
#search-form {
  /* Existing search form styles will be preserved by search.js */
}

/* Utility Classes */
.fixed {
  position: fixed;
}

.top-0 {
  top: 0;
}

.z-\[100\] {
  z-index: 100;
}

.max-h-screen {
  max-height: 100vh;
}

.flex-col-reverse {
  flex-direction: column-reverse;
}

.pointer-events-none {
  pointer-events: none;
}

/* Tabindex styles are handled by HTML tabindex attribute */

/* Additional utility classes that might be needed */
.duration-200 {
  transition-duration: 200ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Link styles */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Ensure proper link styling in footer */
footer a {
  transition: color 0.2s ease;
}

footer a:hover {
  color: #ffffff;
}

/* SVG icon sizing */
svg {
  display: inline-block;
  vertical-align: middle;
}

/* Section Background Enhancements */
.section-contrast {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.section-white-enhanced {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.section-dark-enhanced {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Form specific styles */
input::placeholder {
  color: var(--muted-foreground);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Button disabled state */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Focus visible styles */
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
