/* ====================================
   MODERN LEARN SECTION STYLES - SHOPIFY STYLE
   ==================================== */

/* Learn Panel Styles */
.learn-navigator {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 24px;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px;
    border: 1px solid #e1e6f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.learn-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: transparent;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
    border: 1px solid transparent;
}

.learn-nav-item:hover {
    background: #f8fafb;
    color: #1a1a1a;
    border-color: #e1e6f0;
}

.learn-nav-item.active {
    background: #f8fafb;
    color: #374151;
    border-color: #d1d5db;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

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

/* 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: 24px;
    padding: 0;
    border: none;
}

.learn-section-header h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.learn-section-header p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

.workflow-step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e1e6f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.workflow-step:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 16px;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.step-content p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.step-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    font-size: 16px;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.step-description {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.step-arrow {
    color: #9ca3af;
    font-size: 18px;
    margin: 8px 0;
    text-align: center;
}

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

.connection-order-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Workflow specific */
.workflow-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.learn-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #129ed9;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 1px 3px rgba(18, 158, 217, 0.2);
}

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

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

.learn-feature-card {
    background: #ffffff;
    border: 1px solid #e1e6f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

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

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

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

.feature-logo-icon {
    width: 48px;
    height: 48px;
    margin-right: 12px;
    flex-shrink: 0;
}

.feature-icon {
    font-size: 24px;
    color: #6b7280;
    min-width: 40px;
}

.feature-header h4 {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.feature-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f1f5f9;
    color: #64748b;
}

.feature-badge.free {
    background: #dcfce7;
    color: #166534;
}

.feature-badge.beta {
    background: #f59e0b !important;
    color: #ffffff !important;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expand-icon {
    font-size: 14px;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

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

.feature-details {
    display: none;
    padding: 0 24px 24px 24px;
    border-top: 1px solid #f3f4f6;
    background: #fafbfc;
}

.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: 400px; padding-top: 20px; padding-bottom: 24px; }
}

