/* =========================================================
   GERADOR E VERIFICADOR DE HASH
   CSS ESPECÍFICO DA FERRAMENTA
   ========================================================= */


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

.hash-orientation {
    margin-bottom: 30px;
}

.hash-orientation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.hash-orientation-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}

.hash-orientation-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eff6ff;
    font-size: 21px;
}

.hash-orientation-item h3 {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 17px;
}

.hash-orientation-item p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.hash-orientation-tip {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 22px;
    padding: 18px 20px;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    background: #eff6ff;
}

.hash-tip-icon {
    flex: 0 0 auto;
    font-size: 22px;
    line-height: 1.4;
}

.hash-orientation-tip strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
}

.hash-orientation-tip p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}


/* =========================================================
   ÁREA PRINCIPAL DA FERRAMENTA
   ========================================================= */

.hash-tool-card {
    position: relative;
}

.hash-dynamic-field {
    margin-top: 24px;
}

.hash-dynamic-grid {
    margin-top: 24px;
}

.hash-expected-field {
    margin-top: 20px;
}

.hash-copy-button {
    min-width: 125px;
}


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

.hash-tool-card .result {
    margin-top: 30px;
}

.hash-value {
    display: block;
    width: 100%;
    margin-top: 5px;
    color: #0f172a;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.7;
    word-break: break-all;
    overflow-wrap: anywhere;
}


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

.hash-info-card {
    margin-top: 30px;
}

.hash-algorithm-grid {
    margin-top: 28px;
}


/* =========================================================
   INTERPRETAÇÃO
   ========================================================= */

.hash-interpretation {
    margin-top: 35px;
}

.hash-interpretation > h3 {
    margin: 0 0 18px;
    color: #0f172a;
    font-size: 21px;
}

.hash-interpretation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.hash-interpretation-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}

.hash-interpretation-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #f8fafc;
    font-size: 19px;
}

.hash-interpretation-item h4 {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 16px;
}

.hash-interpretation-item p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}


/* =========================================================
   INFORMAÇÕES TÉCNICAS
   ========================================================= */

.hash-information-box {
    margin-top: 30px;
}

.hash-information-box .calculation-item span {
    line-height: 1.65;
}


/* =========================================================
   DICA
   ========================================================= */

.hash-info-tip {
    margin-top: 25px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.hash-info-tip > div:last-child {
    flex: 1;
}

.hash-info-tip strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
}

.hash-info-tip p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}


/* =========================================================
   LIMITAÇÕES
   ========================================================= */

.hash-limitations {
    margin-top: 25px;
}

.hash-limitations h3 {
    margin-bottom: 10px;
}

.hash-limitations p + p {
    margin-top: 12px;
}


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

@media (max-width: 1050px) {

    .hash-orientation-grid {
        grid-template-columns: 1fr;
    }

    .hash-interpretation-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .hash-orientation {
        margin-bottom: 20px;
    }

    .hash-orientation-item {
        padding: 17px;
    }

    .hash-orientation-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .hash-orientation-tip {
        padding: 16px;
    }

    .hash-interpretation {
        margin-top: 28px;
    }

    .hash-interpretation-item {
        padding: 17px;
    }

    .hash-information-box {
        margin-top: 25px;
    }

    .hash-value {
        font-size: 13px;
    }

}


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

@media print {

    header,
    footer,
    .tool-breadcrumb,
    .ad-container,
    .hash-orientation,
    .actions,
    .result-actions,
    .hash-interpretation,
    .site-info-tip,
    .site-limitations {
        display: none !important;
    }

    .tool-page,
    .tool-section,
    .container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .section-card {
        border: none;
        box-shadow: none;
    }

    .hash-tool-card {
        display: block;
    }

    .hash-tool-card .result {
        display: block;
        margin-top: 20px;
    }

    .hash-info-card {
        display: block;
        margin-top: 25px;
    }

}