/* =========================================
   DNS CHECKER
========================================= */

.dns-page {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(52,112,220,.22),
            transparent 40%
        ),
        #091321;
    color: #f7f9fc;
}


/* =========================================
   MAIN
========================================= */

.dns-main {
    width: 100%;
    padding: 52px 18px 72px;
}

.dns-app {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}


/* =========================================
   TOOL HEADER
========================================= */

.dns-tool-header {
    margin-bottom: 34px;
    text-align: center;
}

.dns-tool-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(88,166,255,.22);
    border-radius: 18px;
    background: rgba(88,166,255,.08);
    color: #58a6ff;
}

.dns-tool-icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dns-title {
    margin: 0;
    color: #fff;
    font-size: 31px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: .7px;
}

.dns-subtitle {
    margin-top: 8px;
    color: #aeb9ca;
    font-size: 16px;
}

.dns-intro {
    max-width: 620px;
    margin: 16px auto 0;
    color: #8fa1b8;
    font-size: 16px;
    line-height: 1.6;
}


/* =========================================
   FORM
========================================= */

.dns-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);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dns-label {
    display: block;
    margin-bottom: 9px;
    color: #aeb9ca;
    font-size: 14px;
    font-weight: 700;
}

.dns-input-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 10px;
}

.dns-input {
    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;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

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

.dns-input:focus {
    border-color: rgba(88,166,255,.58);
    background: rgba(5,15,27,.78);
    box-shadow: 0 0 0 3px rgba(88,166,255,.08);
}

.dns-input.is-error {
    border-color: rgba(255,105,105,.62);
    box-shadow: 0 0 0 3px rgba(255,105,105,.07);
}

.dns-submit {
    min-width: 132px;
    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: 16px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform .12s ease,
        background .16s ease;
}

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

.dns-submit:active {
    transform: scale(.98);
}

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

.dns-help {
    margin-top: 10px;
    color: #71849c;
    font-size: 13px;
    line-height: 1.5;
}

.dns-error {
    display: none;
    margin-top: 13px;
    color: #ff9b9b;
    font-size: 14px;
    line-height: 1.45;
}

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


/* =========================================
   LOADING
========================================= */

.dns-loading {
    display: none;
    padding: 22px 0 4px;
    color: #8fa1b8;
    text-align: center;
    font-size: 14px;
}

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

.dns-loading-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 9px;
    display: inline-block;
    border-radius: 50%;
    background: #58a6ff;
    box-shadow:
        0 0 0 0 rgba(88,166,255,.42);
    animation: dns-pulse 1.35s infinite;
}

@keyframes dns-pulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(88,166,255,.42);
    }

    70% {
        box-shadow:
            0 0 0 9px rgba(88,166,255,0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(88,166,255,0);
    }
}


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

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

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

.dns-result-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    margin-bottom: 13px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 18px;
    background: rgba(255,255,255,.06);
}

.dns-domain {
    min-width: 0;
}

.dns-domain-label {
    margin-bottom: 5px;
    color: #7e90a8;
    font-size: 13px;
}

.dns-domain-name {
    color: #fff;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    word-break: break-word;
}

.dns-summary-status {
    flex-shrink: 0;
    padding: 7px 11px;
    border: 1px solid rgba(66,215,153,.26);
    border-radius: 999px;
    background: rgba(66,215,153,.10);
    color: #71e3b3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .45px;
    text-transform: uppercase;
}

.dns-summary-status.is-error {
    border-color: rgba(255,115,115,.28);
    background: rgba(255,115,115,.10);
    color: #ff8b8b;
}

.dns-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 16px;
    margin-bottom: 13px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(4,14,26,.34);
    color: #8fa1b8;
    font-size: 13px;
    line-height: 1.45;
}

.dns-overview strong {
    color: #dce6f4;
    font-weight: 700;
}

.dns-resolver {
    flex-shrink: 0;
    color: #71849c;
    text-align: right;
}


/* =========================================
   RECORD GRID
========================================= */

.dns-record-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 13px;
}

