/* AntiSpywares WHOIS Lookup - Enhanced Layout */
/* Colors: #233D78, #5B98BA, #FF6B6B, #FFFFFF, #000000 */

.asw-whois-container {
    max-width: 900px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.asw-whois-form { margin-bottom: 20px; }
.asw-whois-input-group { display: flex; gap: 10px; flex-wrap: wrap; }

.asw-whois-input {
    flex: 1; min-width: 200px; padding: 12px 18px;
    border: 2px solid #5B98BA; border-radius: 8px; font-size: 16px;
    background: #FFFFFF; color: #000000;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.asw-whois-input:focus {
    outline: none; border-color: #233D78;
    box-shadow: 0 0 0 3px rgba(35, 61, 120, 0.15);
}

.asw-whois-button {
    padding: 12px 30px; background: #233D78; color: #FFFFFF;
    border: none; border-radius: 8px; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: background 0.3s ease, transform 0.15s ease;
    white-space: nowrap;
}
.asw-whois-button:hover { background: #1a2f5e; }
.asw-whois-button:active { transform: scale(0.97); }

/* Loader */
.asw-whois-loader { display: flex; align-items: center; gap: 15px; padding: 20px; background: #f8f9fa; border-radius: 8px; margin: 15px 0; }
.asw-whois-spinner { width: 24px; height: 24px; border: 3px solid #e0e0e0; border-top: 3px solid #233D78; border-radius: 50%; animation: asw-spin 0.8s linear infinite; }
@keyframes asw-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.asw-whois-loader-text { color: #233D78; font-weight: 500; }

/* Results Container */
.asw-whois-results { margin-top: 20px; animation: asw-fadeIn 0.4s ease; }
@keyframes asw-fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.asw-whois-result-card {
    background: #FFFFFF; border: 1px solid #e8ecf0; border-radius: 12px;
    padding: 30px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.asw-whois-result-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid #f0f2f5; padding-bottom: 15px; margin-bottom: 20px;
    flex-wrap: wrap; gap: 10px;
}
.asw-whois-result-header h3 { margin: 0; color: #233D78; font-size: 22px; font-weight: 700; }
.asw-whois-protocol-badge {
    background: #5B98BA; color: #FFFFFF; padding: 4px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
}

/* Sections */
.asw-whois-section {
    margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #f0f2f5;
}
.asw-whois-section:last-of-type { border-bottom: none; margin-bottom: 15px; }

.asw-section-title {
    font-size: 16px; font-weight: 700; color: #233D78; margin: 0 0 15px 0;
    letter-spacing: 0.3px;
}

/* Info Grid */
.asw-info-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px 30px;
}
@media (max-width: 600px) { .asw-info-grid { grid-template-columns: 1fr; } }

.asw-grid-item {
    display: flex; justify-content: space-between; padding: 8px 0;
    border-bottom: 1px dashed #f5f6f8;
}
.asw-grid-item:last-child { border-bottom: none; }

.asw-label { font-size: 13px; font-weight: 600; color: #5B98BA; }
.asw-value { font-size: 15px; color: #000000; font-weight: 500; text-align: right; }

/* Expiry Badge */
.asw-expiry-badge {
    display: inline-block; padding: 2px 12px; border-radius: 12px;
    font-size: 11px; font-weight: 700; margin-left: 8px;
}
.asw-expiry-active { background: #e8f5e9; color: #2e7d32; }
.asw-expiry-expiring-soon { background: #fff3e0; color: #e65100; animation: asw-pulse 1.5s infinite; }
.asw-expiry-expired { background: #ffebee; color: #c62828; }
@keyframes asw-pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }

/* Status Locks */
.asw-status-grid {
    display: flex; flex-direction: column; gap: 8px; background: #f8fafc;
    padding: 15px; border-radius: 8px; margin-bottom: 10px;
}
.asw-status-item { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.asw-status-icon { font-size: 16px; width: 24px; }
.asw-status-name { font-weight: 600; color: #233D78; flex: 1; }
.asw-status-text { font-size: 13px; color: #555; }

.asw-tooltip {
    background: #eef2f7; padding: 10px 15px; border-radius: 6px;
    font-size: 13px; color: #233D78; margin: 5px 0 0 0;
    display: flex; align-items: center; gap: 10px;
}
.asw-tooltip-icon { font-size: 16px; }

/* Nameservers */
.asw-ns-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.asw-ns-list li {
    background: #f0f4f8; padding: 6px 18px; border-radius: 20px;
    font-family: 'Courier New', monospace; font-size: 14px; color: #233D78;
    border: 1px solid #e2e8f0;
}

/* DNSSEC & RDAP */
.asw-dnssec-status, .asw-rdap-status {
    font-size: 15px; font-weight: 600; padding: 6px 0; margin: 0;
}

/* Security Insights */
.asw-security-section { background: #f8faff; padding: 15px 20px; border-radius: 10px; border-left: 4px solid #FF6B6B; }
.asw-insights-list {
    list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px;
}
.asw-insights-list li {
    font-size: 14px; padding: 4px 0; border-bottom: 1px solid #edf2f7;
}
.asw-insights-list li:last-child { border-bottom: none; }

/* Timeline */
.asw-timeline { position: relative; padding-left: 30px; }
.asw-timeline::before {
    content: ''; position: absolute; left: 10px; top: 5px; bottom: 5px;
    width: 2px; background: #5B98BA;
}
.asw-timeline-item {
    position: relative; padding: 8px 0 8px 20px; display: flex; flex-direction: column;
}
.asw-timeline-dot {
    position: absolute; left: -26px; top: 12px;
    width: 14px; height: 14px; background: #233D78; border-radius: 50%;
    border: 3px solid #FFFFFF; box-shadow: 0 0 0 2px #5B98BA;
}
.asw-timeline-content { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 15px; }
.asw-timeline-date { font-weight: 600; color: #233D78; font-size: 14px; }
.asw-timeline-label { color: #5B98BA; font-size: 13px; font-weight: 500; background: #eef2f7; padding: 0 12px; border-radius: 12px; }

/* Summary */
.asw-summary-section { background: #f0f6fe; padding: 15px 20px; border-radius: 10px; border-left: 4px solid #233D78; }
.asw-summary-text { margin: 0; font-size: 15px; line-height: 1.7; color: #1a2a4a; }

/* Actions */
.asw-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 15px 0; }
.asw-btn {
    padding: 8px 20px; border: none; border-radius: 6px; font-size: 14px;
    font-weight: 600; cursor: pointer; transition: all 0.2s ease;
    display: inline-flex; align-items: center; gap: 8px;
}
.asw-btn-copy { background: #233D78; color: #FFFFFF; }
.asw-btn-copy:hover { background: #1a2f5e; transform: translateY(-2px); }
.asw-btn-download { background: #5B98BA; color: #FFFFFF; }
.asw-btn-download:hover { background: #4a7f9e; transform: translateY(-2px); }

/* Raw Data Toggle */
.asw-raw-toggle { margin-top: 20px; padding-top: 15px; border-top: 1px solid #e8ecf0; }
.asw-raw-btn {
    background: none; border: none; color: #5B98BA; cursor: pointer;
    font-size: 14px; font-weight: 600; padding: 8px 0;
    transition: color 0.3s ease;
}
.asw-raw-btn:hover { color: #233D78; text-decoration: underline; }
.asw-raw-output {
    margin-top: 12px; background: #1e1e1e; border-radius: 8px; padding: 20px;
    overflow-x: auto; max-height: 400px; overflow-y: auto;
}
.asw-raw-output pre {
    margin: 0; font-size: 13px; line-height: 1.6; color: #d4d4d4;
    white-space: pre-wrap; word-break: break-all;
    font-family: 'Courier New', monospace;
}

/* Error */
.asw-whois-error {
    background: #ffebee; border: 1px solid #ffcdd2; border-radius: 8px;
    padding: 15px 20px; color: #c62828; margin-top: 15px;
    animation: asw-fadeIn 0.3s ease;
}

/* Responsive */
@media (max-width: 480px) {
    .asw-whois-input-group { flex-direction: column; }
    .asw-whois-button { width: 100%; justify-content: center; }
    .asw-whois-result-card { padding: 16px; }
    .asw-grid-item { flex-direction: column; align-items: flex-start; gap: 2px; }
    .asw-value { text-align: left; }
    .asw-status-grid { padding: 10px; }
}