/* ════════════════════════════════════════════════════════════════════
   breeds.css — Breeds hub page styles
   ────────────────────────────────────────────────────────────────────
   Loaded ALONGSIDE main style.css.
   Uses tokens from style.css (--primary, --gray-*, --radius-*, etc.).
   ════════════════════════════════════════════════════════════════════ */


/* ════════════════════════════════════════════════════════════════════
   1. HERO — Text-only with subtle gradient + decorative paws
   ════════════════════════════════════════════════════════════════════ */
.breeds-hero {
    position: relative;
    padding: 50px 0 60px;
    background:
        radial-gradient(ellipse 800px 400px at 50% 0%, var(--primary-50) 0%, transparent 60%),
        linear-gradient(180deg, #fff 0%, var(--bg-section) 100%);
    overflow: hidden;
    isolation: isolate;
}

/* Decorative paw prints — subtle, blue tinted */
.breeds-hero-paw {
    position: absolute;
    color: var(--primary);
    opacity: 0.06;
    z-index: 0;
    pointer-events: none;
}
.breeds-hero-paw-1 {
    top: 20%;
    right: 8%;
    font-size: 7rem;
    transform: rotate(-15deg);
}
.breeds-hero-paw-2 {
    bottom: 18%;
    left: 10%;
    font-size: 9rem;
    transform: rotate(20deg);
}
.breeds-hero-paw-3 {
    top: 50%;
    left: 45%;
    font-size: 5rem;
    transform: rotate(8deg);
    opacity: 0.04;
}

.breeds-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.breeds-hero-title {
    font-family: var(--font-secondary);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 900;
    color: var(--gray-900);
    line-height: 1.2;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.breeds-hero-desc {
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    line-height: 1.7;
    color: var(--gray-600);
    max-width: 640px;
    margin: 0 auto 22px;
}
.breeds-hero-desc p {
    margin: 0 0 8px;
}
.breeds-hero-desc p:last-child {
    margin-bottom: 0;
}

/* Stats chip */
.breeds-hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}
.breeds-hero-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}
.breeds-hero-stat strong {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-dark);
}
.breeds-hero-stat span {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}


/* ════════════════════════════════════════════════════════════════════
   2. FILTER BAR — sticky-ish above grid
   ════════════════════════════════════════════════════════════════════ */
.breeds-section {
    padding: 24px 0 60px;
}

.breeds-filter {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px 22px;
    align-items: center;
}

.breeds-filter-title {
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    grid-row: 1;
}
.breeds-filter-title i {
    color: var(--primary);
    font-size: 1.4rem;
}

.breeds-filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    grid-row: 1;
    justify-self: end;
    flex: 1;
    justify-content: flex-end;
}

.breeds-filter-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
    min-height: 42px;
}
.breeds-filter-field:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--primary-50);
}

.breeds-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--gray-600);
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}
.breeds-filter-label i {
    color: var(--primary);
    font-size: 0.95rem;
}

.breeds-filter-select,
.breeds-filter-input {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-900);
    outline: none;
    padding: 4px 6px;
    min-width: 140px;
    cursor: pointer;
}
.breeds-filter-input {
    cursor: text;
    min-width: 180px;
}
.breeds-filter-select::-ms-expand {
    display: none;
}
.breeds-filter-select {
    /* Custom arrow */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231d6fa4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 4px center;
    padding-left: 22px;
}

.breeds-filter-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}
.breeds-filter-clear {
    position: absolute;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: var(--gray-200);
    color: var(--gray-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}
.breeds-filter-clear:hover {
    background: var(--accent-coral);
    color: #fff;
}

.breeds-filter-count {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.85rem;
    color: var(--gray-600);
    padding-top: 12px;
    border-top: 1px dashed var(--gray-200);
}
.breeds-filter-count strong {
    color: var(--primary-dark);
    font-weight: 700;
}


/* ════════════════════════════════════════════════════════════════════
   3. BREEDS GRID — responsive auto-fit cards
   ════════════════════════════════════════════════════════════════════ */
.breeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breed-card-item {
    margin: 0;
    padding: 0;
    list-style: none;
    /* JS may set display:none for filtering — that's OK */
}

.breed-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    position: relative;
    isolation: isolate;
}
.breed-card-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--accent-orange));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition-base);
    z-index: 1;
}
.breed-card-link:hover {
    color: inherit;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-100);
}
.breed-card-link:hover::before {
    transform: scaleY(1);
}

