/* =========================================================
   CVEWORKS - HASH SEARCH 2
   PADRÃO VISUAL CVEWORKS
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: #f7f7f8;
    color: #202124;
    line-height: 1.6;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
textarea,
input,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


/* =========================================================
   COLORS
========================================================= */

:root {
    --red: #d71920;
    --red-dark: #bd151b;
    --red-brand: #c90000;

    --text: #202124;
    --muted: #666666;

    --white: #ffffff;
    --page: #f7f7f8;

    --border: #e5e5e5;
}


/* =========================================================
   CONTAINER
   PADRÃO CVEWORKS
========================================================= */

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
   PADRÃO CVEWORKS
========================================================= */

.site-header {
    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #e5e5e7;
}


.header-content {
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    font-size: 20px;
    font-weight: 800;

    letter-spacing: -0.4px;
}


.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    background: #c90000;
    color: #ffffff;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.5px;
    line-height: 1;
}


.logo-name {
    color: #202124;

    font-size: 20px;
    font-weight: 800;

    letter-spacing: -0.4px;
    line-height: normal;
}


.logo-name span {
    color: #c90000;
}


/* =========================================================
   NAVIGATION
========================================================= */

.navigation {
    display: flex;
    align-items: center;

    gap: 32px;
}


.navigation a {
    color: #5f6368;

    font-size: 14px;
    font-weight: 600;

    transition: color 0.2s ease;
}


.navigation a:hover {
    color: #c90000;
}


/* =========================================================
   AMAZON BANNER
========================================================= */

.amazon-banner {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 15px auto;

    overflow: hidden;
}


.amazon-banner a {
    display: block;

    width: 100%;
    max-width: 1136px;
}


.amazon-banner img {
    display: block;

    width: 100%;
    max-width: 1136px;
    height: auto;

    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    padding: 60px 0 45px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fffafa 100%
        );

    text-align: center;
}


.hero-badge {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    padding: 7px 14px;

    background: #fff1f1;

    border: 1px solid #ffd5d5;
    border-radius: 30px;

    color: #c4161c;

    font-size: 12px;
    font-weight: 700;
}


.hero h1 {
    margin-bottom: 15px;

    color: #171717;

    font-size: 46px;
    line-height: 1.1;

    letter-spacing: -1.3px;

    font-weight: 800;
}


.hero h1 span {
    color: #d71920;
}


.hero p {
    max-width: 760px;

    margin: 0 auto;

    color: #666666;

    font-size: 17px;
    line-height: 1.6;
}


/* =========================================================
   SECTION LABEL
========================================================= */

