/* Pawper - Shared Styles */

:root {
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --secondary: #3b82f6;
  --secondary-dark: #2563eb;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --bg-light: #f9fafb;
  --bg-warm: #fffbeb;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --danger: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-light);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--secondary);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.125rem;
}

/* Warning Banner */
.warning-banner {
  background: var(--danger);
  color: white;
  padding: 12px 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* Stats Section */
.stats {
  background: white;
  padding: 60px 24px;
}

.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-item p {
  color: var(--text-light);
  font-size: 14px;
}

/* Pet Cards (shared between index and browse) */
.pets-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.pet-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.pet-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.pet-card.selected {
  border: 3px solid var(--secondary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.pet-card .rent-btn {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border-radius: 8px;
}

.pet-card:hover .rent-btn {
  opacity: 1;
  transform: translateY(0);
}

.pet-card .rent-btn:hover {
  background: var(--secondary);
}

.pet-card.selected .rent-btn {
  background: var(--secondary);
  opacity: 1;
  transform: translateY(0);
}

.pet-card.selected .rent-btn::before {
  content: '✓ ';
}

.pet-image {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  overflow: hidden;
}

.pet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pet-info {
  padding: 20px;
}

.pet-info h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pet-type {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
}

.pet-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pet-price {
  font-weight: 700;
  color: var(--primary);
}

.pet-rating {
  color: var(--text-light);
  font-size: 14px;
}

/* Pet Tags */
.pet-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pet-tag {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-light);
  color: var(--text-light);
}

.pet-tag.species-dog { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.pet-tag.species-cat { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.pet-tag.species-rabbit { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.pet-tag.species-bird { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.pet-tag.species-reptile { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.pet-tag.caffeine-high { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* Categories */
.categories {
  padding: 100px 24px;
  background: var(--bg-light);
}

.categories-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.category-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
}

.category-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
}

.category-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.category-card p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.price-tag {
  display: inline-block;
  background: var(--bg-warm);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* Features Section */
.features {
  padding: 100px 24px;
  background: var(--secondary);
}

.features .section-header h2 {
  color: white;
}

.features .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

.features-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* Testimonials */
.testimonials {
  padding: 100px 24px;
  background: var(--bg-warm);
}

.testimonials-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary);
}

.testimonial-quote {
  font-size: 1.125rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-weight: 600;
  color: var(--text-dark);
}

.author-info p {
  font-size: 14px;
  color: var(--text-light);
}

/* Lawsuit Counter */
.lawsuit-counter {
  padding: 60px 24px;
  background: var(--text-dark);
  text-align: center;
}

.counter-grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.counter-item h3 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.counter-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* CTA Section */
.cta-section {
  padding: 100px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

.cta-section .btn {
  background: var(--secondary);
  color: white;
}

.cta-section .btn:hover {
  background: var(--secondary-dark);
}

/* Loading State */
.loading {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  color: var(--text-dark);
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .pets-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .counter-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .categories-grid,
  .testimonials-grid,
  .features-grid,
  .pets-grid {
    grid-template-columns: 1fr;
  }

  .counter-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }
}