.breed-card-img-wrap {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-50), var(--earth-cream));
    position: relative;
}
.breed-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.breed-card-link:hover .breed-card-img-wrap img {
    transform: scale(1.08);
}

.breed-card-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.breed-card-name {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
}
.breed-card-name-extra {
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 0.92rem;
}
.breed-card-link:hover .breed-card-name {
    color: var(--primary-dark);
}

.breed-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
    transition: gap var(--transition-fast);
}
.breed-card-link:hover .breed-card-cta {
    gap: 8px;
    color: var(--primary-dark);
}
.breed-card-cta i {
    font-size: 1rem;
}


/* ════════════════════════════════════════════════════════════════════
   4. EMPTY STATE — when filter has no matches
   ════════════════════════════════════════════════════════════════════ */
.breeds-empty {
    text-align: center;
    padding: 50px 24px;
    background: #fff;
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-lg);
}
.breeds-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-50), var(--earth-cream));
    color: var(--primary);
    font-size: 2rem;
    margin: 0 auto 16px;
}
.breeds-empty-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 6px;
}
.breeds-empty-subtitle {
    font-size: 0.92rem;
    color: var(--gray-500);
    margin: 0 0 20px;
}
.breeds-empty-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    border: 1px solid var(--primary-100);
    background: var(--primary-50);
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}
.breeds-empty-reset:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}


/* ════════════════════════════════════════════════════════════════════
   5. SEO CONTENT — long article at the bottom
   ════════════════════════════════════════════════════════════════════ */
.breeds-seo {
    padding: 40px 0 60px;
    background: var(--bg-body);
}
.breeds-seo-inner {
    max-width: 880px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: var(--shadow-sm);
    line-height: 1.85;
    color: var(--gray-700);
    font-size: 0.98rem;
}
.breeds-seo-inner h2,
.breeds-seo-inner h3,
.breeds-seo-inner h4 {
    color: var(--gray-900);
    font-family: var(--font-secondary);
    margin: 28px 0 14px;
}
.breeds-seo-inner h2 { font-size: 1.5rem; }
.breeds-seo-inner h3 { font-size: 1.2rem; }
.breeds-seo-inner h4 { font-size: 1.05rem; }
.breeds-seo-inner h2:first-child,
.breeds-seo-inner h3:first-child {
    margin-top: 0;
}
.breeds-seo-inner p {
    margin: 0 0 14px;
}
.breeds-seo-inner a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.breeds-seo-inner a:hover {
    color: var(--primary-dark);
}
.breeds-seo-inner ul,
.breeds-seo-inner ol {
    padding-right: 22px;
    margin: 0 0 14px;
}
.breeds-seo-inner li {
    margin-bottom: 6px;
}


/* ════════════════════════════════════════════════════════════════════
   6. RESPONSIVE
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .breeds-hero {
        padding: 36px 0 10px;
    }
    .breeds-hero-paw {
        font-size: 5rem !important;
    }

    .breeds-filter {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }
    .breeds-filter-title {
        text-align: center;
        justify-content: center;
    }
    .breeds-filter-controls {
        justify-self: stretch;
        flex-direction: column;
        align-items: stretch;
    }
    .breeds-filter-field {
        width: 100%;
    }
    .breeds-filter-select,
    .breeds-filter-input {
        flex: 1;
    }
    .breeds-filter-count {
        text-align: center;
    }

    .breeds-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .breed-card-body {
        padding: 12px;
    }
    .breed-card-name {
        font-size: 0.92rem;
    }

    .breeds-seo-inner {
        padding: 22px 18px;
    }
}

@media (max-width: 380px) {
    .breeds-grid {
        grid-template-columns: 1fr;
    }
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .breed-card-link,
    .breed-card-img-wrap img,
    .breed-card-cta,
    .breed-card-link::before {
        transition: none;
    }
    .breed-card-link:hover {
        transform: none;
    }
}
