/* headers.enhost.uk - page-specific styles */

body {
    max-width: 900px;
    background: #fff;
}

h1 {
    margin-bottom: 10px;
}

.lookup-section {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.results-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.error-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.info-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 30px;
}

.info-section p {
    margin-bottom: 15px;
}

h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 30px;
}

input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'IBM Plex Mono', monospace;
}

button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'IBM Plex Sans', sans-serif;
    transition: background 0.2s;
}

button:hover {
    background: #0052a3;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Secondary action beside the primary lookup button */
.share-btn {
    background: none;
    border: 1px solid #e0e0e0;
    color: #666;
    font-weight: 400;
}

.share-btn:hover {
    background: #f5f5f5;
    border-color: #0066cc;
    color: #0066cc;
}

.share-btn.copied {
    border-color: #2e7d32;
    color: #2e7d32;
    background: none;
}

#results {
    display: none;
    margin-top: 20px;
}

#results.show {
    display: block;
}

.status-info {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.status-code {
    font-size: 48px;
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
}

.status-2xx {
    color: #2e7d32;
}

.status-3xx {
    color: #f57c00;
}

.status-4xx {
    color: #d32f2f;
}

.status-5xx {
    color: #d32f2f;
}

.status-details {
    flex: 1;
}

.status-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.response-time {
    color: #666;
    font-size: 14px;
}

.headers-info {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
}

.header-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
}

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

.header-name {
    font-weight: 600;
    color: #0066cc;
    min-width: 250px;
    font-size: 14px;
    font-family: 'IBM Plex Mono', monospace;
}

.header-value {
    color: #333;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    word-break: break-all;
    flex: 1;
}

.security-check {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
}

.security-check-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.security-name {
    font-weight: 600;
    font-size: 14px;
}

.security-badge {
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.badge-present {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-missing {
    background: #ffebee;
    color: #d32f2f;
}

.security-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.security-value {
    font-size: 12px;
    font-family: 'IBM Plex Mono', monospace;
    background: #f4f4f4;
    padding: 8px;
    border-radius: 3px;
    margin-top: 8px;
    word-break: break-all;
}

code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    display: inline-block;
}

pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 3px;
    overflow-x: auto;
    margin: 10px 0;
}

pre code {
    background: none;
    padding: 0;
    font-size: 13px;
}

/* A status code worth a footnote, like 418 or 451 */
.status-note {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    background: #f9f9f9;
    border-left: 3px solid #e0e0e0;
    border-radius: 3px;
    padding: 10px 14px;
    margin-bottom: 20px;
}

/* GNU Terry Pratchett */
.clacks {
    border: 1px solid #0066cc;
    border-radius: 4px;
    padding: 14px 18px;
    margin-bottom: 20px;
    background: #f5f9ff;
}

.clacks-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 15px;
    font-weight: 500;
    color: #0066cc;
    margin-bottom: 4px;
}

.clacks-note {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* Superseded headers, with what to do instead */
.deprecated-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
}

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

.deprecated-header {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    color: #e65100;
}

.deprecated-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #999;
    word-break: break-all;
    margin-top: 2px;
}

.deprecated-reason {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
    line-height: 1.6;
}

.deprecated-instead {
    font-size: 13px;
    color: #2e7d32;
    margin-top: 4px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .lookup-section {
        padding: 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    .status-info {
        flex-direction: column;
        text-align: center;
    }
    
    .header-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .header-name {
        min-width: auto;
    }
    
    pre {
        padding: 10px;
    }
    
    pre code {
        font-size: 11px;
    }
}