.section-label {
    display: inline-block;

    margin-bottom: 18px;
    padding: 9px 16px;

    color: #c90000;

    background: #ffffff;

    border: 1px solid #f3bcbc;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}


/* =========================================================
   ANALYZER
========================================================= */

.analyzer-section {
    padding: 10px 0 65px;

    background: #f7f7f8;
}


.tool-panel {
    max-width: 900px;

    margin: 0 auto;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5e5e5;
    border-radius: 16px;

    box-shadow:
        0 8px 28px
        rgba(0, 0, 0, 0.06);
}


/* =========================================================
   PRIVACY
========================================================= */

.privacy-strip {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 15px 22px;

    background: #f5fbf7;

    border-bottom: 1px solid #e2eee6;
}


.privacy-icon {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    color: #17733a;

    background: #def2e5;

    border-radius: 50%;

    font-weight: 900;
}


.privacy-strip strong {
    display: block;

    font-size: 13px;
}


.privacy-strip span {
    display: block;

    margin-top: 2px;

    color: #5e6a62;

    font-size: 12px;
}


/* =========================================================
   TABS
========================================================= */

.mode-tabs {
    display: grid;

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

    border-bottom: 1px solid #e5e5e5;
}


.mode-tab {
    padding: 16px 12px;

    color: #5f646b;

    background: #fafafa;

    border: 0;
    border-right: 1px solid #e5e5e5;

    font-size: 14px;
    font-weight: 800;
}


.mode-tab:last-child {
    border-right: 0;
}


.mode-tab.active {
    color: #d71920;

    background: #ffffff;

    box-shadow:
        inset 0 -3px 0 #d71920;
}


/* =========================================================
   MODE PANEL
========================================================= */

.mode-panel {
    display: none;

    padding: 28px;
}


.mode-panel.active {
    display: block;
}


/* =========================================================
   FIELDS
========================================================= */

.field-group label {
    display: block;

    margin-bottom: 9px;

    color: #333333;

    font-size: 14px;
    font-weight: 800;
}


.field-group small {
    display: block;

    margin-top: 8px;

    color: #888888;

    font-size: 12px;
}


textarea {
    width: 100%;
    min-height: 210px;

    resize: vertical;

    padding: 16px 17px;

    color: #202428;

    background: #fafafa;

    border: 2px solid #dddddd;
    border-radius: 10px;

    outline: none;

    font-family:
        "Courier New",
        monospace;

    font-size: 13px;
    line-height: 1.55;

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


textarea:focus {
    background: #ffffff;

    border-color: #d71920;

    box-shadow:
        0 0 0 3px
        rgba(215, 25, 32, 0.08);
}


textarea::placeholder {
    color: #aaaaaa;
}


.compact-textarea {
    min-height: 130px;
}


.compare-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 18px;
}


/* =========================================================
   BUTTONS
========================================================= */

.button-row {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 18px;
}


.btn {
    min-height: 46px;

    padding: 0 18px;

    border-radius: 9px;

    border: 1px solid transparent;

    font-size: 13px;
    font-weight: 800;

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


.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}


.btn-primary {
    color: #ffffff;

    background: #d71920;

    border-color: #d71920;
}


.btn-primary:hover:not(:disabled) {
    background: #bd151b;

    border-color: #bd151b;
}


.btn-secondary {
    color: #666666;

    background: #ffffff;

    border-color: #dddddd;
}


.btn-secondary:hover:not(:disabled) {
    color: #c4161c;

    background: #fff5f5;

    border-color: #e7b0b0;
}


.btn:disabled {
    cursor: not-allowed;

    opacity: 0.55;
}


/* =========================================================
   FILE DROP
========================================================= */

.drop-zone {
    min-height: 260px;

    padding: 38px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background: #fafafa;

    border: 2px dashed #d9dcdf;
    border-radius: 14px;

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


.drop-zone.dragover {
    background: #fff5f5;

    border-color: #d71920;
}


.drop-zone:hover {
    border-color: #e17a7e;
}


.drop-icon {
    width: 58px;
    height: 58px;

    margin-bottom: 12px;

    display: grid;
    place-items: center;

    color: #d71920;

    background: #fff0f0;

    border-radius: 50%;

    font-size: 30px;
    font-weight: 900;
}


.drop-zone h2 {
    margin: 0;

    color: #171717;

    font-size: 20px;
}


.drop-zone p {
    margin: 6px 0;

    color: #62686f;
}


.drop-zone span {
    color: #8a8f95;

    font-size: 12px;
}


.file-summary {
    margin-top: 15px;

    padding: 15px 17px;

    background: #fafafa;

    border: 1px solid #e5e5e5;
    border-radius: 10px;

    font-size: 13px;
}


/* =========================================================
   RESULTS
========================================================= */

.results-section {
    padding: 0 0 65px;

    background: #f7f7f8;
}


.results-box {
    max-width: 900px;

    margin: 0 auto;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #e5e5e5;
    border-radius: 16px;

    box-shadow:
        0 8px 28px
        rgba(0, 0, 0, 0.06);
}


.results-heading {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 24px;
}


.results-heading .section-label {
    margin-bottom: 11px;
}


.results-heading h2 {
    margin: 0;

    color: #171717;

    font-size: 28px;
    line-height: 1.15;

    letter-spacing: -0.7px;
}


.results-heading h2 span {
    color: #d71920;
}


.export-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}


.small-btn {
    min-height: 35px;

    padding: 0 12px;

    color: #555555;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 8px;

    font-size: 12px;
    font-weight: 800;
}


.small-btn:hover {
    color: #d71920;

    border-color: #e5999c;
}


/* =========================================================
   RESULT CARDS
========================================================= */

.result-card {
    margin-top: 14px;

    overflow: hidden;

    border: 1px solid #e5e5e5;
    border-radius: 12px;
}


.result-card:first-child {
    margin-top: 0;
}


.result-card-header {
    padding: 12px 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    background: #f8f9fa;

    border-bottom: 1px solid #e5e5e5;
}


.result-card-header h3 {
    margin: 0;

    color: #222222;

    font-size: 14px;
}


.result-badge {
    padding: 5px 9px;

    color: #a40d12;

    background: #ffebec;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 0.6px;

    text-transform: uppercase;
}


.result-table {
    width: 100%;

    border-collapse: collapse;
}


.result-table th,
.result-table td {
    padding: 12px 16px;

    vertical-align: top;

    text-align: left;

    border-bottom: 1px solid #eff0f1;

    font-size: 13px;
}


.result-table tr:last-child th,
.result-table tr:last-child td {
    border-bottom: 0;
}


.result-table th {
    width: 190px;

    color: #656b72;

    font-weight: 700;
}


.result-table td {
    word-break: break-word;
}


.code-value {
    font-family:
        Consolas,
        "Courier New",
        monospace;
}


.result-message {
    padding: 16px;

    color: #474d53;

    font-size: 13px;
}


.result-message.success {
    color: #166534;

    background: #f0fdf4;
}


.result-message.error {
    color: #991b1b;

    background: #fef2f2;
}


.result-message.warning {
    color: #854d0e;

    background: #fffbeb;
}


.decoded-block {
    margin: 0;

    padding: 16px;

    max-height: 340px;

    overflow: auto;

    color: #202428;

    background: #fbfbfc;

    white-space: pre-wrap;
    word-break: break-word;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 12px;
    line-height: 1.55;
}


.metric-grid {
    display: grid;

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

    gap: 12px;

    padding: 16px;
}


.metric {
    padding: 13px;

    background: #fafafa;

    border: 1px solid #e5e5e5;
    border-radius: 10px;
}


.metric span {
    display: block;

    color: #747a81;

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
}


.metric strong {
    display: block;

    margin-top: 4px;

    color: #222222;

    font-size: 17px;
}


.ioc-list {
    display: grid;

    gap: 8px;

    padding: 15px;
}


.ioc-item {
    padding: 10px 12px;

    display: grid;

    grid-template-columns:
        110px 1fr;

    gap: 14px;

    background: #fafafa;

    border: 1px solid #ededed;
    border-radius: 8px;

    font-size: 12px;
}


.ioc-item strong {
    color: #d71920;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading {
    max-width: 750px;

    margin: 0 auto 32px;

    text-align: center;
}


.section-heading h2 {
    margin: 0;

    color: #171717;

    font-size: 30px;
    line-height: 1.2;

    font-weight: 800;
}


.section-heading h2 span {
    color: #d71920;
}


.section-heading p {
    margin: 12px auto 0;

    color: #666666;

    font-size: 15px;
}


/* =========================================================
   COMPATIBILITY
========================================================= */

.compatibility-section {
    padding: 65px 0;

    background: #ffffff;

    border-top: 1px solid #eeeeee;
}


.recognition-grid {
    display: grid;

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

    gap: 16px;
}


.recognition-card {
    position: relative;

    overflow: hidden;

    min-height: 200px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #e7e7e7;
    border-radius: 13px;

    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.035);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.recognition-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 0;
    height: 4px;

    background: #d71920;

    transition: width 0.48s ease;
}


