/* 
  Modern Dog Guide Styles
  Features: Clean design, minimal aesthetic, responsive layout
*/

/* Import modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables for modern theming */
:root {
  /* Vibrant color palette */
  --primary-color: #3b82f6;
  --secondary-color: #f97316;
  --accent-color: #06d6a0;
  --success-color: #22c55e;
  --warning-color: #eab308;
  --danger-color: #ef4444;
  --purple-color: #8b5cf6;
  --pink-color: #ec4899;
  --text-color: #1f2937;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --bg-color: #ffffff;
  --bg-subtle: #f9fafb;
  --bg-muted: #f3f4f6;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  
  /* Modern shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  /* Clean spacing system */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Modern typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Layout */
  --max-width: 1280px;
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme */
[data-theme="dark"] {
  --text-color: #f9fafb;
  --text-muted: #d1d5db;
  --text-light: #9ca3af;
  --bg-color: #111827;
  --bg-subtle: #1f2937;
  --bg-muted: #374151;
  --border-color: #374151;
  --border-light: #4b5563;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}

/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-3);
}

h1 { font-size: var(--font-size-4xl); font-weight: 700; }
h2 { font-size: var(--font-size-3xl); font-weight: 600; }
h3 { font-size: var(--font-size-2xl); font-weight: 600; }

p {
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--primary-color);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* Modern Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-sm);
  font-weight: 500;
  line-height: 1;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  outline: none;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), #ea580c);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #ea580c, var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-xs);
}

/* Modern Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 50;
  transition: var(--transition);
}

[data-theme="dark"] .header {
  background-color: rgba(17, 24, 39, 0.8);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.logo h1 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin: 0;
  color: var(--text-color);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-8);
  margin: 0;
}

.nav-list a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: var(--font-size-sm);
  padding: var(--space-2) 0;
  position: relative;
  transition: var(--transition);
}

.nav-list a:hover {
  color: var(--text-color);
  text-decoration: none;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-list a:hover::after {
  transform: scaleX(1);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.favorites-btn, .theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--border-radius);
  transition: var(--transition);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.favorites-btn:hover, .theme-toggle:hover {
  background-color: var(--bg-subtle);
  color: var(--text-color);
}

/* Main content */
main {
  margin-top: 80px;
}

/* Modern Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
  color: white;
  padding: var(--space-24) 0 var(--space-20);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(var(--font-size-3xl), 5vw, 4rem);
  font-weight: 800;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-10);
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-base);
  font-weight: 600;
}

.hero-buttons .btn-secondary {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.9), rgba(234, 88, 12, 0.9));
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.hero-buttons .btn-secondary:hover {
  background: linear-gradient(135deg, rgba(234, 88, 12, 1), rgba(249, 115, 22, 1));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* Clean Stats Section */
.stats-bar {
  background-color: var(--bg-subtle);
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
}

.stat-card {
  text-align: center;
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-subtle) 100%);
  border-radius: var(--border-radius-lg);
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--secondary-color), var(--purple-color));
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary-color);
}

.stat-icon {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-3);
}

.stat-number {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* Modern Breeds Section */
.breeds-section {
  padding: var(--space-20) 0;
}

.breeds-section h2 {
  text-align: center;
  margin-bottom: var(--space-12);
  color: var(--text-color);
}

.search-filters {
  margin-bottom: var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.search-box {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-box input {
  width: 100%;
  padding: var(--space-4) var(--space-6) var(--space-4) var(--space-12);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  font-size: var(--font-size-base);
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.search-box input::placeholder {
  color: var(--text-light);
}

.search-icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.filters {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.filters select {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: var(--font-size-sm);
  font-weight: 500;
  min-width: 140px;
  transition: var(--transition);
}

.filters select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

/* Clean Breed Grid */
.breed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-8);
}

.breed-card {
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-subtle) 100%);
  border-radius: var(--border-radius-lg);
  border: 2px solid transparent;
  background-clip: padding-box;
  overflow: hidden;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  position: relative;
}

.breed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary-color);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.breed-info {
  padding: var(--space-6);
}

.breed-name {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-color);
}

.breed-summary {
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.breed-tags {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.breed-tag {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--space-4);
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: white;
}

.breed-tag:nth-child(1) {
  background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
}

.breed-tag:nth-child(2) {
  background: linear-gradient(135deg, var(--secondary-color), #ea580c);
}

.breed-tag:nth-child(3) {
  background: linear-gradient(135deg, var(--accent-color), #059669);
}

.breed-actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
}

.favorite-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-lg);
  transition: var(--transition);
  padding: var(--space-2);
  border-radius: var(--border-radius);
}

.favorite-btn:hover {
  transform: scale(1.1);
  background-color: var(--bg-subtle);
}

.favorite-btn.active {
  color: #ef4444;
}

.comparison-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  cursor: pointer;
}

