/* =========================================
   HTTP RESPONSE CHECKER
========================================= */

.http-page {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(52,112,220,.22),
            transparent 40%
        ),
        #091321;

    color: #f7f9fc;
}

.http-main {
    width: 100%;
    padding: 52px 18px 0;
}

.http-app {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}


/* HEADER */

.http-tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.http-tool-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 11px;

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

    font-size: 42px;
    line-height: 1;
}

.http-title {
    margin: 0;

    color: #fff;

    font-size: 29px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.http-subtitle {
    margin-top: 8px;

    color: #aeb9ca;

    font-size: 14px;
}

.http-intro {
    max-width: 580px;
    margin: 15px auto 0;

    color: #8492a6;

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


/* FORM */

.http-form {
    padding: 22px;

    border: 1px solid rgba(255,255,255,.11);
    border-radius: 19px;

    background: rgba(255,255,255,.055);

    box-shadow: 0 22px 65px rgba(0,0,0,.24);
}

.http-label {
    display: block;
    margin-bottom: 8px;

    color: #aeb9ca;

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

.http-url-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;

    gap: 10px;
}

.http-input,
.http-select {
    width: 100%;
    height: 54px;

    padding: 0 16px;

    border: 1px solid rgba(255,255,255,.13);
    border-radius: 14px;

    outline: none;

    background: rgba(5,15,27,.62);

    color: #fff;

    font-size: 16px;
}

.http-input::placeholder {
    color: #60738c;
}

.http-input:focus,
.http-select:focus {
    border-color: rgba(88,166,255,.58);

    box-shadow:
        0 0 0 3px rgba(88,166,255,.08);
}

.http-input.is-error {
    border-color: rgba(255,105,105,.62);
}

.http-submit {
    min-width: 150px;
    height: 54px;

    padding: 0 20px;

    border: 1px solid rgba(88,166,255,.40);
    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            rgba(88,166,255,.22),
            rgba(88,166,255,.12)
        );

    color: #f5f9ff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
}

.http-submit:hover {
    background:
        linear-gradient(
            180deg,
            rgba(88,166,255,.30),
            rgba(88,166,255,.17)
        );
}

.http-submit:disabled {
    opacity: .55;
    cursor: wait;
}

.http-options {
    display: grid;
    grid-template-columns: 220px 1fr;

    gap: 14px;

    margin-top: 15px;
}

.http-help {
    display: flex;
    align-items: flex-end;

    padding-bottom: 3px;

    color: #71849c;

    font-size: 13px;
    line-height: 1.5;
}

.http-error {
    display: none;

    margin-top: 13px;

    color: #ff9b9b;

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

.http-error.is-visible {
    display: block;
}


/* LOADING */

.http-loading {
    display: none;

    margin-top: 20px;

    text-align: center;

    color: #8294ac;

    font-size: 15px;
}

.http-loading.is-visible {
    display: block;
}


/* RESULTS */

.http-results {
    display: none;
    margin-top: 22px;
}

.http-results.is-visible {
    display: block;
}


/* SUMMARY */

.http-summary {
    padding: 20px 22px;

    border: 1px solid rgba(255,255,255,.11);
    border-radius: 18px;

    background: rgba(255,255,255,.06);
}

.http-summary__top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.http-status {
    font-size: 25px;
    line-height: 1.2;
    font-weight: 800;
}

.http-status--success {
    color: #42d799;
}

.http-status--redirect {
    color: #ffbd5b;
}

.http-status--error {
    color: #ff8585;
}

.http-result-label {
    flex-shrink: 0;

    padding: 7px 11px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;

    color: #9fb0c5;

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.http-summary-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));

    gap: 10px;

    margin-top: 18px;
}

.http-summary-item {
    min-width: 0;

    padding: 13px 14px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;

    background: rgba(255,255,255,.025);
}

