/* ==========================================================================
   Wags About You — breeds.css (WC Puppy Breeds integration)
   Loaded on the breed directory, /breed/ archive and single breed pages.
   1 Directory toolbar (plugin shortcode markup) · 2 Breed tiles · 3 Breed page summary
   4 Breed page about / traits / video / tabs · 5 Similar breeds
   ========================================================================== */

/* 1. Directory toolbar ------------------------------------------------- */
.breeds-page__content { max-width: 52rem; margin: 0 auto 2rem; text-align: center; }
.breeds-page__live { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; margin: 0 0 1.5rem; font-weight: 600; color: var(--wags-primary); }
.breeds-page__live .btn-link { font-weight: 800; color: var(--wags-secondary-dark); text-decoration: underline; }

.pb-breeds-listing__container { max-width: none; }
.pb-search-wrap { position: relative; max-width: 40rem; margin: 0 auto 1.25rem; }
.pb-search-icon { position: absolute; left: 1.25rem; top: 50%; width: 1.1rem; height: 1.1rem; transform: translateY(-50%); color: rgba(24, 55, 73, 0.6); pointer-events: none; z-index: 1; }
.pb-search-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pb-search-input-wrap { position: relative; }
.pb-search-input { width: 100%; height: 3.5rem; padding: 0 3rem 0 3.25rem; border: 1px solid var(--wags-muted); border-radius: 1rem; background: #fff; font: inherit; font-size: 1.05rem; box-shadow: var(--ui-shadow-sm); }
.pb-search-input:focus { outline: 0; border-color: var(--wags-secondary); box-shadow: 0 0 0 3px rgba(34, 196, 221, 0.25); }
.pb-search-clear { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: var(--wags-muted-soft); color: var(--wags-primary); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.pb-search-clear.pb-hidden, .pb-search-autocomplete, .pb-hidden { display: none !important; }

.pb-popular-breeds { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.pb-popular-breeds__label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--wags-secondary-dark); }
.pb-popular-breeds__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.pb-popular-breeds__pill { border: 1px solid var(--wags-muted); border-radius: 999px; background: #fff; padding: 0.4rem 0.9rem; font-size: 0.85rem; font-weight: 700; color: var(--wags-primary); cursor: pointer; transition: background var(--ui-transition), border-color var(--ui-transition); }
.pb-popular-breeds__pill:hover, .pb-popular-breeds__pill.is-active { background: var(--wags-secondary); border-color: var(--wags-secondary); }

.pb-filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; margin-bottom: 1.25rem; }
.pb-filter-bar__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; height: 2.4rem; padding: 0 0.6rem; border: 1px solid var(--wags-muted); border-radius: 999px; background: #fff; font-weight: 800; font-size: 0.85rem; color: var(--wags-primary); cursor: pointer; transition: background var(--ui-transition), border-color var(--ui-transition), opacity var(--ui-transition); }
.pb-filter-bar__btn:hover, .pb-filter-bar__btn--active { background: var(--wags-secondary); border-color: var(--wags-secondary); }
.pb-filter-bar__btn:disabled { opacity: 0.35; cursor: default; background: #fff; border-color: var(--wags-muted); }

.pb-filter-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; margin-bottom: 1rem; }
.pb-filter-controls__group { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--wags-primary); }
.pb-sort-select { height: 2.6rem; padding: 0 2.25rem 0 0.9rem; border: 1px solid var(--wags-muted); border-radius: 0.75rem; background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23183749'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e") no-repeat right 0.75rem center / 0.8rem; font: inherit; font-weight: 600; color: var(--wags-primary); appearance: none; }
.pb-availability-toggle { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--wags-primary); cursor: pointer; }
.pb-availability-toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--wags-secondary-dark); }

.pb-breeds-count { text-align: center; font-size: 0.9rem; color: var(--bs-secondary-color); margin-bottom: 1.5rem; }
.pb-breeds-count__visible { font-weight: 800; color: var(--wags-primary); }

.pb-breeds-listing__grid, .breeds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 576px) { .pb-breeds-listing__grid, .breeds-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 992px) { .pb-breeds-listing__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .breeds-grid--similar { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .pb-breeds-listing__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pb-text-center { text-align: center; }
.breeds-directory__empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--bs-secondary-color); }

