/* ===================================================================
   Platform Page Styles (Platform/Index.cshtml)
   Location: Pages/Platform/Index.css
   Scope: Only applies to /platform page
   Bootstrap 5 CSS Variables: Use var(--bs-*) for colors
   
   Note: Common components (.standards-badge, .pillar-card, .workflow-card)
         are defined in workflow-enhancements.css (theme-level).
         Only platform-specific styles and enhancements defined here.
   =================================================================== */

/* =================================================================
   Process Steps - Horizontal Timeline (How It Works Section)
   ================================================================= */
.process-steps {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 3rem;
    position: relative;
    padding: 2rem 0;
}

.process-step {
    flex: 1;
    max-width: 350px;
    text-align: center;
    position: relative;
}

/* Process step number circle with gradient */
.process-step-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0066a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(var(--bs-primary-rgb), 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step-icon i {
    font-size: 2.5rem;
    color: white;
}

.process-step:hover .process-step-icon {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 28px rgba(var(--bs-primary-rgb), 0.35);
}

/* Connecting arrows between process steps */
.process-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -3rem;
    top: 50px;
    font-size: 2rem;
    color: var(--bs-primary);
    opacity: 0.4;
}

.process-step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bs-dark);
    margin-bottom: 1rem;
}

.process-step-description {
    color: var(--bs-secondary);
    line-height: 1.6;
}

/* Responsive: Vertical layout on mobile/tablet */
@media (max-width: 991.98px) {
    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .process-step {
        max-width: 100%;
    }

    .process-step:not(:last-child)::after {
        content: "↓";
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        bottom: -2rem;
    }
}

/* =================================================================
   Feature Highlight Boxes (Used in Platform Feature Sections)
   ================================================================= */
.feature-highlight {
    background: rgba(var(--bs-light-rgb), 0.5);
    border-left: 4px solid var(--bs-primary);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
    transition: all 0.3s ease;
}

.feature-highlight:hover {
    background: var(--bs-light);
    border-left-color: #0066a1;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.feature-highlight h4 {
    color: var(--bs-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-highlight p {
    margin-bottom: 0;
    color: var(--bs-dark);
    line-height: 1.6;
}

/* Optional: Icon integration for feature highlights */
.feature-highlight i {
    font-size: 1.5rem;
    color: var(--bs-primary);
    margin-right: 0.75rem;
    vertical-align: middle;
}

/* =================================================================
   Audit Timeline (Thread-Based Accountability Section)
   ================================================================= */
.audit-timeline {
    position: relative;
    padding-left: 3rem;
}

.audit-timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 2rem;
    border-left: 2px solid var(--bs-primary);
}

.audit-timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

/* Timeline event circle icon */
.audit-timeline-item::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bs-primary);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--bs-primary);
    z-index: 2;
}

/* Different colors for different event types */
.audit-timeline-item.initiated::before {
    background: var(--bs-primary);
    box-shadow: 0 0 0 2px var(--bs-primary);
}

.audit-timeline-item.completed::before {
    background: var(--bs-success);
    box-shadow: 0 0 0 2px var(--bs-success);
}

.audit-timeline-item strong {
    color: var(--bs-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.audit-timeline-item:hover {
    background: rgba(var(--bs-light-rgb), 0.5);
    border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
    margin-left: -0.5rem;
    padding-left: 2.5rem;
}

/* =================================================================
   Workflow Diagram Container (Screenshot/Diagram Display)
   ================================================================= */
.workflow-diagram-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--bs-border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    background: white;
    transition: box-shadow 0.3s ease;
}

.workflow-diagram-container:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}

.workflow-diagram-container img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    display: block;
}

.workflow-diagram-container:hover img {
    transform: scale(1.02);
}

/* Caption styling for diagrams */
.workflow-diagram-container + p.small {
    margin-top: 1rem;
    font-style: italic;
}

