/* Features Workflow Section Styles */
/* Section spacing handled by common.css */
.features-workflow-section {
    background: white;
    position: relative;
    overflow: hidden;
}

/* Section Header */
.features-workflow-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-workflow-section .section-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.2;
}

.features-workflow-section .section-header p {
    font-size: 20px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Workflow Container */
.research-workflow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Workflow Steps */
.workflow-step {
    background: var(--gray-50);
    border-radius: 20px;
    padding: 60px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.workflow-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Step Header */
.step-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    flex-shrink: 0;
}

.step-title h3 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
}

.step-title p {
    margin: 8px 0 0;
    color: var(--gray-600);
    font-size: 18px;
}

/* Feature Content Grid */
.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Center align entire workflow step content */
.workflow-step {
    text-align: center;
}

/* Feature Visual Containers */
.feature-visual {
    background: white;
    border-radius: 16px;
    padding: 40px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Search Interface Styles */
.search-interface .search-container {
    width: 100%;
    max-width: 400px;
}

.search-interface input[type="search"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    margin-bottom: 20px;
    cursor: not-allowed;
}

.search-results {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
}

.result-counter {
    text-align: center;
    margin-bottom: 24px;
}

.count-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.count-label {
    color: var(--gray-600);
    font-size: 14px;
    margin-top: 4px;
}

.source-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.source-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    font-size: 14px;
}

.source-name {
    color: var(--gray-700);
    font-weight: 500;
}

.source-count {
    font-weight: 700;
    color: var(--primary);
}

/* Organization Dashboard */
.project-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.project-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--gray-200);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-header h5 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
}

.progress-ring {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-text {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

.paper-types {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.type-badge {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    background: white;
    color: var(--gray-700);
}

.import-status, .collaboration-badges {
    display: flex;
    gap: 8px;
}

.import-badge, .collab-badge {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 6px;
}

.import-badge {
    background: var(--success);
    color: white;
}

.collab-badge {
    background: var(--primary-light);
    color: var(--primary);
}

/* AI Dashboard */
.ai-capabilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}

.capability-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.7;
    border: 1px solid var(--gray-200);
}

.capability-card.active {
    opacity: 1;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.capability-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.capability-content h6 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.preview-output {
    font-size: 14px;
    color: var(--gray-600);
}

.confidence-bar {
    margin-top: 12px;
    background: var(--gray-200);
    border-radius: 6px;
    overflow: hidden;
    height: 24px;
    position: relative;
}

.confidence-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-700);
    z-index: 2;
}

.confidence-fill {
    height: 100%;
    background: var(--success);
    transition: width 1s ease;
}

/* Mind Map Preview */
.mindmap-preview {
    position: relative;
    height: 80px;
}

.node {
    position: absolute;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
}

.node.central {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.node.branch {
    background: var(--primary-light);
    color: var(--primary);
}

.node.branch:nth-child(2) {
    top: 0;
    left: 20%;
}

.node.branch:nth-child(3) {
    bottom: 0;
    right: 20%;
}

/* Chat Preview */
.chat-bubble {
    background: var(--primary-light);
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 14px;
}

.processing-time {
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
}

/* Knowledge Graph */
.graph-container {
    position: relative;
    width: 100%;
}

.enhanced-synthesis-svg {
    width: 100%;
    height: auto;
}

.cluster-label, .gap-label {
    font-size: 14px;
    fill: var(--gray-700);
    font-weight: 500;
}

.graph-insights {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 14px;
}

.insight-icon {
    font-size: 20px;
}

/* Writing Interface */
.editor-workspace {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
}

.editor-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.editor-toolbar button {
    padding: 8px 16px;
    font-size: 14px;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: 6px;
    cursor: pointer;
}

.editor-toolbar button.primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.editor-toolbar button.secondary {
    background: white;
    color: var(--gray-700);
}

.editor-content {
    min-height: 180px;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.editor-content p {
    margin: 0 0 16px;
    line-height: 1.6;
}

.citation-suggestion {
    background: var(--warning);
    color: var(--gray-900);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.ai-suggestion {
    padding: 16px;
    background: var(--primary-light);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.suggestion-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ai-icon {
    font-size: 20px;
}

.suggestion-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-900);
}

.suggestion-text {
    font-style: italic;
    color: var(--gray-700);
    margin: 0;
    font-size: 14px;
}

/* Reference Sidebar */
.reference-sidebar {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.reference-sidebar h6 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.reference-item {
    padding: 12px;
    background: var(--gray-50);
    border-radius: 6px;
    margin-bottom: 12px;
}

.ref-author {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.ref-title {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.ref-actions {
    display: flex;
    gap: 8px;
}

.ref-actions button {
    padding: 4px 12px;
    font-size: 12px;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    color: var(--gray-700);
}

/* Privacy Dashboard */
.security-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.security-item {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.security-item.active {
    background: white;
    border: 1px solid var(--success);
}

.security-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.security-status h6 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.status-indicator {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status-indicator.online {
    background: var(--success);
    color: white;
}

/* Data Flow Diagram */
.data-flow {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 32px;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.flow-item {
    text-align: center;
}

.flow-item.local {
    color: var(--success);
}

.flow-item.external {
    opacity: 0.3;
}

.flow-icon {
    display: block;
    font-size: 48px;
    margin-bottom: 12px;
}

.flow-label {
    font-size: 14px;
    font-weight: 500;
}

.flow-connection {
    text-align: center;
    color: var(--danger);
}

.block-icon {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
}

.block-label {
    font-size: 12px;
    font-weight: 600;
}

/* Feature Info */
.feature-info {
}

.feature-info h4 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
}

.feature-info p {
    color: var(--gray-600);
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.6;
}

.feature-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-benefits li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--gray-700);
}

.feature-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .features-workflow-section {
        padding: 60px 0;
    }

    .features-workflow-section .section-header h2 {
        font-size: 36px;
    }

    .features-workflow-section .section-header p {
        font-size: 18px;
    }

    .workflow-step {
        padding: 40px;
    }

    .feature-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .step-header {
        gap: 16px;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .step-title h3 {
        font-size: 24px;
    }

    .step-title p {
        font-size: 16px;
    }

    .ai-capabilities {
        grid-template-columns: 1fr;
    }

    .security-indicators {
        grid-template-columns: 1fr;
    }

    .editor-workspace {
        grid-template-columns: 1fr;
    }

    .flow-diagram {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .features-workflow-section {
        padding: 40px 0;
    }

    .features-workflow-section .section-header {
        margin-bottom: 40px;
    }

    .features-workflow-section .section-header h2 {
        font-size: 28px;
    }

    .features-workflow-section .section-header p {
        font-size: 16px;
    }

    .workflow-step {
        padding: 24px;
        margin-bottom: 24px;
    }

    .feature-visual {
        padding: 24px;
        min-height: 280px;
    }

    .feature-info h4 {
        font-size: 20px;
    }

    .feature-info p {
        font-size: 14px;
    }

    .feature-benefits li {
        font-size: 14px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.workflow-step {
    animation: fadeInUp 0.6s ease-out;
}

.workflow-step:nth-child(1) { animation-delay: 0.1s; }
.workflow-step:nth-child(2) { animation-delay: 0.2s; }
.workflow-step:nth-child(3) { animation-delay: 0.3s; }
.workflow-step:nth-child(4) { animation-delay: 0.4s; }
.workflow-step:nth-child(5) { animation-delay: 0.5s; }
.workflow-step:nth-child(6) { animation-delay: 0.6s; }