/* ====================================
   LEARN SECTION STYLES
   ==================================== */

/* Learn Panel Styles */
.learn-navigator {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px;
}

.learn-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    background: transparent;
}

.learn-nav-item:hover {
    background: #e9ecef;
    color: #333;
}

.learn-nav-item.active {
    background: #129ed9;
    color: white;
    box-shadow: 0 2px 4px rgba(18, 158, 217, 0.2);
}

.learn-nav-item i {
    font-size: 14px;
    min-width: 16px;
}

/* Learn Sections */
.learn-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.learn-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.learn-section-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.learn-section-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.learn-section-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* Getting Started Workflow */
.learn-workflow {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Workflow and Connection Order Styling */
.workflow-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #129ed9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.workflow-step:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #129ed9;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    font-size: 16px;
}

.step-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}

.step-arrow {
    color: #129ed9;
    font-size: 20px;
    margin: 8px 0;
    text-align: center;
}

/* Connection Order specific */
.connection-order-container {
    margin: 20px 0;
}

.connection-order-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

/* Workflow specific */
.workflow-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}

.learn-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #129ed9;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.learn-action-btn:hover {
    background: #0e86ba;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(18, 158, 217, 0.3);
}

/* Feature Cards */
.feature-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.learn-feature-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.learn-feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #ccc;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fafbfc;
}

.feature-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.feature-icon {
    font-size: 24px;
    color: #129ed9;
    min-width: 32px;
}

.feature-header h4 {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.feature-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #e9ecef;
    color: #666;
}

.feature-badge.free {
    background: #d4edda;
    color: #155724;
}

.expand-icon {
    font-size: 12px;
    color: #999;
    transition: transform 0.2s ease;
}

.learn-feature-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.feature-details {
    display: none;
    padding: 0 20px 20px 20px;
    border-top: 1px solid #e9ecef;
    background: white;
}

.feature-details.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
    to { opacity: 1; max-height: 300px; padding-top: 16px; padding-bottom: 20px; }
}

.feature-details p {
    margin: 0 0 16px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.feature-capabilities {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.capability {
    font-size: 13px;
    color: #555;
    padding-left: 4px;
}

.learn-try-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #129ed9;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.learn-try-btn:hover {
    background: #129ed9;
    color: white;
    border-color: #129ed9;
}

/* Workflow Scenarios */
.workflow-scenarios {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.scenario-card {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.scenario-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #129ed9;
}

.scenario-header h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scenario-header h4 i {
    color: #129ed9;
}

.scenario-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.flow-step {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 12px 8px;
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.flow-step:hover {
    background: #e3f2fd;
    border-color: #129ed9;
}

.scenario-list {
    margin: 0;
    padding-left: 20px;
    list-style: none;
    counter-reset: step-counter;
}

.scenario-list li {
    margin: 12px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.5;
    color: #2c3e50;
    counter-increment: step-counter;
}

.scenario-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: #129ed9;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.scenario-list li strong {
    color: #129ed9;
    font-weight: 600;
}

/* Integration Cards */
.integration-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.integration-card {
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.integration-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #129ed9;
}

.integration-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #129ed9, #0e86ba);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.integration-icon i {
    font-size: 24px;
    color: white;
}

.integration-card h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.integration-card p {
    margin: 0 0 15px 0;
    color: #64748b;
    line-height: 1.5;
}

.setup-steps {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #129ed9;
}

.setup-steps h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #129ed9;
}

.setup-steps ol {
    margin: 0;
    padding-left: 20px;
}

.setup-steps li {
    margin: 8px 0;
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.4;
}

.setup-note {
    margin: 10px 0 0 0;
    padding: 8px 10px;
    background: #e3f2fd;
    border-radius: 4px;
    font-size: 13px;
    color: #1976d2;
    border-left: 3px solid #2196f3;
}

.integration-btn {
    width: 100%;
    padding: 10px 16px;
    background: #129ed9;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 15px;
}

.integration-btn:hover {
    background: #0e86ba;
    transform: translateY(-1px);
}

.integration-workflow {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
}

.integration-workflow h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.connection-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.connection-step {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 15px 10px;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    position: relative;
}

.flow-number {
    width: 30px;
    height: 30px;
    background: #129ed9;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 10px auto;
    font-size: 14px;
}

.flow-content {
    font-size: 14px;
    line-height: 1.4;
}

.flow-content strong {
    display: block;
    margin-bottom: 4px;
    color: #2c3e50;
    font-weight: 600;
}

.flow-arrow {
    font-size: 18px;
    color: #129ed9;
    font-weight: bold;
    margin: 0 5px;
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.faq-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background: #fafbfc;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #f1f3f4;
}

.faq-question h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.faq-question i {
    color: #999;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 16px 20px;
    border-top: 1px solid #e9ecef;
    background: white;
}

.faq-answer.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.faq-answer p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.faq-answer ol {
    margin: 0 0 16px 0;
    padding-left: 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.faq-answer li {
    margin-bottom: 6px;
}

.faq-action-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #129ed9;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-action-btn:hover {
    background: #129ed9;
    color: white;
    border-color: #129ed9;
}

/* Help Section */
.help-section {
    margin-top: 24px;
}

.help-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
}

.help-card h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.help-card p {
    margin: 0 0 16px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.help-btn {
    padding: 12px 24px;
    background: #129ed9;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(18, 158, 217, 0.3);
}

.help-btn:hover {
    background: #0e86ba;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(18, 158, 217, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .learn-navigator {
        flex-wrap: wrap;
        gap: 8px;
    }

    .scenario-flow {
        flex-direction: column;
        align-items: stretch;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    }

    .integration-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .connection-flow {
        flex-direction: column;
        align-items: stretch;
    }
    
    .connection-step,
    .flow-step {
        margin: 5px 0;
    }
    
    .setup-steps ol {
        padding-left: 15px;
    }
    
    .scenario-list {
        padding-left: 15px;
    }
    
    .scenario-list li {
        padding-left: 25px;
    }
    
    .workflow-step {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .step-number {
        margin-bottom: 8px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 4px 0;
    }
} 