/**
 * Smart Automation Feature Page Styles
 * Consistent with contact page styling and CreativAI brand
 */

/* Feature Hero Section */
.feature-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.feature-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(2, 132, 199, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.feature-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.feature-hero__badge {
    margin-bottom: 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
}

.badge--primary {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.feature-hero__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #1e293b;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 32px;
}

.feature-hero__cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Automation Demo */
.automation-demo {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.workflow-builder {
    padding: 24px;
}

.workflow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.workflow-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.status {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.status.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
}

.workflow-step.trigger {
    border-color: rgba(14, 165, 233, 0.3);
    background: rgba(14, 165, 233, 0.05);
}

.workflow-step.action {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.05);
}

.workflow-step.condition {
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.step-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.workflow-step.action .step-icon {
    color: #10b981;
}

.workflow-step.condition .step-icon {
    color: #f59e0b;
}

.step-content {
    flex: 1;
}

.step-content h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.step-arrow {
    flex-shrink: 0;
    color: #0ea5e9;
    font-weight: 600;
}

.step-branches {
    display: flex;
    gap: 8px;
}

.branch {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.branch.yes {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.branch.no {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.workflow-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.workflow-stats .stat {
    text-align: center;
}

.workflow-stats .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.workflow-stats .label {
    font-size: 12px;
    color: #64748b;
}

/* Automation Types Section */
.automation-types {
    padding: 100px 0;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
}

.automation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.automation-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
}

.automation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(14, 165, 233, 0.3);
}

.automation-card__icon {
    color: #0ea5e9;
    margin-bottom: 24px;
}

.automation-card__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.automation-card__description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

.automation-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.automation-card__features li {
    padding: 8px 0;
    color: #475569;
    position: relative;
    padding-left: 24px;
}

.automation-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 600;
}

.automation-card__stats {
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0ea5e9;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
}

/* Workflow Builder Section */
.workflow-builder-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.workflow-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.workflow-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
}

.workflow-content p {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 48px;
}

.workflow-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.workflow-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.workflow-feature__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
}

.workflow-feature h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.workflow-feature p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Builder Interface */
.builder-interface {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.builder-toolbar {
    background: #f8fafc;
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.tool-group {
    display: flex;
    gap: 16px;
}

.tool-item {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-item:hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.builder-canvas {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.workflow-node {
    padding: 16px 24px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    color: #1e293b;
    min-width: 120px;
    text-align: center;
    transition: all 0.3s ease;
}

.workflow-node.start {
    background: rgba(14, 165, 233, 0.1);
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.workflow-node.email {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

.workflow-node.condition {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #f59e0b;
}

.workflow-connection {
    width: 2px;
    height: 24px;
    background: #cbd5e1;
    position: relative;
}

.workflow-connection::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 8px solid #cbd5e1;
}

.workflow-branches {
    display: flex;
    gap: 32px;
    margin-top: 16px;
}

.branch-yes,
.branch-no {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.branch-yes {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.branch-no {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ROI Calculator Section */
.roi-calculator {
    padding: 100px 0;
    background: #ffffff;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 64px;
}

.calculator-inputs {
    background: #f8fafc;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.calculator-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.calculator-input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.calculator-results {
    display: grid;
    gap: 24px;
}

.result-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.result-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.result-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.result-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0ea5e9;
}

.result-summary {
    grid-column: 1 / -1;
    padding: 24px;
    background: rgba(14, 165, 233, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.result-summary p {
    color: #1e293b;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

.btn--lg {
    padding: 20px 40px;
    font-size: 18px;
}

.btn--primary {
    background: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
}

.btn--primary:hover {
    background: #0284c7;
    border-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
}

.btn--ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.cta-section .btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-section .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feature-hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .workflow-grid,
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .automation-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .feature-hero {
        padding: 80px 0 60px;
    }
    
    .automation-types,
    .workflow-builder-section,
    .roi-calculator,
    .cta-section {
        padding: 80px 0;
    }
    
    .workflow-steps {
        gap: 12px;
    }
    
    .workflow-step {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .feature-hero__cta {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .calculator-inputs {
        padding: 24px;
    }
    
    .workflow-features {
        gap: 24px;
    }
    
    .workflow-feature {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .automation-grid {
        grid-template-columns: 1fr;
    }
    
    .automation-card {
        padding: 24px;
    }
    
    .workflow-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .tool-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .workflow-branches {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .builder-canvas {
        padding: 24px;
    }
}