.recognition-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 10px 24px
        rgba(0, 0, 0, 0.07);
}


.recognition-card:hover::before {
    width: 100%;
}


/*
   ALTERAÇÃO SOLICITADA:
   quadrados dos formatos agora vermelhos
*/

.format-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 48px;
    height: 42px;

    padding: 0 9px;

    color: #ffffff;

    background: #c90000;

    border-radius: 9px;

    font-size: 11px;
    font-weight: 900;
}


.recognition-card h3 {
    margin: 18px 0 8px;

    color: #222222;

    font-size: 17px;
}


.recognition-card p {
    margin: 0;

    color: #6e747b;

    font-size: 13px;
}


/* =========================================================
   SECURITY NOTES
========================================================= */

.info-section {
    padding: 65px 0;

    background: #f7f7f8;
}


.info-grid {
    display: grid;

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

    gap: 14px;

    max-width: 900px;

    margin: 0 auto;
}


.info-card {
    display: flex;

    gap: 12px;

    padding: 16px;

    background: #ffffff;

    border: 1px solid #e5e5e5;
    border-radius: 12px;
}


.status-dot {
    width: 10px;
    height: 10px;

    flex-shrink: 0;

    margin-top: 6px;

    border-radius: 50%;
}


.info-card.danger .status-dot {
    background: #d71920;
}


