/* --- START OF FILE showcase.css --- */

.showcase-section.alt-bg {
    background: rgba(255, 255, 255, 0.02);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-details {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-details li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.feature-details li::before {
    content: "•";
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.feature-details strong {
    color: var(--text-primary);
}

.split-layout.reverse {
    direction: rtl;
}

.split-layout.reverse .content,
.split-layout.reverse .visual {
    direction: ltr;
}

/* Mock Window - Glassmorphism Base */
.mock-window {
    background: rgba(15, 15, 22, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mock-window:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.window-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ff5f56;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #27c93f;
}

.window-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    flex: 1;
    text-align: center;
    margin-right: 36px;
}

.window-body {
    /* Changed from fixed height to min-height to allow expansion on mobile */
    min-height: 350px;
    position: relative;
    display: flex;
}

/* Feature 1: LLM Workspace */
.sidebar {
    width: 160px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-item {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item:hover,
.sidebar-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 5px 0;
}

.main-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.01);
}

.chat-area {
    height: 280px;
    /* Fixed height for scroll area */
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 90%;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.avatar {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.message.bot .avatar {
    background: var(--gradient-main);
}

.bubble {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.message.user .bubble {
    background: var(--accent-primary);
    color: white;
}

.message.bot .bubble strong {
    color: var(--text-primary);
}

.citation-box {
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.input-area {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.input-placeholder {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.send-btn {
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
}

/* Feature 2: Automation Engine */
.canvas-body {
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    /* Ensure height */
}

.flow-step {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 280px;
    position: relative;
    transition: all 0.3s ease;
    z-index: 2;
}

.flow-step[data-status="completed"] {
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.flow-step[data-status="processing"] {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.step-icon {
    font-size: 1.5rem;
}

.step-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.step-info strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.step-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.status-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.flow-step[data-status="completed"] .status-badge {
    background: #10b981;
    color: white;
}

.spinner {
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

.flow-connector {
    height: 40px;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
}

.data-packet {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: absolute;
    left: -3px;
    top: 0;
    opacity: 0;
    box-shadow: 0 0 10px var(--accent-primary);
}

.data-packet.animating {
    animation: flowData 1.5s infinite;
}

.flow-row {
    display: flex;
    gap: 20px;
}

/* Feature 3: Command Center */
.support-body {
    background: #0a0a0f;
    display: flex;
}

.chat-column {
    flex: 1;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-column {
    width: 200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(0, 0, 0, 0.2);
}

.chat-bubble {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.chat-bubble.customer {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.chat-bubble.agent {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.chat-bubble strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.75rem;
    color: var(--text-primary);
}

.approve-btn {
    margin-top: 10px;
    width: 100%;
    background: var(--accent-primary);
    border: none;
    color: white;
    padding: 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.sentiment-gauge {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    margin-bottom: 5px;
}

.gauge-fill {
    height: 100%;
    background: #ff5f56;
    border-radius: 3px;
    transition: width 1s ease, background 1s ease;
}

.gauge-text {
    font-size: 0.8rem;
    color: var(--text-primary);
}

.lang-badge {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Keyframes */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes flowData {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.hidden {
    display: none !important;
}

/* =========================================
   MOBILE OPTIMIZATIONS (Responsive Fixes)
   ========================================= */
@media (max-width: 768px) {

    /* General Adjustments */
    .showcase-section {
        padding: 60px 0;
    }

    .mock-window {
        max-width: 100%;
        border-radius: 12px;
    }

    .window-body {
        height: auto;
        /* Allow body to grow */
        min-height: auto;
        flex-direction: column;
    }

    /* Feature 1: Chat Workspace Mobile */
    .sidebar {
        display: none;
        /* Hide sidebar on mobile */
    }

    .chat-area {
        height: 300px;
        /* Fixed height for internal scroll */
        padding: 15px;
    }

    .message {
        max-width: 100%;
    }

    /* Feature 2: Workflow Mobile (Stacking) */
    .canvas-body {
        padding: 20px 15px;
    }

    .flow-step {
        width: 100%;
        /* Full width */
        max-width: 320px;
    }

    .flow-row {
        flex-direction: column;
        /* Stack horizontal steps */
        width: 100%;
        align-items: center;
        gap: 0;
    }

    /* Create pseudo-connectors between stacked flow-row items */
    .flow-row .flow-step:not(:last-child) {
        margin-bottom: 30px;
    }

    .flow-row .flow-step:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: -32px;
        /* Position below the card */
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        height: 32px;
        /* Match gap */
        background: rgba(255, 255, 255, 0.1);
        z-index: 1;
    }

    .flow-connector.vertical {
        height: 30px;
    }

    /* Feature 3: Support Dashboard Mobile */
    .support-body {
        flex-direction: column;
    }

    .chat-column {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        height: auto;
        min-height: 250px;
    }

    .info-column {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        /* Allow wrapping */
        gap: 10px;
        padding: 15px;
    }

    .info-card {
        flex: 1 1 140px;
        /* Grow and shrink, min width 140px */
    }
}