/* ================================================================= 
   ENCICLOP?DIA DE PELAGENS (Design Gold/Glass)
   ================================================================= */

/* 1. LAYOUT RESET (Sobrescreve regras do style.css que centralizam a tela) */
body {
    display: block !important; /* Remove o flex center do desktop */
    padding: 0 !important;
    background: var(--bg);
    min-height: 100vh;
}

.app-wrap {
    width: 100%;
    max-width: 800px; /* Largura de leitura confort?vel */
    margin: 0 auto;
    padding: 0 20px 100px 20px; /* Padding inferior p/ n?o esconder atr?s do CTA */
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
}

/* 2. MINI HERO (Topo) */
.mini-hero {
    background: linear-gradient(to bottom, #2a2019 0%, #15100c 100%);
    padding: 30px 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    z-index: 10;
}

.logo-img {
    max-height: 56px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
    transition: transform 0.3s;
}
.logo-img:hover { transform: scale(1.05); }

.page-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 15px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

/* 3. BARRA DE BUSCA STICKY & MENU */
#searchCard {
    background: transparent;
    padding: 20px 0;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    width: 100%;
}

/* Estado Sticky (Quando rola a tela) */
.sticky-search {
    position: fixed !important;
    top: 0; left: 0; width: 100%;
    background: rgba(21, 16, 12, 0.95);
    padding: 15px 20px !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.sticky-inner { max-width: 800px; margin: 0 auto; width: 100%; }

.search-row {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* Ajuste Fino do Bot?o Menu dentro da Busca */
.search-row .menu-trigger-btn {
    position: relative !important; 
    top: auto !important; left: auto !important;
    flex-shrink: 0; 
    margin: 0 !important;
    /* Mant?m o estilo do style.css mas remove o posicionamento absoluto */
}

.search-container { flex: 1; position: relative; }

.search-container input {
    width: 100%;
    background: rgba(30, 23, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px; /* Padronizado com o sistema */
    padding: 12px 20px;
    color: #fff;
    outline: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

.search-container input:focus {
    border-color: var(--gold);
    background: rgba(30, 23, 18, 0.9);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}
.search-container input::placeholder { color: #666; font-weight: 500; }

/* 4. NAVEGA??O ALFAB?TICA (Tiles) */
.alpha-nav {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; 
    margin-top: 15px;
    padding-bottom: 5px;
}

.alpha-btn {
    width: 32px; height: 36px;
    display: flex; align-items:center; justify-content:center;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; font-size: 11px;
    transition: all 0.2s;
    margin-right: -3px;
}

.alpha-btn:hover, .alpha-btn.active {
    background: var(--gold);
    color: #15100c;
    border-color: var(--gold);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* 5. LISTAGEM DE PELAGENS */
#listaPrincipal { margin-top: 10px; }


.letter-group {
     margin-bottom: 30px; 
    animation: fadeIn 0.5s ease;
    scroll-margin-top: 190px;
}/
html {
    scroll-behavior: smooth;
}

.letter-head {
    display: flex; align-items: baseline; justify-content: space-between;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 15px; padding-bottom: 5px;
}
.letter-char {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px; font-weight: 800; color: var(--gold);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.letter-count { 
    font-family: 'Montserrat'; font-size: 10px; 
    color: #666; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}

/* Card da Pelagem */
.pelagem-link {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 8px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 15px;
}

.pelagem-thumb {
    width: 50px; height: 50px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
    background: #000;
    flex-shrink: 0;
}

.pelagem-link span {
    font-size: 15px; font-weight: 500; font-family: 'Merriweather', serif;
}

.pelagem-link:hover {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1), transparent);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(5px);
}
.pelagem-link:hover .pelagem-thumb { border-color: var(--gold); }
.pelagem-link:hover span { color: var(--gold); }

.no-results {
    padding: 60px 20px; text-align: center; color: var(--text-muted); 
    font-style: italic; display: none; background: rgba(0,0,0,0.2); border-radius: 12px;
}

/* 6. FOOTER CTA (Fixo no Rodap?) */
.footer-cta {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(20, 15, 12, 0.95);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding: 15px 20px;
    z-index: 999;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.8);
}

.footer-cta-text { flex: 1; margin-right: 15px; }
.footer-cta h3 {
    margin: 0; color: #fff; font-family: 'Montserrat'; font-size: 13px; 
    text-transform: uppercase; letter-spacing: 1px; font-weight: 800;
}
.footer-cta p { margin: 2px 0 0; color: var(--text-muted); font-size: 11px; }

.footer-cta .btn-main {
    display: inline-block;
    background: var(--gold);
    padding: 10px 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; text-transform: uppercase; font-size: 11px;
    color: #15100c;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(212,175,55,0.4);
    transition: transform 0.2s;
}
.footer-cta .btn-main:hover { transform: scale(1.05); background: #fff; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Responsividade */
@media (min-width: 900px) {
    /* Mant?m o CTA contido se a tela for muito larga */
    .footer-cta { padding: 20px calc(50% - 400px + 20px); } 
}

 /* Estilo exclusivo para o contador no Hero */
    .hero-counter {
        font-family: 'Montserrat', sans-serif;
        font-size: 11px;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-top: 5px;
        font-weight: 600;
    }

    /* CSS DO PAR DE IMAGENS */
    .pair-thumbs {
        display: flex;
        align-items: center;
        margin-right: 5px;
        position: relative;
        border: 2px solid var(--gold);
        border-radius: 13px;
    }
    
    .horse-mini {
        width:65px;
        border-radius: 10px 0px 0px 10px;
        object-fit: cover;
        
        flex-shrink: 0;
    }

    .horse-mini.pai {
        z-index: 2; /* Pai fica por cima */
    }

    .horse-mini.mae {
        transform: scaleX(-1); /* ESPELHAMENTO DA MÃE */
        margin-left: -2px;    /* Sobreposição leve */
        z-index: 1;
     
    }