@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
/* ============================================================
   DESIGN TOKENS — Sistema de design premium
   ============================================================ */
:root {
    /* Cores base */
    --navy:          #0E1520;
    --navy-mid:      #141E30;
    --navy-card:     #1A2438;
    --navy-light:    #243350;
    --navy-border:   rgba(255,255,255,0.07);

    /* Dourado metálico — gradiente foil */
    --gold:          #C4933F;
    --gold-light:    #E8C97A;
    --gold-pale:     #F5EDD8;
    --gold-foil:     linear-gradient(135deg, #b8812e 0%, #e8c97a 40%, #c4933f 60%, #f0d485 100%);
    --gold-shine:    linear-gradient(90deg, #8B6914 0%, #C4933F 25%, #F0D078 50%, #C4933F 75%, #8B6914 100%);

    /* Texto */
    --text-primary:  #F0EBE0;
    --text-secondary: rgba(240,235,224,0.65);
    --text-tertiary:  rgba(240,235,224,0.35);

    /* Superfícies de cartão */
    --card-bg:       rgba(20, 30, 48, 0.85);
    --card-border:   rgba(196,147,63,0.18);
    --card-border-h: rgba(196,147,63,0.55);

    /* Sombras quentes */
    --shadow-card:  0 4px 24px rgba(6, 9, 15, 0.55), 0 1px 0 rgba(255,255,255,0.04) inset;
    --shadow-hover: 0 20px 60px rgba(6, 9, 15, 0.7), 0 0 40px rgba(196,147,63,0.12);
    --shadow-gold:  0 0 0 1px rgba(196,147,63,0.3), 0 8px 32px rgba(196,147,63,0.15);

    /* Tipografia */
    --font-display: 'Righteous', serif;
    --font-body:    'Jost', sans-serif;
    --font-brand:   'Righteous', sans-serif;

    /* Espaçamento */
    --max-w: 1440px;
    --gutter: clamp(1.5rem, 4vw, 3rem);
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--navy);
    color: var(--text-primary);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Textura de grão sobre tudo */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.028;
    pointer-events: none;
    z-index: 9999;
}

/* Scrollbar personalizada */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-mid); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }

/* ============================================================
   HEADER — Presença dramática
   ============================================================ */
.page-header {
    position: relative;
    background: linear-gradient(160deg, var(--navy-mid) 0%, var(--navy) 70%);
    padding: clamp(3rem, 8vw, 6rem) var(--gutter) clamp(5rem, 10vw, 8rem);
    overflow: hidden;
    isolation: isolate;
}

/* Ornamento geométrico de fundo */
.page-header::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -60px;
    width: min(700px, 90vw);
    height: min(700px, 90vw);
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(196, 147, 63, 0.08) 0%,
        rgba(196, 147, 63, 0.03) 45%,
        transparent 70%);
    pointer-events: none;
    animation: breathe 8s ease-in-out infinite;
}

/* Linha dourada diagonal */
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(196,147,63,0.15) 20%,
        rgba(196,147,63,0.6) 50%,
        rgba(196,147,63,0.15) 80%,
        transparent 100%);
}

@keyframes breathe {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50%       { transform: scale(1.08) rotate(4deg); opacity: 0.8; }
}

.header-content {
    max-width: var(--max-w);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Breadcrumb refinado */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-tertiary);
    animation: revealDown 0.7s ease-out both;
}

.breadcrumb a {
    color: var(--text-tertiary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.25s ease;
}
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb i { width: 14px; height: 14px; }
.breadcrumb > i { width: 12px; height: 12px; opacity: 0.4; }
.breadcrumb span {
    background: var(--gold-foil);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ornamento acima do título */
.header-content::before {
    content: '— — —';
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 0.5em;
    margin-bottom: 1rem;
    opacity: 0.6;
    animation: revealDown 0.7s ease-out 0.1s both;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    animation: revealDown 0.8s ease-out 0.15s both;
    color: var(--text-primary);
}

.page-header h1 em {
    font-style: italic;
    font-weight: 300;
    background: var(--gold-foil);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: shimmer 4s ease-in-out 1.5s infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50%       { background-position: 100% center; }
}

.header-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    max-width: 520px;
    animation: revealDown 0.8s ease-out 0.25s both;
}

/* Número flutuante decorativo */
.header-deco-count {
    position: absolute;
    right: var(--gutter);
    bottom: 2.5rem;
    font-family: var(--font-display);
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(196,147,63,0.12);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.05em;
}

@keyframes revealDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SEARCH — Flutuante, sobreposto ao header
   ============================================================ */
.search-section {
    max-width: var(--max-w);
    margin: -2.5rem auto 0;
    padding: 0 var(--gutter) 2.5rem;
    position: relative;
    z-index: 20;
    animation: revealUp 0.7s ease-out 0.3s both;
}

@keyframes revealUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.search-container { position: relative; }

.search-box {
    display: flex;
    align-items: center;
    background: var(--navy-card);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(0,0,0,0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    gap: 1rem;
}

.search-box:focus-within {
    border-color: rgba(196,147,63,0.5);
    box-shadow: var(--shadow-gold);
}

.search-icon {
    color: var(--gold);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.search-box:focus-within .search-icon { opacity: 1; }

#searchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-primary);
    background: transparent;
    letter-spacing: 0.02em;
    min-width: 0;
}
#searchInput::placeholder {
    color: var(--text-tertiary);
    font-weight: 300;
}

.clear-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-tertiary);
    padding: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.clear-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.clear-btn i { width: 16px; height: 16px; }

