/* Estilos para accordion */
.accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.content-closed .accordion-content {
    display: none;
}

.accordion-item.content-opened .accordion-content {
    display: block;
}

.accordion-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.accordionButton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
}

.arrow {
    transition: transform 0.3s ease;
}

.accordion-item.content-opened .arrow {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 20px;
    background: #f8f9fa;
}

.accordionPanel {
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.blockTitle {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

/* Estilos para o título principal */
.mainTitle {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.header-subtitle {
    font-size: 18px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.header-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

/* Estilos para diagrama */
.matrixDiagram {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.matrix-visual {
    text-align: center;
}

.matrix-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.matrix-numbers {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.matrix-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Estilos para mapa da saúde */
.health {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.health h5 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table th,
.table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.table .header th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.chakraName {
    font-weight: 600;
    color: #333;
}

.chakraSubtitle {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* Estilos para informações adicionais */
.additional {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vflex {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dflex {
    display: flex;
    align-items: center;
    gap: 10px;
}

.familyLine {
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.circlesWrap {
    gap: 8px;
}

.circleItem {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 16px;
}

/* Estilos para dropdown de idade */
.dropdown-container {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dropdown-container label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.dropdown-container select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.dropdown-container select:focus {
    outline: none;
    border-color: #667eea;
}

.age-panel {
    margin-top: 15px;
}

.age-section {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
}

/* Responsividade accordion */
@media (max-width: 768px) {
    .header-title {
        font-size: 24px;
    }
    
    .matrix-numbers {
        gap: 10px;
    }
    
    .matrix-number {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .familyLine {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .circlesWrap {
        justify-content: flex-start;
    }
    
    .table {
        font-size: 14px;
    }
    
    .table th,
    .table td {
        padding: 8px;
    }
    
    .accordionButton {
        font-size: 14px;
    }
    
    .accordion-content {
        padding: 15px;
    }
}

/* Estilos principais do plugin Cosmosfala Matrix */
.cosmosfala-matrix-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.cosmosfala-matrix-header {
    text-align: center;
    margin-bottom: 30px;
}

.cosmosfala-matrix-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cosmosfala-matrix-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Abas */
.cosmosfala-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 5px;
}

.tab-button {
    background: none;
    border: none;
    color: #fff;
    padding: 15px 25px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 200px;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-button.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Formulários */
.cosmosfala-form-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
}

.tab-content {
    display: none;
}

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

.cosmosfala-form .form-group {
    margin-bottom: 20px;
}

.cosmosfala-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.cosmosfala-form input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.cosmosfala-form input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cosmosfala-form input[type="text"]::placeholder {
    color: #999;
}

/* Opções de gênero */
.gender-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.gender-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #333;
    font-weight: normal;
}

.gender-options input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

/* Botão */
.cosmosfala-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
    display: block;
}

.cosmosfala-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.cosmosfala-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Resultados */
.cosmosfala-results {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 30px;
    margin-top: 20px;
    color: #333;
}

.cosmosfala-loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cosmosfala-result-content {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Grid da Matriz */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
}

.matrix-cell {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.matrix-cell:hover {
    transform: translateY(-3px);
}

.matrix-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.matrix-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.matrix-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

/* Interpretações */
.interpretations {
    margin-top: 30px;
}

.interpretation-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.interpretation-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.interpretation-text {
    color: #555;
    line-height: 1.6;
}

/* Compatibilidade */
.compatibility-result {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.compatibility-score {
    font-size: 3rem;
    font-weight: bold;
    color: #d63384;
    margin-bottom: 10px;
}

.compatibility-level {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d63384;
    margin-bottom: 15px;
}

.compatibility-analysis {
    background: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.compatibility-analysis ul {
    list-style: none;
    padding: 0;
}

.compatibility-analysis li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.compatibility-analysis li:last-child {
    border-bottom: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .cosmosfala-matrix-container {
        margin: 10px;
        padding: 15px;
    }
    
    .cosmosfala-matrix-header h2 {
        font-size: 2rem;
    }
    
    .cosmosfala-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-button {
        max-width: none;
    }
    
    .matrix-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .gender-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .cosmosfala-form-container {
        padding: 20px;
    }
    
    .cosmosfala-results {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .cosmosfala-matrix-header h2 {
        font-size: 1.5rem;
    }
    
    .cosmosfala-matrix-header p {
        font-size: 1rem;
    }
    
    .matrix-number {
        font-size: 1.5rem;
    }
    
    .compatibility-score {
        font-size: 2rem;
    }
}

/* Animações adicionais */
.cosmosfala-matrix-container {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados de erro */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin: 15px 0;
}

/* Estilos adicionais */
.cosmosfala-score {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Remover referência a fontes externas */
.cosmosfala-matrix-container * {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Estilos para a nova seção de Chakras */
.chakra-section {
    margin-top: 30px;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chakra-section h3 {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.chakra-intro {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
    font-style: italic;
}

.chakra-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.chakra-item {
    padding: 15px;
    border-radius: 8px;
    background: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.chakra-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.chakra-item h4 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.numerology-number {
    font-weight: 700;
    color: #333;
    font-size: 15px;
}

.arcano-number {
    font-weight: 700;
    color: #667eea; /* Cor principal do tema */
    font-size: 15px;
}

.method-explanation {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    color: #333;
    font-size: 15px;
    border: 1px solid #e0e0e0;
}

.chakra-item p {
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

.chakra-interpretation {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.chakra-interpretation h5 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.chakra-interpretation p {
    font-style: italic;
    color: #444;
}

/* Cores dos Chakras (apenas para referência visual no CSS, a cor principal é definida inline) */
.chakra-item[style*="#FF4500"] { /* Muladhara - Vermelho */ }
.chakra-item[style*="#FF8C00"] { /* Svadhisthana - Laranja */ }
.chakra-item[style*="#FFD700"] { /* Manipura - Amarelo */ }
.chakra-item[style*="#3CB371"] { /* Anahata - Verde */ }
.chakra-item[style*="#00BFFF"] { /* Vishuddha - Azul Claro */ }
.chakra-item[style*="#4B0082"] { /* Ajna - Índigo */ }
.chakra-item[style*="#9370DB"] { /* Sahasrara - Violeta */ }
