/* PawOps Breed Database - Page-Specific Styles */
/* Brand: Light theme, accent #FFBB58, bg #FFFFFF/#F8F8FA, text #1A1A1A */

/* Nav styling handled by global styles.css */

/* ==================== HERO SECTION ==================== */
.breed-hero {
    background: linear-gradient(135deg, rgba(255,187,88,0.05) 0%, rgba(255,255,255,0) 100%);
    color: var(--text-primary);
    padding: 100px 20px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.breed-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,187,88,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.breed-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,187,88,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.breed-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.breed-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 187, 88, 0.12);
    border: 1px solid rgba(255, 187, 88, 0.2);
    border-radius: 24px;
    color: #FFBB58;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.breed-hero h1 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: clamp(36px, 5.5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.breed-hero p {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* Search inside hero */
.breed-hero-search {
    max-width: 520px;
    margin: 0 auto 40px;
    position: relative;
}

.breed-hero-search input {
    width: 100%;
    padding: 18px 24px 18px 52px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    background: #FFFFFF;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.breed-hero-search input::placeholder {
    color: #999;
}

.breed-hero-search input:focus {
    outline: none;
    border-color: #FFBB58;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 187, 88, 0.1);
}

.breed-hero-search i {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

/* Stats in hero */
.breed-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.breed-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.breed-hero-stat-num {
    font-size: 32px;
    font-weight: 700;
    color: #FFBB58;
    line-height: 1;
}

.breed-hero-stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.breed-hero-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ==================== FILTER BAR ==================== */
.breed-controls {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.breed-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.breed-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
}

.breed-filters::-webkit-scrollbar {
    height: 0;
}

.breed-filter-divider {
    width: 1px;
    height: 24px;
    background: #e0e0e0;
    flex-shrink: 0;
    align-self: center;
}

.breed-filter-pill {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breed-filter-pill i {
    font-size: 12px;
}

.breed-filter-pill:hover {
    border-color: #FFBB58;
    color: #1A1A1A;
    background: rgba(255, 187, 88, 0.08);
}

.breed-filter-pill.active {
    background: #1A1A1A;
    border-color: #1A1A1A;
    color: #FFBB58;
    font-weight: 600;
}

.breed-sort-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.breed-sort-row select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #555;
}

.breed-sort-row select:hover {
    border-color: #FFBB58;
}

.breed-sort-row select:focus {
    outline: none;
    border-color: #FFBB58;
}

.breed-results-count {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

/* Grid Layout */
.breed-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .breed-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .breed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    .breed-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px 12px;
    }
}

/* Variation B — Minimal Clean Card */
.breed-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.breed-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.breed-card-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}
.breed-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.breed-card:hover .breed-card-img img {
    transform: scale(1.05);
}
.breed-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 16px 14px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
}
.breed-card-overlay h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
}
.breed-card-overlay span {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}
.breed-card-info {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.breed-card-details {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}
.breed-card-details i {
    color: #FFBB58;
    margin-right: 3px;
}
.breed-card-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F8F8FA;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFBB58;
    font-size: 12px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.breed-card:hover .breed-card-arrow {
    background: #FFBB58;
    color: #1A1A1A;
}
.breed-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F8F8FA, #F0F0F3);
}
.breed-card-img-placeholder i {
    font-size: 48px;
    color: rgba(0,0,0,0.08);
}

/* Modal Styles */
.breed-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.breed-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.modal-header {
    padding: 32px 24px 16px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-header i {
    font-size: 32px;
    color: var(--accent, #FFBB58);
}

.modal-header-content h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
}

.modal-species-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f5f5;
    color: #666;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
}

