/* =============================================
   Domain Availability Checker – stylesheet
   ============================================= */

.dac-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 720px;
    margin: 32px auto;
    padding: 0 16px;
    color: #1e293b;
}

/* Header */
.dac-header {
    text-align: center;
    margin-bottom: 28px;
}

.dac-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.dac-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.dac-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* Search Box */
.dac-search-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.dac-input-row {
    display: flex;
    gap: 12px;
}

.dac-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    outline: none;
    background: #fff;
    transition: border-color 0.2s;
    color: #0f172a;
}

.dac-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.dac-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.1s;
}

.dac-btn:hover {
    opacity: 0.92;
}

.dac-btn:active {
    transform: scale(0.97);
}

.dac-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dac-error {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 14px;
}

/* Result card */
.dac-result {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    animation: dac-fadein 0.3s ease;
}

@keyframes dac-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Available banner */
.dac-available-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 28px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}

.dac-available-icon {
    font-size: 42px;
    flex-shrink: 0;
}

.dac-available-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
}

.dac-available-domain {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
    word-break: break-all;
}

/* Taken banner */
.dac-taken-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 28px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.dac-taken-icon { font-size: 42px; flex-shrink: 0; }
.dac-taken-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.dac-taken-domain { font-size: 16px; opacity: 0.9; margin: 0; word-break: break-all; }

/* WHOIS info section */
.dac-whois-section {
    background: #fff;
    padding: 24px 28px;
}

.dac-whois-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.dac-whois-table {
    width: 100%;
    border-collapse: collapse;
}

.dac-whois-table tr {
    border-bottom: 1px solid #f1f5f9;
}

.dac-whois-table tr:last-child {
    border-bottom: none;
}

.dac-whois-table td {
    padding: 10px 4px;
    font-size: 14px;
    vertical-align: top;
}

.dac-whois-label {
    font-weight: 600;
    color: #475569;
    width: 36%;
    padding-right: 16px;
}

.dac-whois-value {
    color: #1e293b;
    word-break: break-word;
}

/* Raw WHOIS toggle */
.dac-raw-toggle {
    padding: 16px 28px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.dac-raw-btn {
    background: none;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s;
}

.dac-raw-btn:hover {
    background: #e2e8f0;
}

.dac-raw-output {
    margin-top: 12px;
    background: #0f172a;
    color: #94a3b8;
    border-radius: 8px;
    padding: 16px;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    max-height: 320px;
    overflow-y: auto;
    display: none;
}

/* Responsive */
@media (max-width: 520px) {
    .dac-input-row { flex-direction: column; }
    .dac-btn       { width: 100%; }
    .dac-available-banner,
    .dac-taken-banner { flex-direction: column; text-align: center; }
    .dac-whois-label  { width: 44%; }
}
