/* =========================================================
   VERIFICADOR DE LINKS SUSPEITOS
   Estilos específicos da ferramenta
   ========================================================= */


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

.link-orientation {
    margin-bottom: 0;
}

.orientation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.orientation-item {
    display: flex;
    gap: 16px;
    padding: 22px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.orientation-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.orientation-item h3 {
    margin: 2px 0 8px;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.35;
}

.orientation-item p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.orientation-security-box {
    margin-top: 24px;
}


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

.suspicious-link-card {
    max-width: 900px;
    margin: 0 auto;
}

.section-intro {
    margin-bottom: 24px;
}

.section-intro h2 {
    margin-bottom: 10px;
}

.section-intro p {
    color: #64748b;
    line-height: 1.7;
}


/* =========================================================
   AVISO DE SEGURANÇA
   ========================================================= */

.link-security-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 24px 0;
    padding: 18px 20px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
}

.link-security-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #dbeafe;
    font-size: 20px;
}

.link-security-box strong {
    display: block;
    margin-bottom: 5px;
    color: #1e3a8a;
    font-size: 15px;
}

.link-security-box p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   CAMPO DA URL
   ========================================================= */

.url-input-wrapper {
    margin-top: 24px;
}

.url-input-wrapper label {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
}

.url-input-wrapper input {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #1e293b;
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.url-input-wrapper input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.field-help {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}


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

.suspicious-link-result {
    display: none;
    margin-top: 30px;
}

.suspicious-link-result.active {
    display: block;
}


/* =========================================================
   RESUMO DO RISCO
   ========================================================= */

.risk-summary {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.risk-summary.low {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.risk-summary.medium {
    background: #fffbeb;
    border-color: #fde68a;
}

.risk-summary.high {
    background: #fef2f2;
    border-color: #fecaca;
}

.risk-summary.invalid {
    background: #fef2f2;
    border-color: #fecaca;
}

.risk-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #e2e8f0;
    font-size: 23px;
}

.risk-summary.low .risk-icon {
    background: #dcfce7;
    color: #166534;
}

.risk-summary.medium .risk-icon {
    background: #fef3c7;
    color: #92400e;
}

.risk-summary.high .risk-icon,
.risk-summary.invalid .risk-icon {
    background: #fee2e2;
    color: #991b1b;
}

.risk-content {
    min-width: 0;
}

.result-total-label {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.risk-content h3 {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 21px;
    line-height: 1.3;
}

.risk-content p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}


/* =========================================================
   RESUMO DA URL
   ========================================================= */

.url-summary {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}

.url-summary-label {
    margin-bottom: 7px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.url-summary-value {
    overflow-wrap: anywhere;
    color: #1e293b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    line-height: 1.6;
}

.domain-summary {
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   INDICADORES
   ========================================================= */

.risk-indicators {
    margin-top: 24px;
}

.risk-indicators h3 {
    margin-bottom: 14px;
    color: #0f172a;
    font-size: 18px;
}

.indicator-list {
    display: grid;
    gap: 10px;
}

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

.indicator-status {
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

.indicator-item.safe {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.indicator-item.safe .indicator-status {
    background: #dcfce7;
    color: #166534;
}

.indicator-item.warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.indicator-item.warning .indicator-status {
    background: #fef3c7;
    color: #92400e;
}

.indicator-item.danger {
    border-color: #fecaca;
    background: #fef2f2;
}

.indicator-item.danger .indicator-status {
    background: #fee2e2;
    color: #991b1b;
}

.indicator-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.indicator-content strong {
    color: #1e293b;
    font-size: 14px;
    line-height: 1.4;
}

.indicator-content span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   RECOMENDAÇÃO
   ========================================================= */

.link-recommendation {
    margin-top: 24px;
    padding: 20px;
    border-left: 4px solid #2563eb;
    border-radius: 0 10px 10px 0;
    background: #eff6ff;
}

.link-recommendation h3 {
    margin: 0 0 7px;
    color: #1e3a8a;
    font-size: 17px;
}

.link-recommendation p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}


/* =========================================================
   AÇÕES DO RESULTADO
   ========================================================= */

.result-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}


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

.interpretation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 25px;
    margin-bottom: 40px;
}

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

.interpretation-item.low {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.interpretation-item.medium {
    border-color: #fde68a;
    background: #fffbeb;
}

.interpretation-item.high {
    border-color: #fecaca;
    background: #fef2f2;
}

.interpretation-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #e2e8f0;
    font-size: 18px;
}

.interpretation-item.low .interpretation-icon {
    background: #dcfce7;
    color: #166534;
}

.interpretation-item.medium .interpretation-icon {
    background: #fef3c7;
    color: #92400e;
}

.interpretation-item.high .interpretation-icon {
    background: #fee2e2;
    color: #991b1b;
}

.interpretation-item h3 {
    margin: 1px 0 7px;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.35;
}

.interpretation-item p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.info-section-intro {
    margin-top: 10px;
}


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

.suspicious-link-info {
    max-width: 1100px;
    margin: 0 auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

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

.info-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eff6ff;
    font-size: 20px;
}

.info-item h3 {
    margin: 1px 0 7px;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.35;
}

.info-item p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}


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

.link-info-tip {
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

.link-info-tip strong {
    color: #1e3a8a;
}


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

.limitations-box {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.limitations-box h3 {
    margin: 0 0 9px;
    color: #0f172a;
    font-size: 17px;
}

.limitations-box p {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.limitations-box p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   BOA PRÁTICA
   ========================================================= */

.link-best-practice {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}

.link-best-practice h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 17px;
}

.link-best-practice p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}


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

@media print {

    .link-orientation,
    .suspicious-link-info,
    .ad-container,
    .actions,
    .result-actions {
        display: none !important;
    }

    .suspicious-link-card {
        max-width: none;
        margin: 0;
        border: none;
        box-shadow: none;
    }

    .suspicious-link-result {
        display: block !important;
        margin-top: 0;
    }

    .risk-summary,
    .url-summary,
    .indicator-item,
    .link-recommendation {
        break-inside: avoid;
    }

}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 1050px) {

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

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

}


@media (max-width: 700px) {

    .info-grid {
        grid-template-columns: 1fr;
    }

    .risk-summary {
        gap: 14px;
        padding: 18px;
    }

    .risk-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 20px;
    }

    .risk-content h3 {
        font-size: 18px;
    }

    .orientation-item,
    .info-item,
    .interpretation-item {
        padding: 17px;
    }

}


@media (max-width: 600px) {

    .link-security-box {
        gap: 12px;
        padding: 15px;
    }

    .link-security-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 17px;
    }

    .result-actions {
        justify-content: stretch;
    }

    .result-actions .tool-button {
        width: 100%;
    }

    .url-summary-value {
        font-size: 13px;
    }

}