.results-info {
    margin-top: 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    font-weight: 400;
    padding-left: 0.25rem;
}
.results-info strong {
    background: var(--gold-foil);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ============================================================
   FILTROS — Linha editorial discreta
   ============================================================ */
.filter-section {
    max-width: var(--max-w);
    margin: 0 auto 3.5rem;
    padding: 0 var(--gutter);
    animation: revealUp 0.7s ease-out 0.4s both;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1.25rem 0;
    border-top: 1px solid var(--navy-border);
    border-bottom: 1px solid var(--navy-border);
    position: relative;
}

.filter-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-right: 0.5rem;
    white-space: nowrap;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.1rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.filter-tag::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold-foil);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.filter-tag i { width: 14px; height: 14px; opacity: 0.7; }

.filter-tag:hover {
    border-color: rgba(196,147,63,0.3);
    color: var(--text-primary);
    background: rgba(196,147,63,0.05);
}
.filter-tag:hover::after { transform: scaleX(1); }

.filter-tag.active {
    border-color: rgba(196,147,63,0.5);
    color: var(--gold-light);
    background: rgba(196,147,63,0.08);
    font-weight: 500;
}
.filter-tag.active::after { transform: scaleX(1); }
.filter-tag.active i { opacity: 1; color: var(--gold); }

/* ============================================================
   GRID DE RAÇAS — Cards cinematográficos
   ============================================================ */
.breeds-grid-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gutter) 6rem;
    min-height: 400px;
}

.breeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5px; /* gap de "grout" estilo galeria */
    background: rgba(196,147,63,0.08);
    border: 1px solid rgba(196,147,63,0.08);
    border-radius: 16px;
    overflow: hidden;
}

/* Card principal */
.breed-card {
    background: var(--navy-card);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: z-index 0s;
    animation: cardReveal 0.6s ease-out both;
}

@keyframes cardReveal {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

.breed-card:nth-child(1)  { animation-delay: 0.05s; }
.breed-card:nth-child(2)  { animation-delay: 0.10s; }
.breed-card:nth-child(3)  { animation-delay: 0.15s; }
.breed-card:nth-child(4)  { animation-delay: 0.20s; }
.breed-card:nth-child(5)  { animation-delay: 0.25s; }
.breed-card:nth-child(6)  { animation-delay: 0.30s; }
.breed-card:nth-child(7)  { animation-delay: 0.35s; }
.breed-card:nth-child(8)  { animation-delay: 0.40s; }
.breed-card:nth-child(n+9){ animation-delay: 0.45s; }

/* Linha dourada no topo do card (revela no hover) */
.breed-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold-shine);
    background-size: 200% 100%;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.4s ease;
    animation: goldSlide 3s linear infinite;
}
@keyframes goldSlide {
    from { background-position: 200% center; }
    to   { background-position: -200% center; }
}
.breed-card:hover::before { opacity: 1; }

/* IMAGEM */
.breed-image {
    height: 240px;
    position: relative;
    overflow: hidden;
    background-color: var(--navy-mid);
}

/* Overlay gradiente dramático */
.breed-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,15,26,0.1) 0%,
        rgba(10,15,26,0.15) 40%,
        rgba(10,15,26,0.75) 100%
    );
    z-index: 1;
    transition: opacity 0.4s ease;
}
.breed-card:hover .breed-image::before {
    opacity: 0.7;
}

/* Vinheta de cor no hover */
.breed-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center bottom,
        rgba(196,147,63,0.12) 0%,
        transparent 70%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.breed-card:hover .breed-image::after { opacity: 1; }

