/* Dedicated Dog Breeds page styles.
   Loaded after the main stylesheet so this page cannot fall back to browser defaults. */

.breed-page {
  width: min(1220px, 94vw);
  margin: 0 auto;
  padding: 130px 0 80px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 30px;
}

.breed-sidebar {
  align-self: start;
  position: sticky;
  top: 112px;
}

.breed-sidebar-inner {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  backdrop-filter: blur(14px);
}

.breed-sidebar h1 {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 12px;
}

.breed-sidebar p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.breed-quiz-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  color: white;
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255, 183, 165, 0.28), rgba(191, 168, 255, 0.24));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
  transition: 0.18s ease;
}

.breed-quiz-link:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255, 183, 165, 0.38), rgba(191, 168, 255, 0.34));
}

.breed-search-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

.breed-search {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  outline: none;
  background: rgba(255,255,255,0.08);
  color: white;
  font: inherit;
}

.breed-counter {
  margin: 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.86rem;
}

.breed-controls {
  margin: 12px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.breed-menu {
  display: grid;
  gap: 7px;
  max-height: 45vh;
  overflow: auto;
  padding-right: 4px;
}

.breed-menu a {
  display: block;
  padding: 10px 11px;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  background: rgba(255,255,255,0.05);
  border: 1px solid transparent;
  font-size: 0.92rem;
}

.breed-menu a:hover,
.breed-menu a.active {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.14);
}

.breed-action {
  width: auto;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  color: #08080d;
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.breed-results {
  display: grid;
  gap: 24px;
}

.breed-card {
  min-height: 340px;
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 34px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.13), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  scroll-margin-top: 126px;
  cursor: pointer;
}

.breed-card.reveal {
  opacity: 1;
  transform: none;
}

.breed-card:focus-visible {
  outline: 3px solid rgba(255, 215, 112, 0.75);
  outline-offset: 4px;
}

.breed-card-copy {
  min-width: 0;
}

.breed-card[hidden] {
  display: none;
}

.breed-favorite {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  opacity: 0.48;
  cursor: pointer;
  font-size: 1.15rem;
  transition: 0.18s ease;
}

.breed-favorite.active,
.breed-favorite:hover {
  opacity: 1;
  transform: scale(1.08);
  background: rgba(255, 215, 112, 0.22);
  box-shadow: 0 0 20px rgba(255, 215, 112, 0.24);
}

.breed-portrait {
  width: 160px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.35), transparent 35%),
    linear-gradient(135deg, #ffb7a5, #bfa8ff);
  font-size: 4.5rem;
  box-shadow: inset 0 0 40px rgba(255,255,255,0.15), 0 18px 45px rgba(0,0,0,0.28);
}

.breed-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.breed-kicker {
  margin-bottom: 10px;
  color: rgba(255,255,255,0.62);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 800;
}

.breed-card h2 {
  font-size: 2.7rem;
  margin-bottom: 12px;
  background: linear-gradient(90deg,#ffb7a5,#bfa8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.breed-card p {
  max-width: 620px;
}

.breed-dropdown-hint {
  margin-top: 14px;
  color: rgba(255,255,255,0.52);
  font-size: 0.82rem;
  font-weight: 800;
}

.breed-dropdown-hint::after {
  content: " +";
}

.breed-card.expanded .breed-dropdown-hint::after {
  content: " -";
}

.breed-details {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  opacity: 0;
  color: rgba(255,255,255,0.76);
  transition: max-height 0.28s ease, margin-top 0.28s ease, opacity 0.2s ease;
}

.breed-card.expanded .breed-details {
  max-height: 180px;
  margin-top: 12px;
  opacity: 1;
}

.breed-meter {
  height: 10px;
  margin: 22px 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.breed-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#ffb7a5,#bfa8ff);
}

.breed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breed-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
}

@media (max-width: 820px) {
  .breed-page {
    width: min(100vw - 20px, 720px);
    grid-template-columns: 1fr;
    padding-top: 105px;
  }

  .breed-sidebar {
    position: relative;
    top: auto;
  }

  .breed-menu {
    max-height: 260px;
  }

  .breed-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .breed-action {
    width: 100%;
  }

  .breed-card {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 28px 22px;
    text-align: center;
  }

  .breed-portrait {
    width: min(150px, 55vw);
    justify-self: center;
  }

  .breed-card h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .breed-card p {
    margin: 0 auto;
  }

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