.http-summary-label {
    margin-bottom: 5px;

    color: #7f91a9;

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

.http-summary-value {
    color: #edf3fa;

    font-size: 15px;
    line-height: 1.45;

    word-break: break-word;
}


/* MESSAGE */

.http-message {
    display: none;

    margin-top: 14px;
    padding: 15px 17px;

    border-radius: 14px;

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

.http-message.is-visible {
    display: block;
}

.http-message--warning {
    border: 1px solid rgba(255,189,91,.25);

    background: rgba(255,189,91,.07);

    color: #ffd18c;
}

.http-message--error {
    border: 1px solid rgba(255,110,110,.25);

    background: rgba(255,110,110,.07);

    color: #ffabab;
}


/* SECTIONS */

.http-section {
    margin-top: 28px;
}

.http-section__title {
    margin: 0 0 13px;

    color: #eef3f9;

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


/* REDIRECT CHAIN */

.http-chain {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.http-hop {
    padding: 16px 17px;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 15px;

    background: rgba(255,255,255,.045);
}

.http-hop__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;
}

.http-hop__number {
    color: #71849c;

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

.http-hop__url {
    margin-top: 4px;

    color: #f1f5fa;

    font-size: 15px;
    line-height: 1.45;

    word-break: break-word;
}

.http-hop__status {
    flex-shrink: 0;

    padding: 6px 9px;

    border-radius: 999px;

    background: rgba(255,255,255,.06);

    color: #dce6f2;

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

.http-hop__meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px 18px;

    margin-top: 11px;

    color: #8193aa;

    font-size: 13px;
}

.http-hop__location {
    margin-top: 10px;

    color: #ffbd5b;

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

    word-break: break-word;
}

.http-arrow {
    text-align: center;

    color: #60738c;

    font-size: 18px;
}


/* HEADERS */

.http-headers {
    overflow: hidden;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 15px;

    background: rgba(255,255,255,.04);
}

.http-header-row {
    display: grid;
    grid-template-columns: minmax(150px,220px) minmax(0,1fr);

    border-bottom: 1px solid rgba(255,255,255,.07);
}

.http-header-row:last-child {
    border-bottom: 0;
}

.http-header-name,
.http-header-value {
    padding: 11px 14px;

    font-size: 13px;
    line-height: 1.5;
}

.http-header-name {
    color: #8fa1b8;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
}

.http-header-value {
    color: #e4ebf4;

    word-break: break-word;
}


/* HEADERS INSIDE REDIRECT STEP */

.http-hop details {
    margin-top: 12px;
}

.http-hop summary {
    color: #8fa1b8;

    font-size: 13px;

    cursor: pointer;
}

.http-hop details .http-headers {
    margin-top: 10px;
}


/* MOBILE */

@media (max-width: 700px) {

    .http-main {
        padding: 40px 14px 0;
    }

    .http-title {
        font-size: 27px;
    }

    .http-url-row {
        grid-template-columns: 1fr;
    }

    .http-submit {
        width: 100%;
    }

    .http-options {
        grid-template-columns: 1fr;
    }

    .http-help {
        padding-bottom: 0;
    }

    .http-summary-grid {
        grid-template-columns: 1fr;
    }

    .http-header-row {
        grid-template-columns: 1fr;
    }

    .http-header-name {
        padding-bottom: 2px;
    }

    .http-header-value {
        padding-top: 3px;
    }

    .http-hop__top {
        flex-direction: column;
    }
}



/* =========================================
   HTTP RESPONSE — SEO STATUS COLORS
========================================= */

.http-status--ok,
.http-flow__code--ok {
    color: #42d799;
}

.http-status--permanent,
.http-flow__code--permanent {
    color: #f3c85b;
}

.http-status--temporary,
.http-flow__code--temporary {
    color: #ff9f43;
}

.http-status--client-error,
.http-flow__code--client-error {
    color: #ff7373;
}

.http-status--server-error,
.http-flow__code--server-error {
    color: #ff4f68;
}


/* =========================================
   ENTERED URL RESULT
========================================= */

.http-entry-caption {
    margin-bottom: 6px;

    color: #8294ac;

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

.http-seo-badge {
    flex-shrink: 0;

    padding: 7px 11px;

    border-radius: 999px;

    font-size: 10px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: .06em;

    text-transform: uppercase;
}

.http-seo-badge--ok {
    border: 1px solid rgba(66,215,153,.30);
    background: rgba(66,215,153,.08);
    color: #42d799;
}

.http-seo-badge--permanent {
    border: 1px solid rgba(243,200,91,.30);
    background: rgba(243,200,91,.08);
    color: #f3c85b;
}

.http-seo-badge--temporary {
    border: 1px solid rgba(255,159,67,.30);
    background: rgba(255,159,67,.08);
    color: #ffad5d;
}

.http-seo-badge--error {
    border: 1px solid rgba(255,90,105,.30);
    background: rgba(255,90,105,.08);
    color: #ff7b86;
}


/* =========================================
   RESPONSE PATH
========================================= */

.http-section--flow {
    margin-top: 28px;
}

.http-flow {
    display: flex;

    align-items: stretch;

    gap: 0;

    width: 100%;
}

.http-flow__node {
    flex: 1 1 0;
    min-width: 0;

    padding: 17px;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 15px;

    background: rgba(255,255,255,.045);
}

.http-flow__node--first {
    border-color: rgba(255,255,255,.15);
}

.http-flow__node--final {
    border-color: rgba(66,215,153,.20);
}

.http-flow__label {
    margin-bottom: 8px;

    color: #71849c;

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

    letter-spacing: .06em;

    text-transform: uppercase;
}

.http-flow__code {
    margin-bottom: 8px;

    font-size: 19px;
    line-height: 1.25;

    font-weight: 800;
}

.http-flow__url {
    color: #e9eff7;

    font-size: 14px;
    line-height: 1.45;

    word-break: break-word;
}

.http-flow__meta {
    margin-top: 8px;

    color: #71849c;

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

.http-flow__arrow {
    flex: 0 0 42px;

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

    color: #71849c;

    font-size: 22px;
}

.http-flow__location {
    margin-top: 7px;

    color: #9badc2;

    font-size: 12px;
}


/* =========================================
   SEO EXPLANATION
========================================= */

.http-seo-note {
    margin-top: 12px;

    padding: 13px 15px;

    border-radius: 13px;

    font-size: 13px;
    line-height: 1.5;
}

.http-seo-note--ok {
    border: 1px solid rgba(66,215,153,.18);
    background: rgba(66,215,153,.05);
    color: #91e5bf;
}

.http-seo-note--attention {
    border: 1px solid rgba(243,200,91,.20);
    background: rgba(243,200,91,.055);
    color: #e4c97e;
}

.http-seo-note--error {
    border: 1px solid rgba(255,90,105,.20);
    background: rgba(255,90,105,.055);
    color: #ff9aa4;
}


@media (max-width: 700px) {

    .http-flow {
        flex-direction: column;
    }

    .http-flow__arrow {
        flex-basis: 34px;

        transform: rotate(90deg);
    }

}



/* =========================================
   HTTP STATUS — FINAL SEO COLOR LOGIC
========================================= */

/* Direct successful response */
.http-status--ok,
.http-flow__code--ok {
    color: #42d799 !important;
}


/* One permanent redirect — acceptable */
.http-status--permanent,
.http-flow__code--permanent {
    color: #58a6ff !important;
}


/* Multiple redirects — chain warning */
.http-status--multi-redirect,
.http-flow__code--multi-redirect {
    color: #f3c85b !important;
}


/* Temporary redirect */
.http-status--temporary,
.http-flow__code--temporary {
    color: #ff9f43 !important;
}


/* 4xx */
.http-status--client-error,
.http-flow__code--client-error {
    color: #ff7373 !important;
}


/* 5xx */
.http-status--server-error,
.http-flow__code--server-error {
    color: #ff4f68 !important;
}


/* No textual SEO badge */
.http-seo-badge {
    display: none !important;
}




/* =========================================
   RESPONSE DETAILS — STATUS COLORS
========================================= */

/* 2xx */

.http-hop--status-ok {
    border-color: rgba(66,215,153,.25);
}

.http-hop__status--ok {
    border: 1px solid rgba(66,215,153,.28);

    background:
        rgba(66,215,153,.10);

    color: #42d799;
}


/* One 301 / 308 */

.http-hop--status-permanent {
    border-color: rgba(88,166,255,.25);
}

.http-hop__status--permanent {
    border: 1px solid rgba(88,166,255,.30);

    background:
        rgba(88,166,255,.10);

    color: #74b6ff;
}


/* Multiple permanent redirects */

.http-hop--status-multi-redirect {
    border-color: rgba(243,200,91,.28);
}

.http-hop__status--multi-redirect {
    border: 1px solid rgba(243,200,91,.30);

    background:
        rgba(243,200,91,.10);

    color: #f3c85b;
}


/* 302 / 303 / 307 */

.http-hop--status-temporary {
    border-color: rgba(255,159,67,.28);
}

.http-hop__status--temporary {
    border: 1px solid rgba(255,159,67,.30);

    background:
        rgba(255,159,67,.10);

    color: #ffad5d;
}


/* 4xx */

.http-hop--status-client-error {
    border-color: rgba(255,115,115,.32);
}

.http-hop__status--client-error {
    border: 1px solid rgba(255,115,115,.34);

    background:
        rgba(255,115,115,.10);

    color: #ff8585;
}


/* 5xx */

.http-hop--status-server-error {
    border-color: rgba(255,79,104,.38);
}

.http-hop__status--server-error {
    border: 1px solid rgba(255,79,104,.38);

    background:
        rgba(255,79,104,.11);

    color: #ff647b;
}


/* Make status badges visually clearer */

.http-hop__status {
    box-shadow:
        inset 0 0 0 1px
        rgba(255,255,255,.015);
}




/* =========================================
   FINAL RESPONSE — STATUS COLOR
========================================= */

.http-summary-value--ok {
    color: #42d799 !important;
    font-weight: 700;
}

.http-summary-value--permanent {
    color: #58a6ff !important;
    font-weight: 700;
}

.http-summary-value--multi-redirect {
    color: #f3c85b !important;
    font-weight: 700;
}

.http-summary-value--temporary {
    color: #ff9f43 !important;
    font-weight: 700;
}

.http-summary-value--client-error {
    color: #ff7373 !important;
    font-weight: 700;
}

.http-summary-value--server-error {
    color: #ff4f68 !important;
    font-weight: 700;
}


/* =========================================
   ERROR URL — RESPONSE DETAILS
========================================= */

.http-hop--status-client-error .http-hop__url,
.http-hop--status-server-error .http-hop__url {
    color: #ff8585 !important;
}


/* Same logic in visual response path */

.http-flow__node--status-client-error .http-flow__url,
.http-flow__node--status-server-error .http-flow__url {
    color: #ff8585 !important;
}



/* =========================================
   RESPONSE DETAILS — URL STATUS COLORS
========================================= */

/* 2xx */

.http-hop--status-ok .http-hop__url,
.http-hop--status-ok .http-hop__location {
    color: #42d799 !important;
}


/* One permanent 301 / 308 */

.http-hop--status-permanent .http-hop__url,
.http-hop--status-permanent .http-hop__location {
    color: #58a6ff !important;
}


/* Multiple permanent redirects */

.http-hop--status-multi-redirect .http-hop__url,
.http-hop--status-multi-redirect .http-hop__location {
    color: #f3c85b !important;
}


/* Temporary 302 / 303 / 307 */

.http-hop--status-temporary .http-hop__url,
.http-hop--status-temporary .http-hop__location {
    color: #ff9f43 !important;
}


/* 4xx */

.http-hop--status-client-error .http-hop__url,
.http-hop--status-client-error .http-hop__location {
    color: #ff7373 !important;
}


/* 5xx */

.http-hop--status-server-error .http-hop__url,
.http-hop--status-server-error .http-hop__location {
    color: #ff4f68 !important;
}

