/* WHOIS Lookup Styles */

/* Info Grid */
.whois-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whois-info-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

[data-bs-theme="dark"] .whois-info-item {
    background: #212529;
    border-color: #495057;
}

.whois-info-item.whois-highlight {
    background: #e7f5ff;
    border-color: #74c0fc;
}

[data-bs-theme="dark"] .whois-info-item.whois-highlight {
    background: #1c3a5e;
    border-color: #4dabf7;
}

.whois-info-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

[data-bs-theme="dark"] .whois-info-label {
    color: #adb5bd;
}

.whois-info-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #212529;
    word-break: break-all;
}

[data-bs-theme="dark"] .whois-info-value {
    color: #e9ecef;
}

.whois-info-value a {
    color: #0d6efd;
    text-decoration: none;
}

.whois-info-value a:hover {
    text-decoration: underline;
}

[data-bs-theme="dark"] .whois-info-value a {
    color: #6ea8fe;
}

.whois-info-na {
    color: #6c757d;
    font-style: italic;
    padding: 12px 16px;
}

/* Nameservers List */
.whois-nameservers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.whois-nameserver-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

[data-bs-theme="dark"] .whois-nameserver-item {
    background: #212529;
    border-color: #495057;
}

.whois-ns-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #052c65;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

[data-bs-theme="dark"] .whois-ns-number {
    background: #6ea8fe;
    color: #000;
}

.whois-ns-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #212529;
}

[data-bs-theme="dark"] .whois-ns-value {
    color: #e9ecef;
}

/* Status List */
.whois-status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.whois-status-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    background: #e9ecef;
    color: #495057;
}

[data-bs-theme="dark"] .whois-status-item {
    background: #343a40;
    color: #adb5bd;
}

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

[data-bs-theme="dark"] .whois-status-item.status-success {
    background: #0f5132;
    color: #d1e7dd;
}

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

[data-bs-theme="dark"] .whois-status-item.status-warning {
    background: #664d03;
    color: #fff3cd;
}

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

[data-bs-theme="dark"] .whois-status-item.status-danger {
    background: #842029;
    color: #f8d7da;
}

.whois-status-item.status-info {
    background: #cff4fc;
    color: #055160;
}

[data-bs-theme="dark"] .whois-status-item.status-info {
    background: #055160;
    color: #cff4fc;
}

.status-badge {
    font-weight: 600;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
}

[data-bs-theme="dark"] .status-badge {
    background: rgba(255, 255, 255, 0.1);
}

.status-value {
    font-family: 'Courier New', Courier, monospace;
}

/* Raw Data Display */
.whois-raw-data {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 16px;
    border-radius: 8px;
    font-size: 12px;
    max-height: 400px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

[data-bs-theme="dark"] .whois-raw-data {
    background: #0d1117;
    color: #c9d1d9;
}

/* Responsive */
@media (max-width: 768px) {
    .whois-info-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .whois-info-label {
        font-size: 12px;
    }

    .whois-info-value {
        font-size: 13px;
    }

    .whois-status-list {
        flex-direction: column;
    }

    .whois-status-item {
        width: 100%;
    }
}
