/**
 * Breed Archive & Single Styles - Petland Largo Florida 2025
 * ONLY loaded on breed archive and single pages
 *
 * Sections:
 * 1. Archive Page Styles
 * 2. Breed Card Component
 * 3. Single Breed Page
 * 4. Breed Ratings
 * 5. Contact Form
 * 6. Available Puppies Section
 * 7. Responsive Design
 */

/* ========================================
   1. ARCHIVE PAGE STYLES
   ======================================== */

.breeds-archive {
  background: var(--muted);
  min-height: calc(100vh - 200px);
  padding: 40px 0 80px;
}

.breeds-archive__header {
  padding: 0 0 20px;
  margin-bottom: 32px;
}

.breeds-archive__breadcrumbs {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 16px;
}

.breeds-archive__breadcrumbs a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.breeds-archive__breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breeds-archive__breadcrumbs .separator {
  margin: 0 8px;
  color: #999;
}

.breeds-archive__title {
  color: var(--ink);
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.breeds-archive__subtitle {
  color: var(--dark-gray);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 800px;
}

/* Filter Bar */
.breeds-archive__filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}

.breeds-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 200px;
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-label i {
  color: var(--primary);
  font-size: 1rem;
}

.breeds-search-input,
.breeds-filter-select {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.breeds-search-input:focus,
.breeds-filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 82, 36, 0.1);
}

.breeds-filter-reset {
  padding: 10px 20px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--dark-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: flex-end;
  transition: all 0.2s;
}

.breeds-filter-reset:hover {
  background: var(--muted);
  border-color: var(--primary);
  color: var(--primary);
}

/* Results Counter */
.breeds-archive__results {
  margin-bottom: 20px;
}

.results-count {
  font-size: 1rem;
  color: var(--dark-gray);
  margin: 0;
}

.results-count strong {
  color: var(--ink);
  font-weight: 700;
}

/* ========================================
   2. BREED CARD COMPONENT
   ======================================== */

.breeds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.breed-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.breed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.breed-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.breed-card__image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--muted);
}

.breed-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.breed-card:hover .breed-card__img {
  transform: scale(1.05);
}

.breed-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--muted) 0%, #e0e0e0 100%);
  color: #999;
  font-size: 3rem;
}

.breed-card__type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.95);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.breed-card__content {
  padding: 20px;
}

.breed-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.breed-card__excerpt {
  font-size: 0.9375rem;
  color: var(--dark-gray);
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.breed-card__stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 16px;
}

.breed-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.breed-stat i {
  color: var(--primary);
  font-size: 1rem;
}

.breed-stat__label {
  color: var(--dark-gray);
  font-weight: 600;
}

.breed-stat__value {
  color: var(--ink);
  font-weight: 700;
}

.breed-card__action {
  margin-top: 16px;
}

.breed-card__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.2s;
  width: 100%;
  justify-content: center;
}

.breed-card:hover .breed-card__button {
  background: var(--primary-dark);
}

/* No Results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 8px;
}

.no-results i {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 16px;
}

.no-results h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.no-results p {
  font-size: 1rem;
  color: var(--dark-gray);
  margin: 0;
}

/* Pagination */
.breeds-pagination-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.breeds-pagination-wrapper nav {
  width: 100%;
  display: flex;
  justify-content: center;
}

.breeds-pagination-wrapper .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  align-items: center;
}

.breeds-pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.breeds-pagination-wrapper .page-numbers:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.breeds-pagination-wrapper .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  cursor: default;
}

.breeds-pagination-wrapper .page-numbers.dots {
  border: none;
  background: transparent;
  cursor: default;
}

.breeds-pagination-wrapper .page-numbers.dots:hover {
  background: transparent;
  color: var(--ink);
}

.breeds-pagination-wrapper .page-numbers.prev,
.breeds-pagination-wrapper .page-numbers.next {
  font-weight: 600;
}

.breeds-pagination-wrapper .page-numbers i {
  font-size: 0.875rem;
}

/* ========================================
   3. SINGLE BREED PAGE
   ======================================== */

.breed-single {
  background: var(--muted);
  min-height: calc(100vh - 200px);
}

/* Hero Section */
.breed-hero {
  background: white;
  padding: 40px 0;
  border-bottom: 1px solid #eee;
}

.breed-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.breed-hero__image-wrapper {
  position: relative;
}

.breed-hero__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.breed-hero__placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--muted) 0%, #e0e0e0 100%);
  border-radius: 12px;
  color: #999;
  font-size: 5rem;
}

.breed-hero__video-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breed-hero__video-badge i {
  font-size: 1.25rem;
}

.breed-breadcrumbs {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 16px;
}

.breed-breadcrumbs a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.breed-breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breed-breadcrumbs .separator {
  margin: 0 8px;
  color: #999;
}

.breed-hero__type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 82, 36, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.breed-hero__title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.breed-hero__subtitle {
  font-size: 1.125rem;
  color: var(--dark-gray);
  line-height: 1.6;
  margin: 0 0 32px;
}

/* Quick Facts */
.breed-quick-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.breed-quick-fact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--muted);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.breed-quick-fact i {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.fact-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fact-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fact-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

/* Content Wrapper */
.breed-content-wrapper {
  padding: 40px 0 80px;
}

.breed-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

/* Main Content */
.breed-main-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.breed-section {
  background: white;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.breed-section__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.breed-section__title i {
  color: var(--primary);
  font-size: 1.5rem;
}

/* ========================================
   4. BREED RATINGS
   ======================================== */

.breed-ratings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.breed-rating-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breed-rating-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breed-rating-header i {
  color: var(--primary);
  font-size: 1.125rem;
}

.breed-rating-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.breed-rating-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.breed-rating-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.breed-rating-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark-gray);
}