.modal-body {
    padding: 24px;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section h3 i {
    color: var(--accent, #FFBB58);
    font-size: 16px;
}

.modal-section p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.modal-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-section li {
    font-size: 15px;
    color: #666;
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.modal-section li:before {
    content: "•";
    color: var(--accent, #FFBB58);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.modal-services {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.modal-service-tag {
    padding: 8px 14px;
    background: rgba(255, 187, 88, 0.12);
    color: var(--accent, #FFBB58);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--accent, #FFBB58);
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
}

.modal-cta {
    flex: 1;
    padding: 14px 20px;
    background: var(--accent, #FFBB58);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-cta:hover {
    background: #e5a030;
    transform: translateY(-2px);
}

/* CTA Section */
.breed-cta-section {
    background: var(--bg-secondary, #F8F8FA);
    color: var(--text-primary, #1A1A1A);
    padding: 60px 20px;
    text-align: center;
    margin-top: 60px;
    border-top: 3px solid var(--accent, #FFBB58);
}

.breed-cta-section h2 {
    color: var(--text-primary, #1A1A1A);
    font-size: clamp(32px, 5vw, 40px);
    margin-bottom: 16px;
}

.breed-cta-section p {
    color: var(--text-secondary, #555555);
    font-size: 18px;
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.breed-cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent, #FFBB58);
    color: #1A1A1A;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.breed-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Empty State */
.breed-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.breed-no-results i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
    display: block;
}

.breed-no-results p {
    font-size: 18px;
    color: #666;
}

/* Loading Skeleton */
.breed-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.breed-card-skeleton {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breed-card-skeleton .skeleton-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.breed-card-skeleton .skeleton-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.breed-card-skeleton .skeleton-title {
    flex: 1;
    height: 20px;
    border-radius: 4px;
}

.breed-card-skeleton .skeleton-text {
    height: 16px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.breed-card-skeleton .skeleton-text:last-child {
    margin-bottom: 0;
}

/* ==================== BROWSE BY GROUP ==================== */
.breed-groups-section {
    background: #fff;
    padding: 60px 20px;
    border-top: 1px solid #e0e0e0;
}

.breed-groups-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.breed-groups-inner h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 12px;
}

.breed-groups-inner > p {
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}

.breed-groups-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.breed-group-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    background: #F8F8FA;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: #1A1A1A;
    transition: all 0.3s ease;
}

.breed-group-card:hover {
    border-color: #FFBB58;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.breed-group-card i {
    font-size: 28px;
    color: #FFBB58;
}

.breed-group-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.breed-group-card span {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.breed-group-card-cats {
    border-color: #ddd;
}

.breed-group-card-cats i {
    color: #999;
}

.breed-group-card-cats:hover i {
    color: #FFBB58;
}

/* Clickable tag on breed card */
.breed-tag-link {
    cursor: pointer;
    transition: all 0.2s ease;
}

.breed-tag-link:hover {
    background: rgba(255, 187, 88, 0.15);
    border-color: #FFBB58;
    color: #1A1A1A;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .breed-hero {
        padding: 80px 16px 50px;
    }

    .breed-hero h1 {
        font-size: 32px;
    }

    .breed-hero p {
        font-size: 16px;
    }

    .breed-hero-search input {
        padding: 14px 20px 14px 44px;
        font-size: 16px;
    }

    .breed-hero-stats {
        gap: 20px;
    }

    .breed-hero-stat-num {
        font-size: 24px;
    }

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

    .breed-filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .breed-filters {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .breed-sort-row {
        justify-content: space-between;
    }

    .breed-sort-row select {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .breed-hero {
        padding: 70px 12px 40px;
    }

    .breed-hero h1 {
        font-size: 28px;
    }

    .breed-hero-badge {
        font-size: 11px;
        padding: 6px 14px;
    }

    .breed-controls {
        padding: 12px;
    }

    .breed-filter-pill {
        padding: 6px 12px;
        font-size: 12px;
    }

    .modal-content {
        border-radius: 8px;
    }

    .modal-header {
        padding: 20px 16px 12px 16px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        padding: 16px;
    }

    .breed-cta-section {
        padding: 40px 16px;
    }

    .breed-cta-section h2 {
        font-size: 28px;
    }
}
