* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    /* Fundo Místico Roxo Escuro */
    background: radial-gradient(circle at center, #2e1a47 0%, #1a0b2e 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    max-width: 600px;
    width: 100%;
    margin-top: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    border: 1px solid #d4af37; /* Borda Dourada */
}

header {
    background: linear-gradient(135deg, #4b2c7a 0%, #2e1a47 100%);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

header h1 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    margin-bottom: 5px;
    color: #f0e68c;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.icon-top {
    font-size: 30px;
    display: block;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.subtitle {
    font-size: 14px;
    color: #d8bfd8;
}

/* --- Container de Anúncio --- */
.ad-container {
    margin: 20px auto;
    width: 100%;
    /* Altura mínima para evitar CLS (Layout Shift) com o anúncio de 300px */
    min-height: 310px; 
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 10px;
}

/* --- ÁREA DA CALCULADORA (Novas Classes) --- */
.calculator-box {
    padding: 20px 30px 30px 30px;
}

.instruction {
    text-align: center;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* --- FORMULÁRIO --- */
.input-group {
    margin-bottom: 25px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #4b2c7a;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s;
    font-family: 'Lato', sans-serif;
}

input:focus {
    outline: none;
    border-color: #9370db;
    box-shadow: 0 0 15px rgba(147, 112, 219, 0.2);
}

/* Botão com nova classe */
.btn-calculate {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #d4af37 0%, #c5a028 100%);
    color: #1a0b2e;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* --- RESULTADO --- */
.result-area {
    background: #fdfcf5;
    padding: 40px 20px 20px 20px;
    text-align: center;
    border-top: 1px solid #eee;
    animation: fadeIn 1s ease;
    margin: 30px -30px -30px -30px; /* Expande para as bordas do container pai */
    border-radius: 0 0 20px 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animal-card {
    margin-bottom: 30px;
}

.animal-icon {
    font-size: 60px;
    display: block;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.result-area h2 {
    color: #2e1a47;
    font-family: 'Cinzel', serif;
    font-size: 28px;
    margin-bottom: 15px;
    color: #d4af37;
}

.result-area p {
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
}

/* --- BOTÕES DE COMPARTILHAMENTO --- */
.share-section {
    padding: 30px 20px 10px 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
    text-align: center;
    border-radius: 0 0 20px 20px;
}

.share-section p {
    font-size: 14px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 15px;
    font-weight: 700;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: white;
    transition: transform 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.whatsapp { background-color: #25D366; }
.telegram { background-color: #0088cc; }
.copy { background-color: #555; }

.copy-feedback {
    margin-top: 10px;
    font-size: 12px;
    color: #2ecc71;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-feedback.visible {
    opacity: 1;
}

/* --- RELACIONADOS --- */
.related-tools {
    margin-top: 0;
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
    border-radius: 0 0 20px 20px;
}
.related-tools h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 15px;
    text-align: center;
}
.tools-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.tool-card {
    text-decoration: none;
    color: #555;
    background: #fdfcf5;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    font-weight: bold;
    min-width: 140px;
    justify-content: center;
}
.tool-card:hover {
    border-color: #d4af37;
    color: #4b2c7a;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

@media (max-width: 480px) {
    .share-buttons {
        flex-direction: column;
        padding: 0 20px;
    }
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    .tool-card {
        width: 100%;
    }
}
