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

.dnschecker-page {
    min-height: 70vh;
}


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

.dnschecker-hero {
   	padding: 7px 0 5px;
    background: linear-gradient(
        135deg,
        #f8f9fa,
        #eef3ff
    );
}

.dnschecker-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.dnschecker-badge {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 15px;

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

    letter-spacing: 1px;

    border-radius: 30px;

    background: #e8f0ff;
    color: #0d6efd;
}

.dnschecker-hero h1 {
    margin-bottom: 15px;

    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
}

.dnschecker-hero p {
    margin: 0 auto;

    max-width: 650px;

    font-size: 18px;
    line-height: 1.7;

    color: #6c757d;
}


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

.dnschecker-section {
    padding: 50px 0 80px;
}


/* ==========================================================
   CHECKER CARD
   ========================================================== */

.dnschecker-card {
    max-width: 1100px;
    margin: -10px auto 0;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.08);
}

.dns-domain-input {
    min-height: 48px;
}

.dns-check-button {
    min-height: 48px;

    font-weight: 600;
}


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

.dns-loading {
    display: flex;

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

    gap: 12px;

    padding: 35px;

    color: #6c757d;
}


/* ==========================================================
   SUMMARY
   ========================================================== */

.dns-summary {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;

    padding: 22px 25px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 14px;
}

.dns-summary-header {
    display: flex;

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

    gap: 20px;
}

.dns-summary h2 {
    margin: 0 0 5px;

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

.dns-summary p {
    margin: 0;

    color: #6c757d;
}


/* ==========================================================
   OVERALL STATUS
   ========================================================== */

.dns-overall-status {
    padding: 8px 15px;

    border-radius: 30px;

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

.dns-status-success {
    background: #d1e7dd;
    color: #0f5132;
}

.dns-status-warning {
    background: #fff3cd;
    color: #664d03;
}

.dns-status-danger {
    background: #f8d7da;
    color: #842029;
}


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

.dns-results {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    overflow: hidden;
}

.dns-results-table {
    margin: 0;
}

.dns-results-table thead th {
    padding: 15px;

    white-space: nowrap;

    background: #f8f9fa;

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

    border-bottom: 1px solid #dee2e6;
}

.dns-results-table tbody td {
    padding: 15px;

    vertical-align: middle;
}

.dns-resolver-name {
    font-weight: 700;
}

.dns-resolver-location {
    display: block;

    margin-top: 3px;

    font-size: 12px;

    color: #6c757d;
}

.dns-answer {
    max-width: 450px;

    word-break: break-word;

    font-family:
        Consolas,
        Monaco,
        monospace;

    font-size: 13px;
}


/* ==========================================================
   STATUS BADGES
   ========================================================== */

.dns-result-success {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 20px;

    background: #d1e7dd;
    color: #0f5132;

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

.dns-result-error {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 20px;

    background: #f8d7da;
    color: #842029;

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


/* ==========================================================
   INFORMATION
   ========================================================== */

.dns-info-card {
    height: 100%;

    padding: 25px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 14px;
}

.dns-info-icon {
    display: inline-flex;

    width: 45px;
    height: 45px;

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

    margin-bottom: 15px;

    border-radius: 10px;

    background: #eef3ff;
    color: #0d6efd;

    font-weight: 800;
}

.dns-info-card h3 {
    font-size: 19px;
    font-weight: 700;
}

.dns-info-card p {
    margin: 0;

    color: #6c757d;

    line-height: 1.6;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .dnschecker-hero {
        padding: 45px 0 35px;
    }

    .dnschecker-section {
        padding-top: 35px;
    }

    .dnschecker-card {
        padding: 20px;
    }

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

    .dns-results-table {
        min-width: 850px;
    }

}