/* Text Page Styles */

.nx-text-page {
    padding: var(--nx-space-3xl) 0;
    background: var(--nx-bg-secondary);
    min-height: calc(100vh - 200px);
}

.nx-text-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--nx-bg-card);
    border-radius: var(--nx-radius-xl);
    padding: var(--nx-space-3xl);
    box-shadow: var(--nx-shadow-lg);
}

.nx-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--nx-space-sm);
    margin-bottom: var(--nx-space-xl);
    font-size: var(--nx-font-size-sm);
    color: var(--nx-text-muted);
}

.nx-breadcrumb a {
    color: var(--nx-primary);
    text-decoration: none;
    transition: var(--nx-transition-fast);
}

.nx-breadcrumb a:hover {
    text-decoration: underline;
}

.nx-text-content h1 {
    font-size: var(--nx-font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--nx-space-xl);
    color: var(--nx-text-primary);
    text-align: center;
}

.nx-text-content h2 {
    font-size: var(--nx-font-size-2xl);
    font-weight: 600;
    margin: var(--nx-space-2xl) 0 var(--nx-space-lg);
    color: var(--nx-text-primary);
    border-bottom: 2px solid var(--nx-border-light);
    padding-bottom: var(--nx-space-sm);
}

.nx-text-content h3 {
    font-size: var(--nx-font-size-xl);
    font-weight: 600;
    margin: var(--nx-space-xl) 0 var(--nx-space-md);
    color: var(--nx-text-primary);
}

.nx-text-content h4 {
    font-size: var(--nx-font-size-lg);
    font-weight: 600;
    margin: var(--nx-space-lg) 0 var(--nx-space-sm);
    color: var(--nx-text-primary);
}

.nx-text-content p {
    font-size: var(--nx-font-size-base);
    line-height: 1.7;
    color: var(--nx-text-secondary);
    margin-bottom: var(--nx-space-md);
}

.nx-text-content ul,
.nx-text-content ol {
    margin: var(--nx-space-md) 0;
    padding-left: var(--nx-space-xl);
}

.nx-text-content li {
    font-size: var(--nx-font-size-base);
    line-height: 1.6;
    color: var(--nx-text-secondary);
    margin-bottom: var(--nx-space-sm);
}

.nx-text-content a {
    color: var(--nx-primary);
    text-decoration: none;
    transition: var(--nx-transition-fast);
}

.nx-text-content a:hover {
    text-decoration: underline;
}

.nx-text-content strong {
    font-weight: 600;
    color: var(--nx-text-primary);
}

.nx-text-content em {
    font-style: italic;
}

.nx-text-content code {
    background: var(--nx-bg-tertiary);
    padding: var(--nx-space-xs) var(--nx-space-sm);
    border-radius: var(--nx-radius-sm);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: var(--nx-text-primary);
}

.nx-text-content pre {
    background: var(--nx-bg-tertiary);
    padding: var(--nx-space-lg);
    border-radius: var(--nx-radius-md);
    overflow-x: auto;
    margin: var(--nx-space-lg) 0;
}

.nx-text-content pre code {
    background: none;
    padding: 0;
}

.nx-text-content blockquote {
    border-left: 4px solid var(--nx-primary);
    padding-left: var(--nx-space-lg);
    margin: var(--nx-space-lg) 0;
    font-style: italic;
    color: var(--nx-text-muted);
}

.nx-text-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--nx-space-lg) 0;
}

.nx-text-content th,
.nx-text-content td {
    padding: var(--nx-space-md);
    text-align: left;
    border-bottom: 1px solid var(--nx-border-light);
}

.nx-text-content th {
    background: var(--nx-bg-tertiary);
    font-weight: 600;
    color: var(--nx-text-primary);
}

.nx-text-content td {
    color: var(--nx-text-secondary);
}

/* Help Page Specific Styles */
.nx-help-intro {
    background: linear-gradient(135deg, var(--nx-primary) 0%, var(--nx-primary-dark) 100%);
    color: white;
    padding: var(--nx-space-xl);
    border-radius: var(--nx-radius-lg);
    margin-bottom: var(--nx-space-2xl);
    text-align: center;
}

.nx-help-intro p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--nx-font-size-lg);
    margin: 0;
}

.nx-help-sections {
    display: flex;
    flex-direction: column;
    gap: var(--nx-space-2xl);
}

