/* NS Lookup Utility - Frontend Styles */

.nslu-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Dark Theme (Glassmorphic) */
.nslu-theme-dark {
    background: linear-gradient(135deg, #0A1422 0%, #162B44 50%, #2A4F6B 100%);
    border-radius: 16px;
    padding: 48px 24px;
}

.nslu-theme-dark .nslu-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nslu-theme-dark .nslu-title {
    color: rgba(255, 255, 255, 0.92);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-align: center;
}

.nslu-theme-dark .nslu-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    margin: 0 0 32px 0;
    text-align: center;
    line-height: 1.5;
}

/* Light Theme */
.nslu-theme-light {
    background: #F6F8FC;
    border-radius: 16px;
    padding: 48px 24px;
}

.nslu-theme-light .nslu-card {
    background: #FFFFFF;
    border: 1px solid rgba(11, 19, 32, 0.08);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(11, 19, 32, 0.08);
}

.nslu-theme-light .nslu-title {
    color: #0B1320;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-align: center;
}

.nslu-theme-light .nslu-subtitle {
    color: rgba(11, 19, 32, 0.65);
    font-size: 15px;
    margin: 0 0 32px 0;
    text-align: center;
    line-height: 1.5;
}

/* Form Styles */
.nslu-form {
    margin-bottom: 24px;
}

.nslu-input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nslu-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.nslu-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.nslu-theme-dark .nslu-input-icon {
    color: rgba(255, 255, 255, 0.85);
}

.nslu-theme-light .nslu-input-icon {
    color: rgba(11, 19, 32, 0.6);
}

.nslu-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
}

.nslu-theme-dark .nslu-input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
}

.nslu-theme-dark .nslu-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.nslu-theme-dark .nslu-input:focus {
    background: rgba(255, 255, 255, 0.10);
    border-color: #3B8ED0;
    box-shadow: 0 0 0 3px rgba(59, 142, 208, 0.15);
}

.nslu-theme-light .nslu-input {
    background: #FFFFFF;
    border-color: rgba(11, 19, 32, 0.15);
    color: #0B1320;
}

.nslu-theme-light .nslu-input::placeholder {
    color: rgba(11, 19, 32, 0.4);
}

.nslu-theme-light .nslu-input:focus {
    border-color: #2B78B8;
    box-shadow: 0 0 0 3px rgba(43, 120, 184, 0.10);
}

.nslu-button {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #3B8ED0 0%, #2B78B8 100%);
    color: white;
    white-space: nowrap;
}

.nslu-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(43, 120, 184, 0.4);
}

.nslu-button:active:not(:disabled) {
    transform: translateY(0);
}

.nslu-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.nslu-button-text {
    display: inline-block;
}

.nslu-button-icon {
    display: inline-block;
}

/* Loading State */
.nslu-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    margin-top: 16px;
    border-radius: 8px;
}

.nslu-theme-dark .nslu-loading {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
}

.nslu-theme-light .nslu-loading {
    background: rgba(11, 19, 32, 0.04);
    color: rgba(11, 19, 32, 0.75);
}

.nslu-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid;
    border-radius: 50%;
    border-top-color: transparent;
    animation: nslu-spin 0.8s linear infinite;
}

.nslu-theme-dark .nslu-spinner {
    border-color: #3B8ED0;
    border-top-color: transparent;
}

.nslu-theme-light .nslu-spinner {
    border-color: #2B78B8;
    border-top-color: transparent;
}

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

/* Results Section */
.nslu-results {
    margin-top: 24px;
    border-radius: 8px;
    overflow: hidden;
}

.nslu-success-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 8px 8px 0 0;
}

.nslu-theme-dark .nslu-success-header {
    background: rgba(59, 142, 208, 0.12);
    border: 1px solid rgba(59, 142, 208, 0.2);
}

.nslu-theme-light .nslu-success-header {
    background: rgba(43, 120, 184, 0.08);
    border: 1px solid rgba(43, 120, 184, 0.15);
}

.nslu-success-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #3B8ED0;
}

.nslu-results-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.nslu-theme-dark .nslu-results-title {
    color: rgba(255, 255, 255, 0.92);
}

.nslu-theme-light .nslu-results-title {
    color: #0B1320;
}

.nslu-results-domain {
    font-size: 14px;
    margin: 0;
    font-family: 'Courier New', monospace;
}

