/* ============================================
   AI Status Bar - Content Generation Effect
   ============================================ */

/* Floating AI Status Bar at bottom of viewport */
.ai-status-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 14px;
    background: rgba(32, 32, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.ai-status-bar.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ai-status-bar.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
}

/* AI Logo/Icon - pulsing indicator */
.ai-status-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ai-pulse 2s ease-in-out infinite;
}

.ai-status-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

@keyframes ai-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.85;
    }
}

/* Status text container */
.ai-status-text {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
    white-space: nowrap;
    min-width: 120px;
}

/* Blinking cursor after text */
.ai-status-text::after {
    content: '|';
    display: inline-block;
    margin-left: 2px;
    animation: ai-blink 1s step-end infinite;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes ai-blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Blinking dot indicator */
.ai-status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: ai-dot-blink 1.5s ease-in-out infinite;
    margin-left: 4px;
}

@keyframes ai-dot-blink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

/* ============================================
   Content Reveal Animations
   ============================================ */

/* Elements waiting to be revealed - blurred and faded */
.ai-revealable {
    filter: blur(4px);
    opacity: 0.3;
    transform: translateY(8px);
    transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Revealed content - sharp and visible */
.ai-revealable.ai-revealed {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal delays for child elements */
.ai-revealable.ai-revealed:nth-child(1) {
    transition-delay: 0s;
}

.ai-revealable.ai-revealed:nth-child(2) {
    transition-delay: 0.1s;
}

.ai-revealable.ai-revealed:nth-child(3) {
    transition-delay: 0.2s;
}

.ai-revealable.ai-revealed:nth-child(4) {
    transition-delay: 0.3s;
}

.ai-revealable.ai-revealed:nth-child(5) {
    transition-delay: 0.4s;
}

/* Special burst animation for logo when section completes */
.ai-status-logo.burst {
    animation: ai-burst 0.5s ease-out forwards;
}

@keyframes ai-burst {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
        filter: brightness(1.3);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}