/**
 * Componente Texto Simples
 * Estilos para exibição de texto com largura configurável
 */

.texto-simples {
    width: 100%;
    padding: 64px 0;
    background-color: var(--neutral-1000);
}

.texto-simples__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 64px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.texto-simples__content {
    width: 100%;
    color: var(--neutral-0);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}

/* Largura menor - 640px */
.texto-simples--menor .texto-simples__content {
    max-width: 640px;
}

/* Largura maior - 840px */
.texto-simples--maior .texto-simples__content {
    max-width: 840px;
}

/* Estilos para elementos dentro do texto */
.texto-simples__content h1,
.texto-simples__content h2,
.texto-simples__content h3,
.texto-simples__content h4,
.texto-simples__content h5,
.texto-simples__content h6 {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-semibold);
    color: var(--neutral-0);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.texto-simples__content h1 {
    font-size: 48px;
    line-height: 1.167;
    text-align: center;
}

.texto-simples__content h2 {
    font-size: 40px;
    line-height: 1.2;
}

.texto-simples__content h3 {
    font-size: 32px;
    line-height: 1.25;
}

.texto-simples__content h4 {
    font-size: 24px;
    line-height: 1.33;
}

.texto-simples__content h5 {
    font-size: 20px;
    line-height: 1.4;
}

.texto-simples__content h6 {
    font-size: 18px;
    line-height: 1.44;
}

.texto-simples__content p {
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.texto-simples__content p:last-child {
    margin-bottom: 0;
}

.texto-simples__content ul,
.texto-simples__content ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

.texto-simples__content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.texto-simples__content a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.texto-simples__content a:hover {
    color: var(--accent-primary-dark);
    text-decoration: underline;
}

.texto-simples__content strong,
.texto-simples__content b {
    font-weight: var(--font-weight-semibold);
}

.texto-simples__content em,
.texto-simples__content i {
    font-style: italic;
}

.texto-simples__content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--accent-primary);
    background-color: var(--neutral-900);
    font-style: italic;
}

.texto-simples__content code {
    background-color: var(--neutral-800);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.texto-simples__content pre {
    background-color: var(--neutral-800);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.texto-simples__content pre code {
    background: none;
    padding: 0;
}

.character-counter {
    font-size: 12px;
    color: #030217;
    margin-top: -5px;
    padding-left: 2px;
    text-align: left;
    font-weight: 400;
}

/* Responsividade */
@media (max-width: 768px) {
    .texto-simples {
        padding: 32px 0;
    }
    
    .texto-simples__container {
        padding: 0 16px;
    }
    
    .texto-simples__content {
        font-size: 14px;
    }
    
    .texto-simples__content h1 {
        font-size: 32px;
    }
    
    .texto-simples__content h2 {
        font-size: 28px;
    }
    
    .texto-simples__content h3 {
        font-size: 24px;
    }
    
    .texto-simples__content h4 {
        font-size: 20px;
    }
    
    .texto-simples__content h5 {
        font-size: 18px;
    }
    
    .texto-simples__content h6 {
        font-size: 16px;
    }
    
    /* Ajusta larguras para mobile */
    .texto-simples--menor .texto-simples__content,
    .texto-simples--maior .texto-simples__content {
        max-width: 100%;
    }

    .character-counter {
        font-size: 8px;
    }    
}

@media (max-width: 480px) {
    .texto-simples__container {
        padding: 0 12px;
    }
    
    .texto-simples__content {
        font-size: 13px;
    }
    
    .texto-simples__content h1 {
        font-size: 28px;
    }
    
    .texto-simples__content h2 {
        font-size: 24px;
    }
    
    .texto-simples__content h3 {
        font-size: 20px;
    }
}
