:root {
    --bg-color: #f0f2f5;
    --card-border: #222;
    --green: #27ae60;
    --orange: #f39c12;
    --whatsapp: #25D366;
    --adoption-color: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 10px;
}

.ad-container {
    width: 100%;
    max-width: 728px;
    min-height: 50px; /* Ajustado para os 50px do seu banner */
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent; 
    border: none;
    
}

/* A CARTA PETZILDO */
.card {
    background: white;
    width: 300px;
    border: 8px solid var(--card-border);
    border-radius: 20px;
    position: relative;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tags-container {
    position: absolute;
    top: 15px;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 5;
}

.species-pin {
    background: #ffcc00;
    padding: 6px 15px;
    font-weight: bold;
    border-right: 4px solid var(--card-border);
    border-bottom: 4px solid var(--card-border);
    font-size: 0.75rem;
    width: fit-content;
}

.adoption-tag {
    background: var(--adoption-color);
    color: white;
    padding: 4px 12px;
    font-weight: bold;
    font-size: 0.7rem;
    border-right: 4px solid var(--card-border);
    border-bottom: 4px solid var(--card-border);
    text-transform: uppercase;
    width: fit-content;
}

.card-img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    border-bottom: 4px solid var(--card-border);
    cursor: zoom-in; /* Indica que é clicável */
    transition: opacity 0.2s;
}

.card-img:hover { opacity: 0.9; }

.content { padding: 15px; }

.name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.name-row h2 { margin: 0; font-size: 1.5rem; }

.gender { font-size: 1.8rem; font-weight: bold; }

.bio {
    font-style: italic;
    font-size: 0.85rem;
    color: #444;
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
    text-align: justify;
}

/* NAVEGAÇÃO */
.navigation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    width: 100%;
}

.pagination-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 320px;
    margin-bottom: 10px;
}

.page-link {
    text-decoration: none;
    color: #333;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 0.75rem;
}

.page-link.active {
    background: var(--card-border);
    color: white;
}

#next-btn, #random-btn, .share-btn {
    width: 280px;
    padding: 14px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    color: white;
    text-align: center;
}

#next-btn { background-color: var(--green); box-shadow: 0 4px 0px #1e8449; }
#random-btn { background-color: var(--orange); box-shadow: 0 4px 0px #d68910; }
.share-btn { background-color: var(--whatsapp); box-shadow: 0 4px 0px #1da851; }

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border: 5px solid white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

button:active { transform: translateY(3px); box-shadow: none !important; }

/* Botão de Contribuição */
.contribute-btn {
    width: 280px;
    padding: 14px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    color: white;
    text-align: center;
    background-color: #3498db; /* Azul para destacar */
    box-shadow: 0 4px 0px #2980b9;
    margin-top: 10px;
    transition: transform 0.1s;
}

.contribute-btn:hover {
    background-color: #2980b9;
}

.contribute-btn:active {
    transform: translateY(3px);
    box-shadow: none !important;
}

.download-btn {
    width: 280px;
    padding: 14px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    color: white;
    text-align: center;
    background-color: #9b59b6; /* Roxo para diferenciar */
    box-shadow: 0 4px 0px #8e44ad;
    margin-top: 10px;
}

.download-btn:active {
    transform: translateY(3px);
    box-shadow: none !important;
}