/* 2. Breed tiles ------------------------------------------------------- */
.breed-tile { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--wags-muted); border-radius: 1.25rem; overflow: hidden; box-shadow: var(--ui-shadow-sm); transition: transform var(--ui-transition), box-shadow var(--ui-transition), border-color var(--ui-transition); }
.breed-tile:hover, .breed-tile:focus-within { transform: translateY(-3px); box-shadow: var(--ui-shadow-lift); border-color: rgba(34, 196, 221, 0.5); }
.breed-tile.is-hidden { display: none; }
.breed-tile__media { display: block; position: relative; aspect-ratio: 4 / 3; background: var(--wags-muted-soft); overflow: hidden; }
.breed-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.breed-tile:hover .breed-tile__media img { transform: scale(1.05); }
.breed-tile__pill { position: absolute; left: 0.75rem; top: 0.75rem; padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; background: var(--wags-secondary); color: var(--wags-primary); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.breed-tile__pill--live::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; margin-right: 0.35rem; border-radius: 50%; background: var(--wags-primary); animation: breed-pulse 1.6s ease-in-out infinite; }
.breed-tile__body { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.9rem 1rem 1rem; }
.breed-tile__title { font-size: 1.02rem; font-weight: 800; margin: 0; line-height: 1.25; }
.breed-tile__title a { color: var(--wags-primary); text-decoration: none; }
.breed-tile__facts { margin: 0; font-size: 0.82rem; color: var(--bs-secondary-color); }
.breed-tile__cta { margin-top: auto; padding-top: 0.35rem; font-size: 0.82rem; font-weight: 800; color: var(--wags-secondary-dark); }
.breed-tile__cta .wags-icon { transition: transform var(--ui-transition); }
.breed-tile:hover .breed-tile__cta .wags-icon { transform: translateX(3px); }
@keyframes breed-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* 3. Breed page summary card (overlaps the hero) --------------------- */
.breed-summary { position: relative; z-index: 2; margin-top: -2.25rem; }
.breed-summary__card { display: grid; gap: 1.25rem; padding: 1.5rem; background: #fff; border-radius: var(--wags-radius); box-shadow: var(--ui-shadow-lift); border: 1px solid var(--wags-muted); }
@media (min-width: 992px) { .breed-summary__card { grid-template-columns: 1.2fr auto auto; align-items: center; padding: 1.5rem 2rem; } }
.breed-summary__status { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; line-height: 1.35; }
.breed-summary__status strong { color: var(--wags-primary); font-size: 1.05rem; }
.breed-summary__dot { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #2fb37b; box-shadow: 0 0 0 4px rgba(47, 179, 123, 0.18); animation: breed-pulse 1.8s ease-in-out infinite; }
.breed-summary__status.is-waiting .breed-summary__dot { background: #e0a53a; box-shadow: 0 0 0 4px rgba(224, 165, 58, 0.18); animation: none; }
.breed-summary__facts { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin: 0; }
.breed-summary__facts dt { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--wags-secondary-dark); }
.breed-summary__facts dd { margin: 0; font-weight: 800; color: var(--wags-primary); }
.breed-summary__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
@media (max-width: 575.98px) { .breed-summary__actions .btn { flex: 1 1 100%; } }

/* 4. About / traits / video / tabs ----------------------------------- */
.breed-about__aside { display: grid; gap: 1.5rem; }
@media (min-width: 992px) { .breed-about__aside { position: sticky; top: 6rem; } }
.breed-about__figure { margin: 0; border-radius: var(--wags-radius); overflow: hidden; box-shadow: var(--ui-shadow-sm); background: var(--wags-muted-soft); }
.breed-about__figure img { width: 100%; height: auto; display: block; }
.breed-content { font-size: 1.05rem; line-height: 1.75; }
.breed-content > :last-child { margin-bottom: 0; }

.breed-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--wags-radius); overflow: hidden; background: var(--wags-primary); box-shadow: var(--ui-shadow-sm); }
.breed-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.breed-video__poster { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; border: 0; background: var(--wags-primary) center / cover no-repeat; color: #fff; cursor: pointer; }
.breed-video__poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(24, 55, 73, 0.85), rgba(24, 55, 73, 0.15)); }
.breed-video__play { position: relative; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--wags-secondary); color: var(--wags-primary); font-size: 1.5rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); transition: transform var(--ui-transition); }
.breed-video__poster:hover .breed-video__play { transform: scale(1.08); }
.breed-video__label { position: relative; font-weight: 800; }

.breed-traits { padding: 1.5rem; background: #fff; border: 1px solid var(--wags-muted); border-radius: var(--wags-radius); box-shadow: var(--ui-shadow-sm); }
.breed-traits__title { margin-bottom: 1rem; }
.breed-trait { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 0.5rem 0; border-top: 1px solid var(--wags-muted-soft); }
.breed-trait__label { font-weight: 600; font-size: 0.95rem; color: var(--wags-primary); }
.breed-trait__bar { display: inline-flex; gap: 0.3rem; }
.breed-trait__bar i { display: block; width: 1.1rem; height: 0.55rem; border-radius: 999px; background: var(--wags-muted); }
.breed-trait__bar i.is-on { background: var(--wags-secondary); }
.breed-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0; }
.breed-tags li { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--wags-muted-soft); font-size: 0.82rem; font-weight: 700; color: var(--wags-primary); }
.breed-tags .wags-icon { color: var(--wags-secondary-dark); }

.breed-tabs { margin-top: 2.5rem; }
.breed-tabs__nav { gap: 0.5rem; margin-bottom: 1.25rem; }
.breed-tabs__nav .nav-link { border: 1px solid var(--wags-muted); border-radius: 999px; background: #fff; padding: 0.55rem 1.1rem; font-weight: 700; color: var(--wags-primary); }
.breed-tabs__nav .nav-link:hover { border-color: var(--wags-secondary); }
.breed-tabs__nav .nav-link.active { background: var(--wags-primary); border-color: var(--wags-primary); color: #fff; }
.breed-tabs__content { padding: 1.5rem; background: #fff; border: 1px solid var(--wags-muted); border-radius: var(--wags-radius); box-shadow: var(--ui-shadow-sm); line-height: 1.75; }
.breed-tabs__content > .tab-pane > :last-child { margin-bottom: 0; }

.breed-faq .faq__inner { max-width: 52rem; margin-inline: auto; }

/* 5. Similar breeds ---------------------------------------------------- */
.breed-similar .breeds-grid { gap: 1.25rem; }

/* 6. Breeds on area pages --------------------------------------------- */
.area-breeds__list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; }
.area-breeds__chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--wags-muted); font-weight: 800; color: var(--wags-primary); text-decoration: none; transition: transform var(--ui-transition), border-color var(--ui-transition), box-shadow var(--ui-transition); }
.area-breeds__chip:hover { transform: translateY(-2px); border-color: var(--wags-secondary); box-shadow: var(--ui-shadow-sm); color: var(--wags-primary); }
.area-breeds__chip.is-live { border-color: rgba(34, 196, 221, 0.6); }
.area-breeds__count { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--wags-secondary); color: var(--wags-primary); }
.area-breed-about .breed-about__figure { border-radius: var(--wags-radius); overflow: hidden; }
