/* ============================================================
   GERADOR DE TEXTO ALEATÓRIO
   CSS ESPECÍFICO DA FERRAMENTA
   ============================================================ */


/* ============================================================
   ÁREA PRINCIPAL
   ============================================================ */

.random-text-tool {

    max-width: 900px;
    margin: 0 auto;

}


/* ============================================================
   ORIENTAÇÃO
   ============================================================ */

.random-text-orientation {

    padding-top: 0;

}


.random-text-orientation .section-card {

    max-width: 1000px;
    margin: 0 auto;

}


.random-text-orientation .section-intro {

    max-width: 850px;
    margin: 0 0 28px;

}


.random-text-steps {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-bottom: 25px;

}


.random-text-step {

    display: flex;

    align-items: flex-start;

    gap: 14px;

    padding: 20px;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    background: #ffffff;

}


.random-text-step-number {

    flex: 0 0 34px;

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #2563eb;

    color: #ffffff;

    font-size: 0.95rem;

    font-weight: 700;

}


.random-text-step h3 {

    margin: 2px 0 7px;

    color: #0f172a;

    font-size: 1rem;

}


.random-text-step p {

    margin: 0;

    color: #64748b;

    font-size: 0.92rem;

    line-height: 1.55;

}


.random-text-orientation .tool-tip {

    margin-top: 5px;

}


/* ============================================================
   TÍTULO E DESCRIÇÃO INTERNA
   ============================================================ */

.random-text-title {

    margin: 0 0 8px;

    color: #0f172a;

    font-size: 1.55rem;

    font-weight: 700;

    line-height: 1.3;

}


.random-text-description {

    margin: 0 0 28px;

    color: #64748b;

    font-size: 1rem;

    line-height: 1.6;

}


/* ============================================================
   CONFIGURAÇÕES
   ============================================================ */

.random-text-settings {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px 28px;

    margin-bottom: 26px;

}


.random-text-field {

    min-width: 0;

}


.random-text-field label.main-label {

    display: block;

    margin-bottom: 8px;

    color: #1e293b;

    font-weight: 600;

}


.random-text-select,
.random-text-number {

    width: 100%;

    min-height: 46px;

    box-sizing: border-box;

    padding: 10px 13px;

    border: 1px solid #e2e8f0;

    border-radius: 9px;

    background: #ffffff;

    color: #1e293b;

    font-family: inherit;

    font-size: 0.96rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


.random-text-select:focus,
.random-text-number:focus {

    outline: none;

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);

}


.random-text-help {

    display: block;

    margin-top: 7px;

    color: #64748b;

    font-size: 0.82rem;

    line-height: 1.4;

}


/* ============================================================
   OPÇÕES
   ============================================================ */

.random-text-options-area {

    grid-column: 1 / -1;

    padding-top: 2px;

}


.random-text-options-title {

    display: block;

    margin-bottom: 12px;

    color: #1e293b;

    font-weight: 600;

}


.random-text-options {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

}


.random-text-option {

    display: flex;

    align-items: center;

    gap: 9px;

    min-height: 42px;

    padding: 10px 12px;

    border: 1px solid #e2e8f0;

    border-radius: 9px;

    background: #f8fafc;

    color: #475569;

    font-size: 0.92rem;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;

}


.random-text-option:hover {

    border-color: #bfdbfe;

    background: #f8fbff;

}


.random-text-option input {

    width: 17px;

    height: 17px;

    margin: 0;

    accent-color: #2563eb;

    cursor: pointer;

}


/* ============================================================
   AÇÕES
   ============================================================ */

.random-text-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 5px;

}


.random-text-button {

    min-height: 44px;

    padding: 10px 17px;

    border: 1px solid #cbd5e1;

    border-radius: 9px;

    background: #ffffff;

    color: #1e293b;

    font-family: inherit;

    font-size: 0.92rem;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.1s ease;

}


.random-text-button:hover {

    border-color: #94a3b8;

    background: #f8fafc;

}


.random-text-button:active {

    transform: translateY(1px);

}


.random-text-button.primary {

    border-color: #2563eb;

    background: #2563eb;

    color: #ffffff;

}


.random-text-button.primary:hover {

    border-color: #1d4ed8;

    background: #1d4ed8;

}


/* ============================================================
   RESULTADO
   ============================================================ */

.random-text-result {

    margin-top: 34px;

    padding-top: 30px;

    border-top: 1px solid #e2e8f0;

}


.random-text-result-title {

    margin: 0 0 7px;

    color: #0f172a;

    font-size: 1.4rem;

    font-weight: 700;

}


.random-text-result-description {

    margin: 0 0 18px;

    color: #64748b;

    line-height: 1.55;

}


.random-text-output {

    width: 100%;

    min-height: 280px;

    box-sizing: border-box;

    resize: vertical;

    padding: 16px;

    border: 1px solid #e2e8f0;

    border-radius: 10px;

    background: #ffffff;

    color: #1e293b;

    font-family: inherit;

    font-size: 1rem;

    line-height: 1.65;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


.random-text-output:focus {

    outline: none;

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);

}


/* ============================================================
   ESTATÍSTICAS
   ============================================================ */

.random-text-stats {

    display: flex;

    flex-wrap: wrap;

    gap: 24px;

    margin-top: 12px;

    color: #64748b;

    font-size: 0.9rem;

}


.random-text-stat {

    font-weight: 600;

}


.random-text-stat span {

    color: #1e293b;

}


/* ============================================================
   AVISO DE PRIVACIDADE
   ============================================================ */

.random-text-notice {

    margin-top: 22px;

    padding: 14px 16px;

    border: 1px solid #dbeafe;

    border-radius: 10px;

    background: #eff6ff;

    color: #475569;

    font-size: 0.9rem;

    line-height: 1.55;

}


.random-text-notice strong {

    color: #1e40af;

}


/* ============================================================
   INFORMAÇÕES
   ============================================================ */

.random-text-info-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 30px;

}


.random-text-info-grid .tool-info,
.random-text-info-grid .tool-formula {

    min-width: 0;

}


/* ============================================================
   AVISO IMPORTANTE
   ============================================================ */

.random-text-important {

    margin-top: 30px;

}


/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

@media (max-width: 900px) {

    .random-text-steps {

        grid-template-columns: 1fr;

    }


    .random-text-options {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 700px) {

    .random-text-settings,
    .random-text-info-grid {

        grid-template-columns: 1fr;

    }


    .random-text-options {

        grid-template-columns: 1fr;

    }


    .random-text-step {

        padding: 17px;

    }

}


@media (max-width: 600px) {

    .random-text-actions {

        flex-direction: column;

    }


    .random-text-button {

        width: 100%;

    }


    .random-text-output {

        min-height: 230px;

    }


    .random-text-stats {

        gap: 12px 20px;

    }

}


/* ============================================================
   IMPRESSÃO
   ============================================================ */

@media print {

    .random-text-actions,
    .random-text-notice,
    .random-text-orientation,
    .random-text-info-grid,
    .random-text-important,
    .ad-container {

        display: none !important;

    }


    .random-text-output {

        min-height: auto;

        border: 1px solid #000;

        box-shadow: none;

    }

}