/* ============================================
   SOLUTIONS PAGES - SHARED STYLES
   Common styles for all solution detail pages
   ============================================ */

/* Page Container */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.page-container h2 {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-xl);
}

/* Hero Section */
.hero-section {
    padding: 140px 0 var(--space-3xl);
    background: white;
}

.hero-content {
    max-width: 750px;
    margin: 0 auto;
    padding-top: var(--space-lg);
}

.hero-content .badge {
    margin-bottom: var(--space-md);
}

.hero-content h1 {
    margin: var(--space-md) 0;
}

.hero-subheading {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: var(--space-lg) 0 var(--space-xl);
}

/* Content Block */
.content-block {
    max-width: 750px;
    margin: 0 auto;
}

.content-block p {
    margin-bottom: var(--space-lg);
}

.content-block h3 {
    margin: var(--space-xl) 0 var(--space-md);
}

.highlight-text {
    padding: var(--space-lg);
    background: var(--action-light);
    border-left: 4px solid var(--action);
    border-radius: var(--radius-md);
    font-size: 17px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Process Steps */
.process-steps {
    margin: var(--space-2xl) auto;
    max-width: 750px;
}

.process-step {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border);
}

.process-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--brand-gradient);
    color: white;
    font-size: 22px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-content h4 {
    margin-bottom: var(--space-sm);
    color: var(--text);
}

.step-content p {
    margin-bottom: var(--space-md);
}

.step-content p:last-child {
    margin-bottom: 0;
}

.simple-list {
    list-style: none;
    padding: 0;
    margin: var(--space-sm) 0 var(--space-sm) 0;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.simple-list li {
    padding: var(--space-xs) 0;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

.simple-list li:before {
    content: "→ ";
    color: var(--teal);
    font-weight: 700;
    margin-right: 8px;
}

/* Before/After Comparison */
.before-after-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin: var(--space-2xl) auto;
    max-width: 900px;
    align-items: start;
}

.comparison-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.comparison-highlight {
    background: var(--surface-alt);
    border-color: var(--teal);
    box-shadow: var(--shadow-md);
}

.comparison-label {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-md);
}

.comparison-card p {
    margin: 0;
    flex: 1;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    font-size: 16px;
    color: var(--text);
}

.check-icon {
    width: 28px;
    height: 28px;
    background: var(--action);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Case Example */
.case-example {
    background: white;
    border: 2px solid var(--teal);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-2xl) auto;
    max-width: 750px;
}

.case-example h3 {
    margin-top: 0;
    margin-bottom: var(--space-md);
    color: var(--deep-teal);
}

.case-example p {
    margin-bottom: var(--space-md);
}

.case-example p:last-child {
    margin-bottom: 0;
}

/* Metric Highlight Box */
.metric-highlight {
    margin: var(--space-2xl) auto;
    max-width: 750px;
    display: flex;
    justify-content: center;
}

.metric-box {
    background: linear-gradient(135deg, var(--teal) 0%, var(--deep-teal) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
}

.metric-value {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.5px;
}

.metric-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
}

/* Code Example Block */
.code-example {
    background: var(--surface-alt);
    border-left: 4px solid var(--teal);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-md) 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.code-example p {
    margin: 0;
    color: var(--text);
}

/* Requirements Grid */
.requirements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin: var(--space-2xl) auto;
    max-width: 900px;
}

.requirement-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.requirement-card h4 {
    margin-top: 0;
    margin-bottom: var(--space-md);
    color: var(--teal);
}

.numbered-list {
    padding-left: var(--space-lg);
    margin: 0;
}

.numbered-list li {
    padding: var(--space-sm) 0;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Timeline Info */
.timeline-info {
    background: var(--surface-alt);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: var(--space-xl) auto;
    max-width: 750px;
}

.info-row {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    font-size: 16px;
}

.info-row strong {
    flex-shrink: 0;
    min-width: 100px;
    color: var(--text);
}

.info-row span {
    color: var(--text-muted);
}

.summary-text {
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    margin-top: var(--space-xl);
}

/* Case Images */
.case-image {
    margin: var(--space-2xl) 0;
    text-align: center;
}

.case-image img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
    transition: all var(--transition);
}

.case-image img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.case-image figcaption {
    margin-top: var(--space-md);
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

/* Screenshots Grid - Side by Side */
.screenshots-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: var(--space-xl);
    margin: var(--space-2xl) auto;
    max-width: 1000px;
    align-items: start;
}

.screenshots-grid.equal {
    grid-template-columns: 1fr 1fr;
}

.case-image-inline {
    text-align: center;
}

.case-image-inline img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: block;
    cursor: zoom-in;
    transition: all var(--transition);
}

.case-image-inline img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.case-image-inline figcaption {
    margin-top: var(--space-md);
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    line-height: 1.5;
}

/* CTA Section - Floating Card */
.cta-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 70px 60px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(19, 53, 61, 0.18);
    text-align: center;
    border: 1px solid var(--border);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--text);
    margin-bottom: var(--space-lg);
}

.cta-content p {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.cta-content .btn {
    margin-top: var(--space-xl);
}

.cta-secondary-text {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Button after secondary text should have smaller margin (2x less than default) */
.cta-content .cta-secondary-text + .btn-secondary {
    margin-top: var(--space-md) !important;
}

/* Footer - normal spacing */
.site-footer {
    padding-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .page-container {
        padding: 0 20px;
    }
    
    .cta-section {
        margin: var(--space-2xl) 20px;
        padding: 50px 40px;
        border-radius: 16px;
    }
    
    .site-footer {
        padding-top: 0;
    }
    
    .hero-subheading {
        font-size: 18px;
    }
    
    .before-after-grid {
        grid-template-columns: 1fr;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .info-row {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .case-image img {
        border-radius: var(--radius-md);
    }
    
    .screenshots-grid,
    .screenshots-grid.equal {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .metric-box {
        min-width: auto;
        padding: var(--space-xl);
    }
    
    .metric-value {
        font-size: 56px;
    }
    
    .metric-label {
        font-size: 18px;
    }
}

