/* Natural Language Query Engine Details Page Styles - Inherits from erp.css */

:root {
    /* Futuristic AI-inspired color palette */
    --nlq-primary: #6C5CE7;         /* Main purple */
    --nlq-primary-dark: #483D8B;    /* Dark purple */
    --nlq-primary-light: #A29BFE;   /* Light purple */
    --nlq-secondary: #00CEFF;       /* Bright cyan */
    --nlq-tertiary: #0ABDE3;        /* Blue */
    --nlq-accent: #00FF9D;          /* Neon green */
    --nlq-dark: #1E1E2C;            /* Dark background */
    --nlq-darker: #13131E;          /* Darker background */
    --nlq-light: #F0F0F5;           /* Light text */
    --nlq-gradient-primary: linear-gradient(135deg, var(--nlq-primary), var(--nlq-primary-dark));
    --nlq-gradient-accent: linear-gradient(135deg, var(--nlq-secondary), var(--nlq-tertiary));
    --nlq-glow: 0 0 15px rgba(108, 92, 231, 0.6); /* Subtle glow effect */
}

/* Body and background customization */
.nlq-details-body {
    /* Inherits from erp-body but with AI-specific tweaks */
    background: linear-gradient(135deg, var(--nlq-darker), var(--nlq-dark));
}

.nlq-background-feature {
    /* Custom background for NLQ page with subtle grid pattern */
    background: radial-gradient(circle, rgba(108, 92, 231, 0.2) 0%, rgba(0, 206, 255, 0.1) 40%, rgba(0, 0, 0, 0) 70%);
    position: relative;
    overflow: hidden;
}

.nlq-background-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

/* Header customization */
.nlq-header {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 30, 44, 0.9), rgba(19, 19, 30, 0.9)), url('../images/ai-data-pattern.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.nlq-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(108, 92, 231, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 206, 255, 0.3) 0%, transparent 40%);
    z-index: -1;
}

.nlq-header h1 {
    color: var(--nlq-light);
    text-shadow: var(--nlq-glow);
    position: relative;
}

.nlq-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--nlq-gradient-accent);
    border-radius: 2px;
}

.nlq-header .tagline {
    color: var(--nlq-light);
    max-width: 700px;
    margin: 25px auto 0;
}

/* Button styling */
.nlq-btn-primary {
    background: var(--nlq-gradient-primary);
    border: none;
    color: var(--nlq-light);
    position: relative;
    overflow: hidden;
}

.nlq-btn-primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--nlq-gradient-accent);
    z-index: -1;
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nlq-btn-primary:hover {
    background: var(--nlq-primary);
    transform: translateY(-2px);
    box-shadow: var(--nlq-glow);
}

.nlq-btn-primary:hover::before {
    opacity: 0.3;
}

.nlq-btn-secondary {
    border: 2px solid var(--nlq-secondary);
    color: var(--nlq-secondary);
}

.nlq-btn-secondary:hover {
    background-color: var(--nlq-secondary);
    border-color: var(--nlq-secondary);
    transform: translateY(-2px);
    color: var(--nlq-darker);
    box-shadow: 0 0 15px rgba(0, 206, 255, 0.4);
}

/* Section styling */
.nlq-overview-section {
    padding-top: var(--space-xl);
}

.nlq-benefits-section {
    background: linear-gradient(135deg, rgba(30, 30, 44, 0.7), rgba(19, 19, 30, 0.7));
    position: relative;
    z-index: 0;
}

.nlq-benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 90%, rgba(108, 92, 231, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(0, 206, 255, 0.2) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.nlq-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.nlq-feature {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 2px solid transparent;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.nlq-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-left: 2px solid var(--nlq-accent);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 15px rgba(0, 255, 157, 0.2);
}

.nlq-feature p {
    margin: 0;
    margin-left: var(--space-sm);
}

/* How it works section */
.nlq-how-it-works-section {
    background: linear-gradient(135deg, rgba(19, 19, 30, 0.8), rgba(30, 30, 44, 0.8));
    position: relative;
}

.how-it-works-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-xl);
    position: relative;
}

.flow-step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.flow-step:hover {
    transform: translateY(-5px) scale(1.03);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--nlq-glow);
}

.flow-connector {
    width: 80px;
    height: 2px;
    margin: 0 -10px;
    position: relative;
    z-index: 0;
}

.connector-line {
    width: 100%;
    height: 100%;
    background: var(--nlq-gradient-accent);
    position: relative;
    overflow: hidden;
}

.connector-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    animation: flowAnimation 2s linear infinite;
}

@keyframes flowAnimation {
    0% { left: -100%; }
    100% { left: 100%; }
}

.flow-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--nlq-gradient-primary);
    margin: 0 auto var(--space-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
}

.flow-icon::before {
    font-family: "Material Icons";
    content: "";
    font-size: 28px;
    color: white;
}

.question-icon::before {
    content: "help_outline";
}

.translate-icon::before {
    content: "translate";
}

.database-icon::before {
    content: "storage";
}

.visualize-icon::before {
    content: "insights";
}

.flow-step h3 {
    font-size: 1.1rem;
    margin: var(--space-sm) 0;
    color: var(--nlq-accent);
}

.flow-step p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Core functionality section */
.nlq-functionality-section {
    position: relative;
    z-index: 0;
}

.functionality-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.functionality-feature {
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.functionality-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 15px rgba(0, 206, 255, 0.2);
    border-left: 2px solid var(--nlq-secondary);
}

.functionality-feature p {
    margin: 0;
    margin-left: var(--space-sm);
}