/* Zoom suave na imagem de fundo */
.breed-image > [style*="background"] {
    position: absolute;
    inset: 0;
    background-size: cover !important;
    background-position: center !important;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Como não podemos selecionar o div background diretamente,
   vamos usar a div em si */
.breed-image {
    background-size: cover !important;
    background-position: center !important;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.breed-card:hover .breed-image {
    transform: scale(1.06);
}

/* Badge de tipo */
.breed-badge {
    position: absolute;
    top: 1rem;
    left: 1.25rem;
    z-index: 2;
    background: rgba(10,15,26,0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(196,147,63,0.35);
    color: var(--gold-light);
    padding: 0.3rem 0.85rem;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}
.breed-card:hover .breed-badge {
    background: rgba(196,147,63,0.2);
    border-color: rgba(196,147,63,0.6);
}

/* Seta de acesso — aparece no hover */
.breed-image-cta {
    position: absolute;
    bottom: 1rem;
    right: 1.25rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px) scale(0.85);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.breed-image-cta svg { width: 16px; height: 16px; color: var(--navy); stroke-width: 2.5; }
.breed-card:hover .breed-image-cta {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* INFO */
.breed-info {
    padding: 1.5rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    background: var(--navy-card);
    position: relative;
    transition: background 0.3s ease;
}
.breed-card:hover .breed-info {
    background: #1C2840;
}

.breed-info h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.6rem;
    transition: color 0.3s ease;
}
.breed-card:hover .breed-info h3 { color: #fff; }

.breed-info h3 em {
    font-style: italic;
    font-weight: 300;
    color: var(--gold-light);
}

.breed-origin {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    font-weight: 400;
}
.breed-origin i { width: 13px; height: 13px; color: var(--gold); opacity: 0.7; }

/* Divisor ornamental */
.breed-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    opacity: 0.3;
}
.breed-divider::before,
.breed-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}
.breed-divider-diamond {
    width: 5px;
    height: 5px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.breed-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.breed-stats span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.02em;
}
.breed-stats i { width: 14px; height: 14px; color: var(--gold); opacity: 0.6; }

/* ============================================================
   ESTADO VAZIO — Sem resultados
   ============================================================ */
.no-results {
    text-align: center;
    padding: 6rem var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    color: var(--text-tertiary);
}
.no-results i { width: 60px; height: 60px; opacity: 0.25; }
.no-results h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-secondary);
}
.no-results p { font-size: 0.95rem; font-weight: 300; }

/* ============================================================
   FOOTER — Marca premium discreta
   ============================================================ */
.page-footer {
    position: relative;
    background: var(--navy-mid);
    padding: 3.5rem var(--gutter);
    overflow: hidden;
}
.page-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(196,147,63,0.4) 50%,
        transparent 100%);
}
.page-footer::after {
    content: 'EQUIPÉDIA';
    position: absolute;
    right: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-brand);
    font-size: clamp(3rem, 8vw, 6rem);
    color: transparent;
    -webkit-text-stroke: 1px rgba(196,147,63,0.07);
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.1em;
}

.footer-content {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.footer-content > p {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}
.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 400;
    transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-links i { width: 14px; height: 14px; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
    .breeds-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    .header-deco-count { display: none; }
}

@media (max-width: 768px) {
    .page-header {
        padding: clamp(2rem, 6vw, 3rem) var(--gutter) clamp(4rem, 8vw, 5rem);
    }
    .breeds-grid {
        grid-template-columns: 1fr;
        gap: 1px;
    }
    .breed-image { height: 200px; }
    .filter-container { gap: 0.5rem; }
    .footer-links { gap: 1.5rem; }
    .page-footer::after { display: none; }
}

@media (max-width: 480px) {
    .search-section { margin-top: -2rem; }
    .search-box { padding: 0.85rem 1.1rem; gap: 0.75rem; }
    #searchInput { font-size: 0.95rem; }
    .filter-tag { padding: 0.45rem 0.85rem; font-size: 0.75rem; }
    .breed-info { padding: 1.25rem 1.25rem 1.5rem; }
    .breed-info h3 { font-size: 1.5rem; }
    .breeds-grid { border-radius: 10px; }
    .footer-content { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .footer-links { flex-direction: column; gap: 1rem; align-items: flex-start; }
}

/* ============================================================
   ACESSIBILIDADE & PREFERÊNCIAS
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .breed-card { border: 2px solid var(--gold); }
    .filter-tag.active { outline: 2px solid var(--gold-light); }
}