/* ============================================
   Domain Intelligence Tool - Stylesheet
   ============================================ */

/* --- Reset & Basis --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, sans-serif;
    background-color: #f0f2f5;
    color: #1a1a2e;
    line-height: 1.6;
    min-height: 100vh;
}

/* --- Container --- */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Header --- */
header {
    text-align: center;
    padding: 40px 20px 30px;
}

header h1 {
    font-size: 2rem;
    color: #16213e;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    font-size: 1rem;
}

/* --- Zoekformulier --- */
.search-section {
    margin: 20px 0 30px;
}

.input-group {
    display: flex;
    gap: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.input-group input {
    flex: 1;
    padding: 16px 20px;
    font-size: 1.1rem;
    border: none;
    outline: none;
    background: #fff;
    color: #1a1a2e;
}

.input-group input::placeholder {
    color: #999;
}

.input-group button {
    padding: 16px 32px;
    background: #0f3460;
    color: #fff;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.input-group button:hover {
    background: #16213e;
}

.input-group button:active {
    transform: scale(0.98);
}

.input-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #666;
}

.input-hints code {
    background: #e8e8e8;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
}

/* --- Resultaten sectie --- */
.results-section {
    margin-top: 20px;
}

.results-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.results-header h2 {
    font-size: 1.4rem;
    color: #16213e;
}

.result-type {
    display: inline-block;
    padding: 4px 12px;
    background: #e8e8e8;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #555;
    text-transform: capitalize;
}

/* --- Samenvatting kaart --- */
.summary-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 600;
    color: #555;
}

.summary-value {
    color: #0f3460;
    word-break: break-all;
}

/* --- Resultaat secties --- */
.result-section {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}

.result-section h3 {
    font-size: 1.2rem;
    color: #16213e;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8e8e8;
}

.result-content {
    font-size: 0.95rem;
}

/* --- DNS Records --- */
.dns-record {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}

.dns-record:last-child {
    border-bottom: none;
}

.dns-type {
    font-weight: 700;
    color: #0f3460;
    background: #e8e8e8;
    padding: 2px 8px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.85rem;
    align-self: center;
}

.dns-value {
    color: #333;
    word-break: break-all;
}

.dns-value ul {
    list-style: none;
    padding-left: 0;
}

.dns-value ul li {
    padding: 3px 0;
    border-bottom: 1px solid #f5f5f5;
}

.dns-value ul li:last-child {
    border-bottom: none;
}

/* --- E-mail beveiliging --- */
.mail-status {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.mail-status.pass {
    background: #e6f4ea;
    border-left: 4px solid #1b7a3d;
}

.mail-status.fail {
    background: #fce8e6;
    border-left: 4px solid #d32f2f;
}

.mail-status.warning {
    background: #fef3e2;
    border-left: 4px solid #f57c00;
}

.mail-status.info {
    background: #e8eaf6;
    border-left: 4px solid #3f51b5;
}

.mail-status.missing {
    background: #f5f5f5;
    border-left: 4px solid #9e9e9e;
}

.mail-status h4 {
    margin-bottom: 4px;
    color: #333;
}

.mail-status p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.mail-status pre {
    margin-top: 8px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 0.8rem;
    overflow-x: auto;
    word-break: break-all;
}

/* --- SSL Certificaat --- */
.ssl-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.ssl-info-item {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
}

.ssl-info-item .label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ssl-info-item .value {
    font-size: 0.95rem;
    color: #333;
    word-break: break-all;
    margin-top: 4px;
}

.ssl-info-item .value.valid {
    color: #1b7a3d;
}

.ssl-info-item .value.expired {
    color: #d32f2f;
}

.ssl-info-item .value.warning {
    color: #f57c00;
}

/* --- WHOIS --- */
.whois-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.whois-item {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
}

.whois-item .label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.whois-item .value {
    font-size: 0.95rem;
    color: #333;
    word-break: break-all;
    margin-top: 4px;
}

.whois-raw {
    margin-top: 16px;
}

.whois-raw summary {
    cursor: pointer;
    color: #0f3460;
    font-weight: 600;
    padding: 8px 0;
}

.whois-raw pre {
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    margin-top: 8px;
}

/* --- HTTP Response --- */
.http-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.http-status.ok {
    background: #e6f4ea;
    border-left: 4px solid #1b7a3d;
}

.http-status.error {
    background: #fce8e6;
    border-left: 4px solid #d32f2f;
}

.http-status-code {
    font-size: 2rem;
    font-weight: 700;
}

.http-status-text {
    font-size: 1rem;
    color: #555;
}

.http-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.http-detail-item .label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

.http-detail-item .value {
    font-size: 0.95rem;
    color: #333;
    word-break: break-all;
}

.http-headers {
    margin-top: 16px;
}

.http-headers summary {
    cursor: pointer;
    color: #0f3460;
    font-weight: 600;
    padding: 8px 0;
}

.http-headers pre {
    background: #1a1a2e;
    color: #e0e0e0;
    padding: 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    margin-top: 8px;
}

/* --- IP Informatie --- */
.ip-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.ip-info-item {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
}

.ip-info-item .label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

.ip-info-item .value {
    font-size: 0.95rem;
    color: #333;
    word-break: break-all;
    margin-top: 4px;
}

/* --- Foutmelding --- */
.error-card {
    background: #fce8e6;
    border-left: 4px solid #d32f2f;
    padding: 20px;
    border-radius: 8px;
}

.error-card h3 {
    color: #d32f2f;
    margin-bottom: 8px;
}

.error-card p {
    color: #555;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }

    .input-hints {
        flex-direction: column;
        gap: 8px;
    }

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

    .ssl-info,
    .whois-info,
    .ip-info {
        grid-template-columns: 1fr;
    }

    .http-status {
        flex-direction: column;
        align-items: flex-start;
    }
}
