/* Variáveis de cores baseadas no site patrickcardoso.com.br */
:root {
    --primary-color: #4299e1; /* Azul principal */
    --secondary-color: #ed8936; /* Laranja para destaque */
    --dark-color: #2d3748; /* Cor escura para textos */
    --light-color: #f7fafc; /* Cor clara para fundos */
    --gray-color: #a0aec0; /* Cinza para elementos secundários */
    
    /* Cores para os temperamentos */
    --sanguineo-color: #4299e1; /* Azul - Ar */
    --colerico-color: #ed8936; /* Laranja - Fogo */
    --melancolico-color: #805ad5; /* Roxo - Terra */
    --fleumatico-color: #38b2ac; /* Verde-água - Água */
    
    /* Fontes */
    --font-primary: 'Montserrat', sans-serif;
}

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--light-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.hidden {
    display: none;
}

/* Botões */
.btn-principal, .btn-destaque, .btn-secundario {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-principal {
    background-color: var(--primary-color);
    color: white;
}

.btn-principal:hover {
    background-color: #3182ce;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-destaque {
    background-color: var(--secondary-color);
    color: white;
}

.btn-destaque:hover {
    background-color: #dd6b20;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secundario {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secundario:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-secundario:disabled {
    border-color: var(--gray-color);
    color: var(--gray-color);
    cursor: not-allowed;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f6f9fc 0%, #e6f1f9 100%);
}

#hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 500;
}

.hero-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #4a5568;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.temperamentos-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    background-color: white;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.temp {
    position: absolute;
    width: 50%;
    height: 50%;
}

.sanguineo {
    top: 0;
    left: 0;
    background-color: var(--sanguineo-color);
    border-radius: 100% 0 0 0;
}

.colerico {
    top: 0;
    right: 0;
    background-color: var(--colerico-color);
    border-radius: 0 100% 0 0;
}

.melancolico {
    bottom: 0;
    right: 0;
    background-color: var(--melancolico-color);
    border-radius: 0 0 100% 0;
}

.fleumatico {
    bottom: 0;
    left: 0;
    background-color: var(--fleumatico-color);
    border-radius: 0 0 0 100%;
}

/* Sobre Section */
#sobre {
    padding: 80px 0;
    background-color: white;
}

#sobre h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2rem;
}

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

.sobre-text {
    flex: 2;
    padding-right: 40px;
}

.sobre-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.sobre-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat {
    text-align: center;
    margin-bottom: 30px;
}

.stat .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat .label {
    font-size: 1.2rem;
    color: var(--gray-color);
}

/* Temperamentos Section */
#temperamentos {
    padding: 80px 0;
    background-color: #f6f9fc;
}

#temperamentos h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2rem;
}

.temperamentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.temperamento-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.temperamento-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.temperamento-card .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

.temperamento-card.sanguineo .icon {
    background-color: var(--sanguineo-color);
}

.temperamento-card.colerico .icon {
    background-color: var(--colerico-color);
}

.temperamento-card.melancolico .icon {
    background-color: var(--melancolico-color);
}

.temperamento-card.fleumatico .icon {
    background-color: var(--fleumatico-color);
}

.temperamento-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.temperamento-card p {
    margin-bottom: 20px;
    color: #4a5568;
}

.temperamento-card .elemento {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-color);
}

/* Teste Section */
#teste {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #e6f1f9 0%, #f6f9fc 100%);
}

#teste h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 2rem;
}

#teste p {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #4a5568;
}

/* Teste Container */
#teste-container {
    padding: 120px 0 80px;
    background-color: white;
}

.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    width: 10%; /* Será atualizado via JavaScript */
    transition: width 0.3s ease;
}

.question-counter {
    text-align: right;
    color: var(--gray-color);
}

.question-container {
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.question-container h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.options-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.option {
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option:hover {
    border-color: var(--primary-color);
    background-color: #f0f9ff;
}

.option.selected {
    border-color: var(--primary-color);
    background-color: #ebf8ff;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
}

/* Resultado Container */
#resultado-container {
    padding: 120px 0 80px;
    background-color: white;
}

#resultado-container h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2rem;
}

.resultado-principal {
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.resultado-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.resultado-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 2.5rem;
    color: white;
}

.resultado-title h3 {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.resultado-title h2 {
    font-size: 2rem;
    margin: 0;
    text-align: left;
}

.resultado-descricao {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.resultado-chart h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.chart-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.chart-bar {
    display: flex;
    align-items: center;
}

.bar-label {
    width: 120px;
    font-weight: 500;
}

.bar-outer {
    flex: 1;
    height: 20px;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 15px;
}

.bar-inner {
    height: 100%;
    width: 0; /* Será atualizado via JavaScript */
    transition: width 1s ease;
}

.bar-inner.sanguineo {
    background-color: var(--sanguineo-color);
}

.bar-inner.colerico {
    background-color: var(--colerico-color);
}

.bar-inner.melancolico {
    background-color: var(--melancolico-color);
}

.bar-inner.fleumatico {
    background-color: var(--fleumatico-color);
}

.bar-percentage {
    width: 50px;
    text-align: right;
    font-weight: 600;
}

.resultado-detalhes {
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-color);
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane ul {
    padding-left: 20px;
}

.tab-pane li {
    margin-bottom: 10px;
}

.compartilhar {
    text-align: center;
}

.compartilhar h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.share-btn i {
    margin-right: 10px;
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.twitter {
    background-color: #1da1f2;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

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

.email-signup {
    max-width: 500px;
    margin: 0 auto 40px;
}

.email-signup h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.email-signup form {
    display: flex;
}

.email-signup input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    outline: none;
}

.email-signup input:focus {
    border-color: var(--primary-color);
}

.email-signup button {
    border-radius: 0 30px 30px 0;
}

#reiniciar-teste {
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.footer-logo p {
    color: #cbd5e0;
}

.footer-links h3, .footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #cbd5e0;
}

.footer-links ul li a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e0;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Responsividade */
@media (max-width: 992px) {
    #hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .sobre-content {
        flex-direction: column;
    }
    
    .sobre-text {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .sobre-stats {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .temperamentos-circle {
        width: 250px;
        height: 250px;
    }
    
    .email-signup form {
        flex-direction: column;
    }
    
    .email-signup input {
        border-radius: 30px;
        margin-bottom: 10px;
    }
    
    .email-signup button {
        border-radius: 30px;
    }
}

@media (max-width: 576px) {
    .temperamentos-circle {
        width: 200px;
        height: 200px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .sobre-stats {
        flex-direction: column;
    }
}