.nslu-theme-dark .nslu-results-domain {
    color: rgba(255, 255, 255, 0.65);
}

.nslu-theme-light .nslu-results-domain {
    color: rgba(11, 19, 32, 0.65);
}

/* Name Server List */
.nslu-ns-list {
    padding: 8px;
}

.nslu-ns-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    margin: 8px 0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nslu-theme-dark .nslu-ns-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nslu-theme-dark .nslu-ns-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.nslu-theme-light .nslu-ns-item {
    background: rgba(11, 19, 32, 0.02);
    border: 1px solid rgba(11, 19, 32, 0.08);
}

.nslu-theme-light .nslu-ns-item:hover {
    background: rgba(11, 19, 32, 0.04);
    border-color: rgba(11, 19, 32, 0.12);
}

.nslu-ns-badge {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    background: linear-gradient(180deg, #3B8ED0 0%, #2B78B8 100%);
    color: white;
}

.nslu-ns-content {
    flex: 1;
}

.nslu-ns-name {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    margin-bottom: 4px;
}

.nslu-theme-dark .nslu-ns-name {
    color: rgba(255, 255, 255, 0.92);
}

.nslu-theme-light .nslu-ns-name {
    color: #0B1320;
}

.nslu-ns-type {
    font-size: 13px;
}

.nslu-theme-dark .nslu-ns-type {
    color: rgba(255, 255, 255, 0.5);
}

.nslu-theme-light .nslu-ns-type {
    color: rgba(11, 19, 32, 0.5);
}

.nslu-copy-btn {
    flex-shrink: 0;
    padding: 8px;
    border: 1px solid;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nslu-theme-dark .nslu-copy-btn {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.nslu-theme-dark .nslu-copy-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #3B8ED0;
    color: #3B8ED0;
}

.nslu-theme-light .nslu-copy-btn {
    border-color: rgba(11, 19, 32, 0.15);
    color: rgba(11, 19, 32, 0.6);
}

.nslu-theme-light .nslu-copy-btn:hover {
    background: rgba(43, 120, 184, 0.08);
    border-color: #2B78B8;
    color: #2B78B8;
}

.nslu-copy-btn.nslu-copied {
    background: #3B8ED0 !important;
    border-color: #3B8ED0 !important;
    color: white !important;
}

/* Results Footer */
.nslu-results-footer {
    padding: 16px 20px;
    border-radius: 0 0 8px 8px;
}

.nslu-theme-dark .nslu-results-footer {
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nslu-theme-light .nslu-results-footer {
    background: rgba(11, 19, 32, 0.02);
    border-top: 1px solid rgba(11, 19, 32, 0.08);
}

.nslu-results-count {
    font-size: 14px;
    font-weight: 600;
}

.nslu-theme-dark .nslu-results-count {
    color: rgba(255, 255, 255, 0.75);
}

.nslu-theme-light .nslu-results-count {
    color: rgba(11, 19, 32, 0.75);
}

/* Error State */
.nslu-error {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 8px;
}

.nslu-theme-dark .nslu-error {
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.nslu-theme-light .nslu-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.nslu-error-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #EF4444;
}

.nslu-error-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.nslu-theme-dark .nslu-error-title {
    color: rgba(255, 255, 255, 0.92);
}

.nslu-theme-light .nslu-error-title {
    color: #0B1320;
}

.nslu-error-message {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.nslu-theme-dark .nslu-error-message {
    color: rgba(255, 255, 255, 0.75);
}

.nslu-theme-light .nslu-error-message {
    color: rgba(11, 19, 32, 0.75);
}

/* Responsive Design */
@media (max-width: 640px) {
    .nslu-container {
        padding: 16px;
    }

    .nslu-theme-dark,
    .nslu-theme-light {
        padding: 32px 16px;
    }

    .nslu-card {
        padding: 24px !important;
    }

    .nslu-title {
        font-size: 24px !important;
    }

    .nslu-subtitle {
        font-size: 14px !important;
    }

    .nslu-input-group {
        flex-direction: column;
    }

    .nslu-input-wrapper {
        min-width: 100%;
    }

    .nslu-button {
        width: 100%;
        justify-content: center;
    }

    .nslu-ns-item {
        flex-wrap: wrap;
    }

    .nslu-copy-btn {
        margin-left: auto;
    }
}