.nx-help-section {
    background: var(--nx-bg-secondary);
    border-radius: var(--nx-radius-lg);
    padding: var(--nx-space-xl);
}

.nx-help-section h2 {
    margin-top: 0;
    margin-bottom: var(--nx-space-lg);
    border-bottom: none;
    padding-bottom: 0;
}

.nx-faq-item {
    background: var(--nx-bg-card);
    border-radius: var(--nx-radius-md);
    padding: var(--nx-space-lg);
    margin-bottom: var(--nx-space-lg);
    border: 1px solid var(--nx-border-light);
    transition: var(--nx-transition-fast);
}

.nx-faq-item:hover {
    box-shadow: var(--nx-shadow-md);
}

.nx-faq-item:last-child {
    margin-bottom: 0;
}

.nx-faq-item h3 {
    margin-top: 0;
    margin-bottom: var(--nx-space-md);
    color: var(--nx-text-primary);
    font-size: var(--nx-font-size-lg);
}

.nx-faq-item p {
    margin-bottom: var(--nx-space-sm);
}

.nx-faq-item p:last-child {
    margin-bottom: 0;
}

.nx-faq-item ul {
    margin-top: var(--nx-space-sm);
    margin-bottom: 0;
}

.nx-help-footer {
    margin-top: var(--nx-space-3xl);
    padding-top: var(--nx-space-2xl);
    border-top: 2px solid var(--nx-border-light);
}

.nx-help-cta {
    text-align: center;
    background: var(--nx-bg-secondary);
    padding: var(--nx-space-2xl);
    border-radius: var(--nx-radius-lg);
}

.nx-help-cta h3 {
    margin-top: 0;
    margin-bottom: var(--nx-space-md);
    color: var(--nx-text-primary);
}

.nx-help-cta p {
    margin-bottom: var(--nx-space-lg);
    color: var(--nx-text-secondary);
}

/* Contact Form Styles */
.nx-contact-form {
    background: var(--nx-bg-secondary);
    padding: var(--nx-space-2xl);
    border-radius: var(--nx-radius-lg);
    margin-top: var(--nx-space-xl);
}

.nx-form-group {
    margin-bottom: var(--nx-space-lg);
}

.nx-form-label {
    display: block;
    font-weight: 600;
    color: var(--nx-text-primary);
    margin-bottom: var(--nx-space-sm);
}

.nx-form-input,
.nx-form-textarea,
.nx-form-select {
    width: 100%;
    padding: var(--nx-space-md);
    background: var(--nx-bg-card);
    border: 1px solid var(--nx-border-light);
    border-radius: var(--nx-radius-md);
    font-size: var(--nx-font-size-base);
    color: var(--nx-text-primary);
    transition: var(--nx-transition-fast);
}

.nx-form-input:focus,
.nx-form-textarea:focus,
.nx-form-select:focus {
    border-color: var(--nx-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.nx-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.nx-form-help {
    font-size: var(--nx-font-size-sm);
    color: var(--nx-text-muted);
    margin-top: var(--nx-space-xs);
}

.nx-form-actions {
    display: flex;
    gap: var(--nx-space-md);
    justify-content: flex-end;
    margin-top: var(--nx-space-xl);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nx-text-page {
        padding: var(--nx-space-xl) 0;
    }
    
    .nx-text-content {
        padding: var(--nx-space-xl);
        margin: 0 var(--nx-space-md);
    }
    
    .nx-text-content h1 {
        font-size: var(--nx-font-size-3xl);
    }
    
    .nx-text-content h2 {
        font-size: var(--nx-font-size-xl);
    }
    
    .nx-help-section {
        padding: var(--nx-space-lg);
    }
    
    .nx-faq-item {
        padding: var(--nx-space-md);
    }
    
    .nx-help-cta {
        padding: var(--nx-space-xl);
    }
    
    .nx-contact-form {
        padding: var(--nx-space-xl);
    }
    
    .nx-form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .nx-text-content {
        padding: var(--nx-space-lg);
        margin: 0 var(--nx-space-sm);
    }
    
    .nx-text-content h1 {
        font-size: var(--nx-font-size-2xl);
    }
    
    .nx-help-section {
        padding: var(--nx-space-md);
    }
    
    .nx-help-cta {
        padding: var(--nx-space-lg);
    }
    
    .nx-contact-form {
        padding: var(--nx-space-lg);
    }
}