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

body {
    max-width: 800px;
}

header {
    margin-bottom: 40px;
}

h1 {
    margin-bottom: 5px;
}

.info-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.info-section p {
    margin-bottom: 10px;
    font-size: 14px;
}

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

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

.info-section pre code {
    padding: 0;
    background: none;
    display: block;
}

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

.ip-label {
    font-size: 12px;
    /* Carried by an h1, so the heading weight has to be overridden */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 8px;
}

.ip-value {
    font-family: 'IBM Plex Mono', 'Monaco', 'Courier New', monospace;
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 400;
    color: #0066cc;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    user-select: none;
}

.copy-icon {
    font-size: 24px;
    color: #666;
    transition: color 0.2s;
}

.ip-value:hover .copy-icon {
    color: #0066cc;
}

.copy-icon.copied {
    color: #2e7d32;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    text-align: left;
}

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

.info-item-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 5px;
}

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

/* The registry note under a special-use classification */
.info-item-note {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

@media (max-width: 600px) {
    .info-section pre {
        padding: 10px;
        font-size: 11px;
    }
    
    .ip-value {
        font-size: 32px;
        flex-direction: column;
        gap: 10px;
    }
    
    .copy-icon {
        font-size: 20px;
    }
    
    .ip-section {
        padding: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