/* NLQ assistant image */
.nlq-assistant-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), var(--nlq-glow);
    margin: var(--space-md) auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    border: 2px solid rgba(108, 92, 231, 0.3);
}

.nlq-assistant-image:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(108, 92, 231, 0.4);
}

/* Use case styling */
.nlq-use-cases-section {
    background-color: rgba(30, 30, 44, 0.7);
    position: relative;
}

.nlq-use-cases-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 90% 20%, rgba(0, 206, 255, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(0, 255, 157, 0.1) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.use-case-card {
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 2px solid transparent;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.use-case-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--nlq-secondary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 15px rgba(0, 206, 255, 0.2);
}

.use-case-card h3 {
    color: var(--nlq-secondary);
    margin-top: 0;
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.use-case-card p {
    margin: 0;
    line-height: 1.5;
}

/* Technical specifications */
.nlq-technical-section {
    background: linear-gradient(135deg, rgba(30, 30, 44, 0.8), rgba(19, 19, 30, 0.8));
    position: relative;
}

.nlq-technical-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: url('../images/circuit-pattern.jpg');
    background-size: cover;
    background-position: center;
    mix-blend-mode: overlay;
    z-index: -1;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.spec-group {
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.spec-group:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 15px rgba(108, 92, 231, 0.2);
    border-left: 2px solid var(--nlq-primary);
}

.spec-group h3 {
    color: var(--nlq-primary-light);
    margin-top: 0;
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.spec-list {
    margin: 0;
    padding-left: var(--space-md);
}

.spec-list li {
    margin-bottom: var(--space-xs);
    line-height: 1.5;
    position: relative;
}

.spec-list li::marker {
    color: var(--nlq-accent);
}

/* Examples section */
.nlq-examples-section {
    background: linear-gradient(135deg, rgba(19, 19, 30, 0.7), rgba(30, 30, 44, 0.7));
    position: relative;
}

.examples-container {
    margin-top: var(--space-lg);
}

.example-item {
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.example-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 15px rgba(0, 206, 255, 0.2);
}

.example-question {
    padding: var(--space-md);
    background: rgba(108, 92, 231, 0.1);
    border-bottom: 1px solid rgba(108, 92, 231, 0.3);
    display: flex;
    align-items: center;
}

.question-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--nlq-gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: var(--space-sm);
    flex-shrink: 0;
}

.question-icon .material-icons {
    color: white;
    font-size: 20px;
}

.question-text {
    font-family: "Courier New", monospace;
    color: var(--nlq-light);
    font-weight: 500;
}

.example-result {
    padding: var(--space-md);
    display: flex;
    align-items: center;
    background: rgba(0, 206, 255, 0.05);
}

.result-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--nlq-gradient-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: var(--space-sm);
    flex-shrink: 0;
}

.result-icon .material-icons {
    color: var(--nlq-darker);
    font-size: 20px;
}

.result-preview {
    font-style: italic;
    opacity: 0.9;
}

/* Testimonial section */
.nlq-testimonial-section {
    background: linear-gradient(135deg, rgba(0, 206, 255, 0.1), rgba(108, 92, 231, 0.1));
    padding: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
}

.nlq-testimonial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 90%, rgba(0, 255, 157, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(0, 206, 255, 0.15) 0%, transparent 30%);
    z-index: -1;
}

.testimonial {
    background: rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: 0 auto;
    max-width: 800px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), var(--nlq-glow);
    border-left: 4px solid var(--nlq-primary);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    line-height: 1;
    color: rgba(108, 92, 231, 0.2);
    font-family: Georgia, serif;
    z-index: -1;
}

.testimonial p {
    font-size: 1.25rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.testimonial cite {
    font-style: normal;
    font-weight: 600;
    display: block;
    text-align: right;
    color: var(--nlq-primary-light);
}

/* CTA section override */
.cta-section {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.8), rgba(19, 19, 30, 0.9));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 157, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0, 206, 255, 0.2) 0%, transparent 40%);
    z-index: -1;
}

/* Icon styles */
.icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--nlq-gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

.icon::before {
    font-family: "Material Icons";
    content: "";
    position: absolute;
    color: white;
    font-size: 1.25rem;
}

/* Specific icons */
.access-icon::before {
    content: "people";
}

.report-icon::before {
    content: "description";
}

.insight-icon::before {
    content: "insights";
}

.integration-icon::before {
    content: "devices";
}

.learning-icon::before {
    content: "psychology";
}

.multilingual-icon::before {
    content: "translate";
}

.semantic-icon::before {
    content: "psychology";
}

.context-icon::before {
    content: "chat";
}

.adaptive-icon::before {
    content: "auto_fix_high";
}

.personalization-icon::before {
    content: "person";
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .functionality-features {
        grid-template-columns: 1fr;
    }
    
    .split-content {
        flex-direction: column;
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .how-it-works-flow {
        flex-direction: column;
    }
    
    .flow-connector {
        width: 2px;
        height: 40px;
        margin: 10px 0;
    }
    
    .connector-line {
        width: 100%;
        height: 100%;
    }
    
    .connector-line::before {
        top: -100%;
        left: 0;
        width: 100%;
        height: 100%;
        animation: flowVerticalAnimation 2s linear infinite;
    }
    
    @keyframes flowVerticalAnimation {
        0% { top: -100%; }
        100% { top: 100%; }
    }
    
    .testimonial {
        padding: var(--space-md);
    }
    
    .testimonial p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .nlq-features {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .flow-step {
        min-width: 100%;
    }
    
    .nlq-assistant-image {
        margin-top: var(--space-md);
    }
    
    .testimonial {
        padding: var(--space-sm);
    }
    
    .example-question, .example-result {
        padding: var(--space-sm);
    }
} 