.info-card.warning .status-dot {
    background: #f59e0b;
}


.info-card.success .status-dot {
    background: #16a34a;
}


.info-card h3 {
    margin: 0 0 6px;

    color: #222222;

    font-size: 15px;
}


.info-card p {
    margin: 0;

    color: #6d737a;

    font-size: 13px;
}


/* =========================================================
   HACKERDNA
========================================================= */

.affiliate-section {
    padding: 64px 0;

    background: #f7f7f8;
}


.affiliate-box {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 38px 42px;

    background: #ffffff;

    border: 1px solid #e5e5e5;
    border-radius: 14px;

    box-shadow:
        0 3px 15px
        rgba(0, 0, 0, 0.035);

    overflow: hidden;
}


.affiliate-box::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    right: -120px;
    top: -130px;

    border-radius: 50%;

    background: #d71920;

    opacity: 0.035;

    pointer-events: none;
}


.affiliate-content {
    position: relative;

    z-index: 1;

    max-width: 760px;
}


.affiliate-box h2 {
    margin-top: 12px;

    color: #171717;

    font-size: 28px;
    line-height: 1.2;
}


.affiliate-box p {
    margin-top: 8px;

    color: #686868;

    font-size: 14px;
    line-height: 1.7;
}


.affiliate-button {
    position: relative;

    z-index: 1;

    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    min-height: 46px;

    padding: 0 20px;

    border-radius: 8px;

    background: #d71920;

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    box-shadow:
        0 5px 16px
        rgba(215, 25, 32, 0.18);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.affiliate-button:hover {
    background: #bd151b;

    transform: translateY(-1px);
}


.affiliate-button span {
    font-size: 18px;
}


.affiliate-disclosure {
    margin-top: 13px !important;

    color: #999999 !important;

    font-size: 11px !important;
    line-height: 1.5 !important;
}


/* =========================================================
   FOOTER
   PADRÃO CVEWORKS
========================================================= */

.site-footer {
    width: 100%;

    background: #ffffff;

    border-top: 1px solid #dddddd;
}


.footer-content {
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.footer-copyright {
    margin: 0;

    color: #85898d;

    font-size: 11px;
}


.footer-author {
    margin: 0;

    color: #85898d;

    font-size: 11px;
}


.footer-author a {
    color: #d71920;

    font-weight: 500;
}


.footer-author a:hover {
    text-decoration: underline;
}


.footer-separator {
    margin: 0 4px;

    color: #999999;
}


/* =========================================================
   UTILITIES
========================================================= */

.hidden {
    display: none !important;
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 900px) {

    .recognition-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


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


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


    .affiliate-box {
        align-items: flex-start;

        flex-direction: column;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 700px) {

    .footer-content {
        min-height: auto;

        padding: 18px 0;

        flex-direction: column;
        align-items: flex-start;

        gap: 6px;
    }


    .results-heading {
        align-items: flex-start;

        flex-direction: column;
    }

}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    .container {
        width: min(1180px, calc(100% - 24px));
    }


    .navigation {
        gap: 16px;
    }


    .navigation a {
        font-size: 12px;
    }


    .logo-name {
        font-size: 18px;
    }


    .logo-mark {
        width: 36px;
        height: 36px;
    }


    .hero {
        padding: 45px 0 38px;
    }


    .hero h1 {
        font-size: 32px;
    }


    .hero p {
        font-size: 15px;
    }


    .mode-tabs {
        grid-template-columns:
            1fr 1fr;
    }


    .mode-tab:nth-child(2) {
        border-right: 0;
    }


    .mode-tab:nth-child(-n+2) {
        border-bottom: 1px solid #e5e5e5;
    }


    .mode-panel,
    .results-box {
        padding: 20px;
    }


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


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


    .result-table th {
        width: 125px;
    }


    .ioc-item {
        grid-template-columns: 1fr;

        gap: 4px;
    }


    .affiliate-box {
        padding: 28px 24px;
    }


    .affiliate-box h2 {
        font-size: 24px;
    }

}


/* =========================================================
   RESPONSIVE - VERY SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .footer-content {
        align-items: center;

        text-align: center;
    }

}
