﻿/* qsite.css - Strategic UI Overrides */

/* =========================================
   1. HERO SECTION
   ========================================= */
.hero-section {
    padding: 1rem 1rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 2rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    .btn-hero.btn-primary {
        box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
    }

        .btn-hero.btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.4);
        }

    .btn-hero.btn-outline-secondary:hover {
        border-color: #2563eb;
        color: #2563eb;
        background-color: rgba(37, 99, 235, 0.05);
    }

.hero-trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* =========================================
   2. WORKFLOW SECTION
   ========================================= */
.workflow-section {
    padding: 1rem 0;
    background: #ffffff;
}

.section-title {
    text-align: center;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* Workflow Grid: Force 4 cards per row on desktop */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Compact Card Styling to fit 4 in a row */
.workflow-card {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-radius: 0.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-width: 0;
}

    .workflow-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-color: #3b82f6;
    }

    .workflow-card .workflow-icon {
        font-size: 1.75rem;
        margin-bottom: 0.4rem;
        display: block;
        line-height: 1;
    }

    .workflow-card h3 {
        font-size: 0.85rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 0.4rem;
        line-height: 1.2;
    }

    .workflow-card p {
        font-size: 0.75rem;
        line-height: 1.3;
        color: #64748b;
        margin: 0;
    }

/* =========================================
   3. FEATURES SECTION
   ========================================= */
.features-section {
    padding: 2.5rem 0;
    background: #f1f5f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.feature-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

    .feature-card:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        transform: translateY(-3px);
    }

    .feature-card h3 {
        font-size: 1.15rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 0.5rem;
    }

    .feature-card > p {
        color: #64748b;
        margin-bottom: 0.75rem;
        font-size: 0.95rem;
    }

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .feature-list li {
        padding-left: 1.5rem;
        position: relative;
        margin: 0.4rem 0;
        color: #475569;
        font-size: 0.9rem;
        line-height: 1.4;
    }

        .feature-list li::before {
            content: "\2713";
            position: absolute;
            left: 0;
            color: #10b981;
            font-weight: bold;
        }

/* =========================================
   4. DEMO SECTION
   ========================================= */
.demo-section {
    padding: 1.5rem 0;
    background: #fff;
    text-align: center;
}

.section-subtitle {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.canvas-offset-wrapper {
    width: 100%;
    height: 100%;
    /* Margin is applied via JS CONFIG.canvasOffsetTop */
}

/* Canvas Container - MUST have zero margin/padding to prevent jump */
.three-canvas {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

    /* Three.js canvas sits above the button */
    .three-canvas canvas {
        position: relative;
        z-index: 2;
        display: block;
    }

/* Button overlay sits beneath the canvas */
.canvas-overlay-action {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    pointer-events: auto;
}

.demo-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* =========================================
   5. TIMELINE STYLES
   ========================================= */
.events-wrapper {
    padding: 0 1rem;
    z-index: 1;
    position: relative;
}

/* MERGED & CLEANED */
.event-list {
    position: relative;
    padding: 0 0.5rem;
    padding-bottom: 3rem; /* Updated from 2.5rem */
    min-width: 0;
    flex: 1;
}

.event-date {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.event-list h6 {
    font-size: 0.95rem;
    margin: 0.5rem 0 0.25rem;
}

.event-list p {
    font-size: 0.8rem;
    line-height: 1.3;
}

/* MERGED & CLEANED */
.event-timeline-dot {
    position: relative;
    width: 32px;
    height: 32px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0.75rem auto 0.5rem auto;
    bottom: 1rem; /* Added from duplicate */
    z-index: 3; /* Updated from duplicate */
}

    .event-timeline-dot i {
        font-size: 1.25rem;
        line-height: 1;
    }

/* MERGED & CLEANED */
.event-list::after {
    content: '';
    position: absolute;
    bottom: 2.5rem; /* Updated from 1.5rem */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e2e8f0;
    z-index: 1;
    pointer-events: none;
}

.event-list:last-child::after {
    display: none;
}

.timeline-progress-circle {
    position: absolute;
    bottom: 1.125rem;
    left: 0;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: #3b82f6;
    border-radius: 50%;
    border: 2px solid #ffffff;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-action {
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 3;
}

    .timeline-action button {
        font-size: 0.8rem;
        padding: 0.35rem 1rem;
        white-space: nowrap;
    }

        .timeline-action button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

.event-list.active .event-date {
    background-color: #3b82f6 !important;
}

.event-list.active .event-timeline-dot i {
    color: #3b82f6 !important;
}

.event-list.completed .event-date {
    background-color: #10b981 !important;
}

.event-list.completed .event-timeline-dot i {
    color: #10b981 !important;
}

.event-list.completed h6 {
    color: #1e293b;
}

/* =========================================
   6. LAYOUT & RESPONSIVE
   ========================================= */
.demo-layout {
    position: relative;
}

.demo-background {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    margin: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.demo-timeline-overlay {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .workflow-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .event-list {
        flex: 0 0 100%;
    }
}

/* =========================================
   7. APP PREVIEW & ACTIONS
   ========================================= */
.app-preview-section {
    padding: 2.5rem 0;
    background: #f8fafc;
}

.preview-card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

    .preview-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    .preview-card img {
        width: 100%;
        height: auto;
        border: 1px solid #e2e8f0;
        border-radius: 0.5rem;
    }

.preview-caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

@media (max-width: 768px) {
    .app-preview-section {
        padding: 2rem 0;
    }

    .preview-card {
        padding: 0.5rem;
    }
}

/*#btn-start-action {
    display: block;
    margin: 0 auto 1.5rem auto;
    font-size: 1.1rem;
    padding: 0.75rem 2.5rem;
    border-radius: 2rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

    #btn-start-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    }*/

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: #3b82f6;
    margin-left: 2px;
    animation: blink-cursor 0.7s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink-cursor {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/*new*/
/* Annotation Alert Positioning & Styling */
/* Add/Replace in qsite.css */
.event-list {
    position: relative; /* Establishes positioning context */
}

.step-annotation {
    position: absolute !important; /* Override .alert's position: relative */
    margin-bottom: 0 !important; /* Remove default alert spacing */
    padding: 0.5rem 0.75rem !important; /* Adjust alert padding for compact look */
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 280px;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 0.85rem;
    text-align: center;
    pointer-events: none;
}

    .step-annotation.show {
        opacity: 1;
        transform: translateX(-50%) translateY(-4px);
    }

/* Ensure parent step has relative positioning for absolute alerts */
.event-list {
    position: relative;
}

/* Optional: Darker background for better readability over light cards */
.step-annotation.alert-primary {
    background-color: #0d47a1;
    border-color: #0d47a1;
    color: #ffffff;
}

.step-annotation span {
    display: block;
    line-height: 1.4;
}
