/* XMLA WHOIS Lookup - Frontend Styles */

.xmla-whois-wrapper {
    background: #0B1320;
    color: rgba(255, 255, 255, 0.92);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 2rem 0;
}

/* Main Content */
.xmla-whois-content {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glassmorphic Card */
.xmla-whois-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(40px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.xmla-whois-search-card {
    margin-bottom: 2rem;
}

/* Form Styles */
.xmla-whois-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.xmla-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0.5rem;
}

.xmla-input-wrapper {
    position: relative;
}

.xmla-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.xmla-input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    transition: all 0.2s;
}

.xmla-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.xmla-input-wrapper input:focus {
    outline: none;
    border-color: #3B8ED0;
    box-shadow: 0 0 0 3px rgba(59, 142, 208, 0.2);
}

/* Button Styles */
.xmla-btn-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(180deg, #3B8ED0 0%, #2B78B8 100%);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.xmla-btn-primary:hover:not(:disabled) {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    transform: scale(1.02);
}

.xmla-btn-primary:active:not(:disabled) {
    transform: scale(0.98);
}

.xmla-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.xmla-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.xmla-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: xmla-spin 0.6s linear infinite;
}

@keyframes xmla-spin {
    to { transform: rotate(360deg); }
}

/* Error Message */
.xmla-error-message {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.5rem;
    color: #fca5a5;
}

/* Empty State */
.xmla-empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
}

.xmla-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 1.5rem;
}

.xmla-empty-icon svg {
    color: rgba(255, 255, 255, 0.4);
}

.xmla-empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0.5rem;
}

.xmla-empty-state p {
    color: rgba(255, 255, 255, 0.6);
}

/* Results Section */
.xmla-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: xmla-fade-in 0.5s ease-in-out;
}

@keyframes xmla-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Result Card Sections */
.xmla-result-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.xmla-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: rgba(43, 120, 184, 0.2);
}

.xmla-result-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #3B8ED0;
}

.xmla-result-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.xmla-result-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.xmla-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.xmla-result-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.xmla-result-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7) !important;
}

.xmla-result-value {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
}

/* Status Badges */
.xmla-status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.xmla-status-badge {
    padding: 0.375rem 0.75rem;
    background: rgba(43, 120, 184, 0.2);
    border: 1px solid rgba(43, 120, 184, 0.3);
    border-radius: 0.5rem;
    color: #3B8ED0;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Nameserver List */
.xmla-nameserver-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.xmla-nameserver-item {
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Info Grid */
.xmla-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.xmla-contact-grid * {
    box-sizing: border-box;
}

.xmla-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 0.75rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    min-width: 0;
    overflow: hidden;
}

.xmla-whois-wrapper .xmla-contact-grid .xmla-contact-item {
    background: rgba(255, 255, 255, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 0.75rem !important;
    padding: 1.25rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
}

.xmla-contact-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #3B8ED0;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.xmla-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-all;
}

.xmla-contact-item .xmla-result-label {
    color: rgba(255, 255, 255, 0.7) !important;
}

.xmla-contact-item .xmla-result-value {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .xmla-whois-card {
        padding: 1.5rem;
    }

    .xmla-result-grid,
    .xmla-contact-grid {
        grid-template-columns: 1fr;
    }
}