.dns-record-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 17px;
    background: rgba(255,255,255,.045);
}

.dns-record-card--wide {
    grid-column: 1 / -1;
}

.dns-record-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dns-record-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dns-type {
    min-width: 43px;
    height: 31px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(88,166,255,.27);
    border-radius: 9px;
    background: rgba(88,166,255,.10);
    color: #75b6ff;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 12px;
    font-weight: 800;
}

.dns-record-name {
    margin: 0;
    color: #f3f7fc;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 750;
}

.dns-record-status {
    flex-shrink: 0;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .45px;
    text-transform: uppercase;
}

.dns-record-status.is-found {
    border: 1px solid rgba(66,215,153,.23);
    background: rgba(66,215,153,.09);
    color: #71e3b3;
}

.dns-record-status.is-empty {
    border: 1px solid rgba(143,161,184,.18);
    background: rgba(143,161,184,.07);
    color: #8496ad;
}

.dns-record-status.is-problem {
    border: 1px solid rgba(255,115,115,.24);
    background: rgba(255,115,115,.09);
    color: #ff8b8b;
}

.dns-record-description {
    margin: -5px 0 13px;
    color: #71849c;
    font-size: 12px;
    line-height: 1.45;
}

.dns-ttl {
    margin-left: 7px;
    color: #71849c;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}


/* =========================================
   RECORD VALUES
========================================= */

.dns-values {
    display: grid;
    gap: 8px;
}

.dns-value-row {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 11px;
    background: rgba(4,14,26,.40);
}

.dns-value-main {
    color: #dce8f7;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.dns-value-meta {
    margin-top: 5px;
    color: #71849c;
    font-size: 11px;
    line-height: 1.4;
}

.dns-empty {
    padding: 13px;
    border: 1px dashed rgba(255,255,255,.09);
    border-radius: 11px;
    color: #71849c;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.dns-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
}

.dns-data-item {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 11px;
    background: rgba(4,14,26,.40);
}

.dns-data-label {
    margin-bottom: 5px;
    color: #71849c;
    font-size: 11px;
    line-height: 1.3;
}

.dns-data-value {
    color: #dce8f7;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.dns-record-error {
    padding: 12px;
    border: 1px solid rgba(255,115,115,.18);
    border-radius: 11px;
    background: rgba(255,115,115,.06);
    color: #ff9b9b;
    font-size: 13px;
    line-height: 1.45;
}


/* =========================================
   NOTE
========================================= */

.dns-source {
    margin-top: 14px;
    color: #667991;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.dns-noscript {
    max-width: 900px;
    margin: 20px auto;
    padding: 14px 18px;
    border: 1px solid rgba(255,115,115,.24);
    border-radius: 12px;
    background: rgba(255,115,115,.08);
    color: #ffabab;
    text-align: center;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 720px) {

    .dns-main {
        padding:
            38px
            14px
            58px;
    }

    .dns-app {
        max-width: 620px;
    }

    .dns-record-grid {
        grid-template-columns: 1fr;
    }

    .dns-record-card--wide {
        grid-column: auto;
    }
}


@media (max-width: 520px) {

    .dns-main {
        padding-top: 30px;
    }

    .dns-tool-header {
        margin-bottom: 26px;
    }

    .dns-tool-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .dns-tool-icon svg {
        width: 28px;
        height: 28px;
    }

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

    .dns-subtitle,
    .dns-intro {
        font-size: 15px;
    }

    .dns-form {
        padding: 17px;
        border-radius: 17px;
    }

    .dns-input-row {
        grid-template-columns: 1fr;
    }

    .dns-submit {
        width: 100%;
    }

    .dns-result-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 18px;
    }

    .dns-domain-name {
        font-size: 19px;
    }

    .dns-overview {
        align-items: flex-start;
        flex-direction: column;
    }

    .dns-resolver {
        text-align: left;
    }

    .dns-record-card {
        padding: 16px;
    }

    .dns-record-header {
        align-items: flex-start;
    }

    .dns-data-grid {
        grid-template-columns: 1fr;
    }
}