/* Modern Comparison Tray */
.comparison-tray {
  background-color: var(--bg-subtle);
  padding: var(--space-6);
  border-radius: var(--border-radius-lg);
  margin-top: var(--space-12);
  border: 1px solid var(--border-light);
}

.comparison-tray h3 {
  margin-bottom: var(--space-4);
  color: var(--text-color);
}

.comparison-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.comparison-item {
  background-color: var(--bg-color);
  padding: var(--space-4);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
}

.comparison-stats div {
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
}

/* Modern Quiz Section */
.quiz-section {
  background-color: var(--bg-subtle);
  padding: var(--space-20) 0;
}

.quiz-section h2 {
  text-align: center;
  margin-bottom: var(--space-12);
  color: var(--text-color);
}

.quiz-container {
  max-width: 700px;
  margin: 0 auto;
}

.quiz-question {
  background-color: var(--bg-color);
  padding: var(--space-8);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: var(--space-6);
}

.quiz-progress {
  margin-bottom: var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.progress-bar {
  background-color: var(--bg-subtle);
  height: 4px;
  border-radius: 2px;
  margin-top: var(--space-2);
  overflow: hidden;
}

.progress-fill {
  background-color: var(--primary-color);
  height: 100%;
  transition: width 0.3s ease;
}

.quiz-question h3 {
  color: var(--text-color);
  margin-bottom: var(--space-6);
}

.quiz-options {
  display: grid;
  gap: var(--space-3);
}

.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: var(--space-4);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: var(--font-size-base);
  color: var(--text-color);
}

.quiz-option:hover {
  border-color: var(--primary-color);
  background-color: var(--bg-color);
}

.quiz-option.selected {
  background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.quiz-result {
  background-color: var(--bg-color);
  padding: var(--space-8);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-light);
  text-align: center;
}

.quiz-recommendations {
  display: grid;
  gap: var(--space-6);
  margin: var(--space-8) 0;
  text-align: left;
}

.quiz-recommendation {
  background-color: var(--bg-subtle);
  padding: var(--space-6);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.quiz-recommendation img {
  border-radius: var(--border-radius);
}

/* Clean Dog Fact Section */
.dog-fact-section {
  padding: var(--space-16) 0;
}

.dog-fact-card {
  background: linear-gradient(135deg, var(--accent-color), #059669, var(--primary-color));
  color: white;
  padding: var(--space-8);
  border-radius: var(--border-radius-lg);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 8px 25px rgba(6, 214, 160, 0.3);
  position: relative;
  overflow: hidden;
}

.dog-fact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

.dog-fact-card h3 {
  margin-bottom: var(--space-4);
  color: white;
}

.dog-fact-card p {
  margin-bottom: var(--space-6);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
}

/* Modern Tips Section */
.tips-section {
  padding: var(--space-20) 0;
}

.tips-section h2 {
  text-align: center;
  margin-bottom: var(--space-12);
  color: var(--text-color);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.tip-card {
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-subtle) 100%);
  padding: var(--space-6);
  border-radius: var(--border-radius-lg);
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.tip-card:nth-child(1)::before {
  background: linear-gradient(90deg, var(--accent-color), #059669);
}

.tip-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--purple-color), #7c3aed);
}

.tip-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--secondary-color), #ea580c);
}

.tip-card:nth-child(4)::before {
  background: linear-gradient(90deg, var(--pink-color), #db2777);
}

.tip-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary-color);
}

.tip-card h3 {
  color: var(--text-color);
  margin-bottom: var(--space-3);
  font-size: var(--font-size-lg);
}