/* Description */
.breed-description-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
}

.breed-description-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 16px;
}

.breed-description-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 12px;
}

.breed-description-content p {
  margin: 0 0 16px;
}

.breed-description-content ul,
.breed-description-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.breed-description-content li {
  margin-bottom: 8px;
}

/* Enhanced styling for FAQ and Fact sections */
.breed-description-content h2 b,
.breed-description-content h2 strong {
  color: var(--ink);
}

/* Style paragraphs in FAQ sections (bold questions) */
.breed-description-content > p > b:first-child,
.breed-description-content > p > strong:first-child {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 4px;
}

/* Add extra spacing between FAQ items */
.breed-description-content > p {
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Style for spans that contain answers (less bold text) */
.breed-description-content > p > span {
  display: block;
  margin-top: 8px;
  padding-left: 20px;
  border-left: 3px solid var(--muted);
  padding-top: 4px;
  padding-bottom: 4px;
}

/* Video Section */
.breed-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.breed-video-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========================================
   5. CONTACT FORM
   ======================================== */

.breed-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.breed-contact-card {
  background: white;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-top: 4px solid var(--primary);
}

.breed-contact-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breed-contact-title i {
  color: var(--primary);
}

.breed-contact-subtitle {
  font-size: 0.9375rem;
  color: var(--dark-gray);
  line-height: 1.6;
  margin: 0 0 24px;
}

/* Form Styles */
.breed-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.breed-form .form-group {
  margin-bottom: 20px;
}

.breed-form .form-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.breed-form .required {
  color: var(--primary);
}

.breed-form .form-input,
.breed-form .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.breed-form .form-input:focus,
.breed-form .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 82, 36, 0.1);
}

.breed-form .form-input.error,
.breed-form .form-textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.breed-form .form-textarea {
  min-height: 100px;
  resize: vertical;
}

.breed-form .form-checkbox-group {
  margin-bottom: 20px;
}

.breed-form .form-checkbox-wrapper {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.breed-form .form-checkbox {
  margin-top: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.breed-form .form-checkbox-label {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--dark-gray);
  cursor: pointer;
}

.breed-form .consent-text-full {
  display: none;
}

.breed-form .form-checkbox-label.expanded .consent-text-short {
  display: none;
}

.breed-form .form-checkbox-label.expanded .consent-text-full {
  display: inline;
}

.breed-form .consent-read-more {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  user-select: none;
}

.breed-form .consent-read-more:hover {
  color: var(--primary-dark);
}

.breed-form .btn-submit-form {
  width: 100%;
  padding: 14px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.breed-form .btn-submit-form:hover {
  background: var(--primary-dark);
}

.breed-form .btn-submit-form:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Alert Messages */
.breed-alert {
  padding: 16px;
  border-radius: 4px;
  margin: 16px 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.breed-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.breed-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* CTA Card */
.breed-cta-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(212, 82, 36, 0.2);
  color: white;
}

.breed-cta-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breed-cta-card p {
  font-size: 0.9375rem;
  opacity: 0.95;
  margin: 0 0 20px;
}

.btn-call-now,
.btn-visit-store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: white;
  color: var(--primary);
  border: none;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  margin-bottom: 12px;
}

.btn-call-now:hover,
.btn-visit-store:hover {
  background: var(--muted);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-visit-store {
  background: transparent;
  color: white;
  border: 2px solid white;
  margin-bottom: 0;
}

.btn-visit-store:hover {
  background: white;
  color: var(--primary);
}

/* ========================================
   6. AVAILABLE PUPPIES SECTION
   ======================================== */

.breed-puppies-subtitle {
  font-size: 1rem;
  color: var(--dark-gray);
  line-height: 1.6;
  margin: 0 0 32px;
}

.breed-puppies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.breed-puppies-cta {
  text-align: center;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.btn-view-all-puppies {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--primary);
  color: white;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-view-all-puppies:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 82, 36, 0.3);
}

/* ========================================
   7. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
  /* Archive */
  .breeds-archive__title {
    font-size: 2rem;
  }

  .breeds-archive__filters {
    flex-direction: column;
  }

  .breeds-filter-group {
    min-width: 100%;
  }

  .breeds-filter-reset {
    align-self: stretch;
  }

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

  /* Single Breed */
  .breed-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .breed-hero__title {
    font-size: 2.25rem;
  }

  .breed-quick-facts {
    grid-template-columns: 1fr;
  }

  .breed-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .breed-sidebar {
    position: static;
  }

  .breed-ratings-grid {
    grid-template-columns: 1fr;
  }

  .breed-puppies-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Archive */
  .breeds-archive {
    padding: 24px 0 60px;
  }

  .breeds-archive__title {
    font-size: 1.75rem;
  }

  .breeds-grid {
    grid-template-columns: 1fr;
  }

  .breed-card__image {
    height: 200px;
  }

  /* Single Breed */
  .breed-hero {
    padding: 24px 0;
  }

  .breed-hero__title {
    font-size: 1.875rem;
  }

  .breed-section {
    padding: 24px;
  }

  .breed-section__title {
    font-size: 1.5rem;
  }

  .breed-contact-card {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .breeds-archive__title {
    font-size: 1.5rem;
  }

  .breed-hero__title {
    font-size: 1.625rem;
  }

  .breed-card__title {
    font-size: 1.25rem;
  }

  .breed-section__title {
    font-size: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Stack form row on mobile */
  .breed-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Pagination on mobile */
  .breeds-pagination-wrapper .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.875rem;
  }

  .breeds-pagination-wrapper .page-numbers.prev,
  .breeds-pagination-wrapper .page-numbers.next {
    padding: 0 10px;
  }

  .breeds-pagination-wrapper .pagination {
    gap: 6px;
  }
}
