/* ssl.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;
}

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;
}

.cert-status {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.status-valid {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.status-warning {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #f57c00;
}

.status-expired {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #d32f2f;
}

.days-remaining {
    font-size: 32px;
    font-weight: 600;
    font-family: 'IBM Plex Mono', monospace;
    margin: 10px 0;
}

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

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

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

.info-label {
    font-weight: 600;
    color: #666;
    min-width: 200px;
    font-size: 14px;
}

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

.sans-list {
    list-style: none;
    padding: 0;
}

.sans-list li {
    padding: 4px 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
}

.chain-cert {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
}

.chain-cert-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

/* The protocol actually negotiated, not just the certificate's own claims */
.tls-modern {
    color: #2e7d32;
    font-weight: 500;
}

.tls-old {
    color: #d32f2f;
    font-weight: 500;
}

.lifetime-ok {
    color: #999;
}

.lifetime-over {
    color: #d32f2f;
    font-weight: 500;
}

.lifetime-note {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    color: #999;
    line-height: 1.6;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .lookup-section {
        padding: 20px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    pre {
        padding: 10px;
    }
    
    pre code {
        font-size: 11px;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-label {
        margin-bottom: 5px;
    }
    
    
}