.tip-card p {
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

/* Clean Gallery Section */
.gallery-section {
  background-color: var(--bg-subtle);
  padding: var(--space-20) 0;
}

.gallery-section h2 {
  text-align: center;
  margin-bottom: var(--space-12);
  color: var(--text-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.gallery-item {
  position: relative;
  cursor: pointer;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  font-weight: 600;
  font-size: var(--font-size-lg);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Modern Testimonials */
.testimonials-section {
  padding: var(--space-20) 0;
}

.testimonials-section h2 {
  text-align: center;
  margin-bottom: var(--space-12);
  color: var(--text-color);
}

.testimonials-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-8);
}

.testimonial-card {
  background-color: var(--bg-color);
  padding: var(--space-8);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-light);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary-color);
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
  line-height: 1;
  opacity: 0.3;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: var(--space-6);
  padding-left: var(--space-8);
  color: var(--text-muted);
  font-size: var(--font-size-lg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* Modern Contact Form */
.contact-section {
  background-color: var(--bg-subtle);
  padding: var(--space-20) 0;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: var(--space-12);
  color: var(--text-color);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--bg-color);
  padding: var(--space-8);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  color: var(--text-color);
  font-size: var(--font-size-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
  font-family: var(--font-family);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--font-size-sm);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.error-message {
  color: #ef4444;
  font-size: var(--font-size-sm);
  margin-top: var(--space-2);
  display: none;
}

.error-message.show {
  display: block;
}

.success-message {
  background-color: var(--accent-color);
  color: white;
  padding: var(--space-4);
  border-radius: var(--border-radius);
  text-align: center;
  margin-top: var(--space-6);
}

/* Modern Footer */
.footer {
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-section h3 {
  margin-bottom: var(--space-4);
  color: var(--bg-color);
  font-size: var(--font-size-lg);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--space-2);
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--bg-color);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: var(--space-4);
}

.social-links a {
  font-size: var(--font-size-xl);
  transition: var(--transition);
}

.social-links a:hover {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
}

/* Modern Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 50;
  overflow-y: auto;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal-content {
  background-color: var(--bg-color);
  border-radius: var(--border-radius-lg);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.breed-modal-content {
  max-width: 800px;
  width: 100%;
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  font-size: var(--font-size-xl);
  cursor: pointer;
  color: var(--text-color);
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: var(--bg-muted);
}

.modal-body {
  padding: var(--space-8);
}

/* Breed Details Modal Styles */
.breed-details {
  max-width: none;
}

.breed-header {
  margin-bottom: var(--space-8);
}


.breed-basic-info h2 {
  margin-bottom: var(--space-2);
  color: var(--text-color);
}

.breed-origin {
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.breed-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.stat {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.breed-description {
  margin-bottom: var(--space-8);
}

.breed-description h3 {
  margin-bottom: var(--space-4);
  color: var(--text-color);
}

.breed-care {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.care-section h4 {
  margin-bottom: var(--space-2);
  color: var(--text-color);
  font-size: var(--font-size-base);
}

.care-section p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.breed-temperament {
  margin-bottom: var(--space-8);
}

.temperament-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.temperament-tag {
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-right: var(--space-2);
  margin-bottom: var(--space-2);
}

.temperament-tag:nth-child(1) {
  background: linear-gradient(135deg, var(--accent-color), #059669);
}

.temperament-tag:nth-child(2) {
  background: linear-gradient(135deg, var(--purple-color), #7c3aed);
}

.temperament-tag:nth-child(3) {
  background: linear-gradient(135deg, var(--pink-color), #db2777);
}

.temperament-tag:nth-child(4) {
  background: linear-gradient(135deg, var(--warning-color), #ca8a04);
}

.temperament-tag:nth-child(5) {
  background: linear-gradient(135deg, var(--secondary-color), #ea580c);
}

.breed-actions-modal {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Modern Favorites Panel */
.favorites-panel {
  position: fixed;
  top: 80px;
  right: 0;
  width: 350px;
  height: calc(100vh - 80px);
  background-color: var(--bg-color);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  z-index: 40;
  transform: translateX(100%);
  transition: var(--transition);
  overflow-y: auto;
}

.favorites-panel.show {
  transform: translateX(0);
}

.favorites-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-light);
  background-color: var(--bg-subtle);
}

.favorites-header h3 {
  color: var(--text-color);
  margin: 0;
}

.favorites-header button {
  background: none;
  border: none;
  font-size: var(--font-size-xl);
  cursor: pointer;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.favorites-header button:hover {
  background-color: var(--bg-muted);
  color: var(--text-color);
}

.favorites-content {
  padding: var(--space-6);
}

.favorite-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-4);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.favorite-item:hover {
  background-color: var(--bg-muted);
}

.favorite-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.favorite-info h4 {
  margin-bottom: var(--space-1);
  color: var(--text-color);
  font-size: var(--font-size-sm);
}

.favorite-info p {
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  margin-bottom: var(--space-2);
}

/* No results state */
.no-results {
  text-align: center;
  padding: var(--space-12);
  color: var(--text-muted);
  font-size: var(--font-size-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  .header-content {
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-3) 0;
  }
  
  .nav-list {
    gap: var(--space-6);
  }
  
  .hero {
    padding: var(--space-16) 0 var(--space-12);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 200px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
  
  .search-filters {
    gap: var(--space-4);
  }
  
  .filters {
    flex-direction: column;
  }
  
  .breed-grid {
    grid-template-columns: 1fr;
  }
  
  .breed-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .breed-care {
    grid-template-columns: 1fr;
  }
  
  .favorites-panel {
    width: 100%;
    top: 0;
    height: 100vh;
  }
  
  .modal-content {
    max-width: 95vw;
    margin: var(--space-4);
  }
  
  .testimonials-carousel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .breed-actions {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .breed-actions-modal {
    flex-direction: column;
  }
  
  .comparison-content {
    grid-template-columns: 1fr;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero::before {
    animation: none;
  }
}

/* Focus styles for better accessibility */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  [data-theme="dark"] {
    --border-color: #FFFFFF;
  }
}