/* =================================================================
   Platform-Specific Workflow Card Enhancements
   ================================================================= */
/* Base .workflow-card is defined in workflow-enhancements.css */
/* Add platform-specific hover and spacing */

section .workflow-card {
    padding: 2rem;
    background: white;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: all 0.3s ease;
    height: 100%;
}

section .workflow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--bs-primary);
}

section .workflow-card h4 {
    margin-bottom: 1rem;
    color: var(--bs-dark);
}

section .workflow-card i.bi {
    display: inline-block;
}

section .workflow-card ul {
    margin-top: 1rem;
}

/* Integration cards (2-column grid) */
.row .workflow-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

/* =================================================================
   CTA Cards (Multi-Path CTA Section)
   ================================================================= */
.cta-card {
    transition: all 0.3s ease;
    border: 1px solid var(--bs-border-color);
}

.cta-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: var(--bs-primary);
}

.cta-card i.bi {
    transition: transform 0.3s ease;
}

.cta-card:hover i.bi {
    transform: scale(1.1);
}

/* =================================================================
   Section-Specific Refinements
   ================================================================= */

/* How It Works Section - Add subtle background to process container */
.process-steps-container {
    background: linear-gradient(to bottom, rgba(var(--bs-light-rgb), 0.3), transparent);
    padding: 3rem 0;
    border-radius: var(--bs-border-radius);
}

/* Standards Architecture Section - Icon sizing */
section .text-center i.fs-1 {
    display: block;
    margin-bottom: 1.5rem;
}

/* Collaboration Section - Card grid spacing */
.collaboration-grid .workflow-card {
    padding: 2rem 1.5rem;
}

/* =================================================================
   Responsive Adjustments
   ================================================================= */

/* Tablet (768px - 991px) */
@media (max-width: 991.98px) {
    .feature-highlight {
        margin-bottom: 1rem;
    }

    .audit-timeline {
        padding-left: 2rem;
    }

    .audit-timeline-item {
        padding-left: 1.5rem;
    }

    .workflow-diagram-container {
        margin-bottom: 2rem;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767.98px) {
    .process-step-icon {
        width: 80px;
        height: 80px;
    }

    .process-step-icon i {
        font-size: 2rem;
    }

    .process-step-title {
        font-size: 1.25rem;
    }

    .feature-highlight {
        padding: 1rem;
    }

    .audit-timeline {
        padding-left: 1.5rem;
    }

    .audit-timeline-item {
        padding-left: 1rem;
    }

    section .workflow-card {
        padding: 1.5rem;
    }
}

/* =================================================================
   Print Styles (Optional - for PDF exports)
   ================================================================= */
@media print {
    .workflow-diagram-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .audit-timeline-item {
        page-break-inside: avoid;
    }
}

/* =================================================================
   Screenshot Placeholders
   ================================================================= */

.screenshot-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.screenshot-placeholder i {
    font-size: 3rem;
    opacity: 0.8;
}

.screenshot-placeholder p {
    margin: 1rem 0 0 0;
    max-width: 500px;
}

@media (max-width: 768px) {
    .screenshot-placeholder {
        min-height: 300px;
        padding: 3rem 1.5rem;
    }

    .screenshot-placeholder i {
        font-size: 2.5rem;
    }
}

/* =================================================================
   Competitive Comparison Table
   ================================================================= */

/* Comparison Table */
.comparison-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.comparison-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comparison-table thead th {
    padding: 1.5rem 1rem;
    font-weight: 600;
    border: none;
    text-align: center;
}

.comparison-table tbody td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody td:first-child {
    font-weight: 600;
    background: #f8f9fa;
}

.comparison-table .highlight-column {
    background: #f0f8ff;
    font-weight: 600;
    color: #0056b3;
}

.comparison-table tbody td {
    text-align: center;
}

.comparison-table tbody td:first-child {
    text-align: left;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 0.8rem 0.5rem;
    }
}