.feature-details p {
    margin: 0 0 16px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.capability {
    font-size: 13px;
    color: #374151;
    padding-left: 4px;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.learn-try-btn {
    padding: 8px 16px;
    background: #ffffff;
    color: #129ed9;
    border: 1px solid #129ed9;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.learn-try-btn:hover {
    background: #129ed9;
    color: #ffffff;
    border-color: #129ed9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(18, 158, 217, 0.2);
}

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

.scenario-card {
    background: #ffffff;
    border: 1px solid #e1e6f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.scenario-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #6b7280;
    transform: translateY(-1px);
}

.scenario-header h4 {
    margin: 0 0 16px 0;
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.scenario-header h4 i {
    color: #6b7280;
}

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

.flow-step {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 16px 12px;
    background: #f8fafb;
    border: 1px solid #e1e6f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.flow-step:hover {
    background: #eff6ff;
    border-color: #6b7280;
}

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

.scenario-list li {
    margin: 16px 0;
    padding-left: 36px;
    position: relative;
    line-height: 1.6;
    color: #374151;
    counter-increment: step-counter;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.scenario-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: #f3f4f6; border: 1px solid #d1d5db;
    color: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scenario-list li strong {
    color: #6b7280;
    font-weight: 600;
}

/* Integration Cards - Clean Modern Shopify Style */
.integration-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
    max-width: 1200px;
    width: 100%;
}

@media (max-width: 768px) {
    .integration-cards {
        grid-template-columns: 1fr;
    }
}

.integration-card {
    background: #ffffff;
    border: 1px solid #e1e6f0;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

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

.integration-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: none;
}

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

.integration-card h4 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.3;
}

.integration-card p {
    margin: 0 0 20px 0;
    color: #6b7280;
    line-height: 1.6;
    font-size: 15px;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.setup-steps {
    margin: 20px 0;
    padding: 20px;
    background: #f8fafb;
    border-radius: 10px;
    border: 1px solid #e1e6f0;
    border-left: 4px solid #e5e7eb;
}

.setup-steps h5 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.setup-steps li {
    margin: 8px 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.setup-note {
    margin: 16px 0 0 0;
    padding: 12px 16px;
    background: #eff6ff;
    border-radius: 8px;
    font-size: 13px;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.integration-btn {
    width: 100%;
    padding: 12px 20px;
    background: #129ed9;
    color: #ffffff;
    border: 1px solid #129ed9;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.integration-btn:hover {
    background: #0f8bb8;
    border-color: #0f8bb8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 158, 217, 0.3);
}

.integration-workflow {
    margin: 30px 0;
    padding: 24px;
    background: #f8fafb;
    border-radius: 12px;
    border: 1px solid #e1e6f0;
}

.integration-workflow h4 {
    margin: 0 0 20px 0;
    color: #1a1a1a;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.connection-step {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 20px 16px;
    background: white;
    border: 1px solid #e1e6f0;
    border-radius: 10px;
    position: relative;
}

.flow-number {
    width: 32px;
    height: 32px;
    background: #f3f4f6; border: 1px solid #d1d5db;
    color: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 12px auto;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.flow-content {
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.flow-arrow {
    font-size: 18px;
    color: #6b7280;
    font-weight: bold;
    margin: 0 8px;
}

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

.faq-item {
    background: #ffffff;
    border: 1px solid #e1e6f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #6b7280;
}

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

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

.faq-question h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.faq-question i {
    color: #9ca3af;
    font-size: 14px;
    transition: transform 0.2s ease;
}

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

.faq-answer {
    display: none;
    padding: 20px 24px;
    border-top: 1px solid #f3f4f6;
    background: #fafbfc;
}

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

.faq-answer p {
    margin: 0 0 12px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

.faq-action-btn {
    padding: 8px 16px;
    background: #ffffff;
    color: #129ed9;
    border: 1px solid #129ed9;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.faq-action-btn:hover {
    background: #129ed9;
    color: #ffffff;
    border-color: #129ed9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(18, 158, 217, 0.2);
}

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

.help-card {
    background: linear-gradient(135deg, #f8fafb 0%, #e5e7eb 100%);
    border: 1px solid #e1e6f0;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.help-card h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.help-card p {
    margin: 0 0 20px 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.help-btn {
    padding: 12px 24px;
    background: #129ed9;
    color: #ffffff;
    border: 1px solid #129ed9;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(18, 158, 217, 0.1);
    font-family: 'Inter Variable', -apple-system, BlinkMacSystemFont, sans-serif;
}

.help-btn:hover {
    background: #0f8bb8;
    border-color: #0f8bb8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(18, 158, 217, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .learn-navigator {
        gap: 4px;
        padding: 6px;
    }

    .learn-nav-item {
        padding: 10px 12px;
        font-size: 13px;
        gap: 10px;
    }

    .learn-section-header h3 {
        font-size: 20px;
    }

    .workflow-step {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px 16px;
    }

    .step-number {
        margin-bottom: 0;
    }

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

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

    .integration-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .integration-card {
        padding: 24px;
    }

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

    .connection-step,
    .flow-step {
        margin: 8px 0;
    }

    .setup-steps ol {
        padding-left: 16px;
    }

    .scenario-list {
        padding-left: 16px;
    }

    .scenario-list li {
        padding-left: 32px;
    }
}

@media (max-width: 480px) {
    .learn-navigator {
        margin-bottom: 16px;
    }

    .learn-section-header {
        margin-bottom: 16px;
    }

    .learn-section-header h3 {
        font-size: 18px;
    }

    .workflow-container {
        gap: 12px;
    }

    .integration-card {
        padding: 20px;
    }

    .help-card {
        padding: 24px;
    }
}

/* Fix learn sidebar overflow issue - force single column for integration cards */
#learn-integrations-setup .integration-cards {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
}

#learn-integrations-setup .integration-card {
    padding: 24px !important;
    margin: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#learn-integrations-setup .setup-steps {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#learn-integrations-setup .setup-steps ol {
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
} 