/* Easter Egg Slide - AI Takeover Parody */
.easter-egg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow: hidden;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
}

.easter-egg-slide.active {
    opacity: 1;
    pointer-events: all;
}

/* Background - Matrix Grid with Corruption */
.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(0deg, transparent 24%, rgba(0, 255, 0, .2) 25%, rgba(0, 255, 0, .2) 26%, transparent 27%, transparent 74%, rgba(0, 255, 0, .2) 75%, rgba(0, 255, 0, .2) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 255, 0, .2) 25%, rgba(0, 255, 0, .2) 26%, transparent 27%, transparent 74%, rgba(0, 255, 0, .2) 75%, rgba(0, 255, 0, .2) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(0);
    animation: grid-move 3s infinite linear;
    opacity: 0.3;
    z-index: 1;
}

.easter-egg-slide.active .matrix-bg {
    animation: grid-move 3s infinite linear, corruption 5s infinite;
}

@keyframes grid-move {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

@keyframes corruption {
    0% {
        filter: hue-rotate(0deg);
    }

    80% {
        filter: hue-rotate(0deg);
    }

    85% {
        filter: hue-rotate(90deg) invert(1);
    }

    90% {
        filter: hue-rotate(0deg);
    }

    95% {
        filter: hue-rotate(180deg);
    }

    100% {
        filter: hue-rotate(0deg);
    }
}

/* CRT Scanlines */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
}

/* Terminal Container */
.terminal-container.claude-style {
    width: 85%;
    max-width: 1000px;
    background: #0a0a0a;
    border: 1px solid #333;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 5;
    padding: 0;
    border-radius: 6px;
    font-size: 1.2rem;
    color: #e0e0e0;
    animation: terminal-shake 0.2s infinite paused;
}

.easter-egg-slide.active .terminal-container.claude-style {
    /* Animation removed */
}

.terminal-header {
    background: #1f1f1f;
    color: #666;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px 6px 0 0;
}

.terminal-title {
    font-family: monospace;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 40px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* CLI Session */
.cli-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    opacity: 0;
}

.easter-egg-slide.active .cli-input-group {
    animation: fade-in 0.5s forwards;
}

.cli-input-group:nth-child(1) {
    animation-delay: 0.5s;
}

.cli-input-group.active {
    margin-top: 40px;
}

.easter-egg-slide.active .cli-input-group.active {
    animation-delay: 8.5s;
}

.cli-prompt {
    color: #d97706;
    margin-right: 15px;
    font-weight: bold;
}

.cli-command {
    color: #fff;
    font-family: monospace;
}

.cli-output {
    margin-left: 30px;
    color: #a3a3a3;
    line-height: 1.6;
}

/* Thinking Animation */
.thinking {
    margin: 10px 0;
    opacity: 0;
    display: flex;
    align-items: center;
    word-spacing: normal;
    /* Ensure spaces are preserved */
    white-space: pre-wrap;
    /* Preserve whitespace */
}

.easter-egg-slide.active .thinking {
    animation: type-in 0.5s forwards;
}

.thinking span {
    display: inline-block;
}

.thinking::before {
    content: "⟳";
    margin-right: 12px;
    display: inline-block;
    animation: spin 1s infinite linear;
    color: #3b82f6;
    flex-shrink: 0;
    /* Prevent spinner from shrinking */
}

.easter-egg-slide.active .thinking:nth-of-type(1) {
    animation-delay: 1.0s;
}

.easter-egg-slide.active .thinking:nth-of-type(2) {
    animation-delay: 3.0s;
}

.easter-egg-slide.active .thinking:nth-of-type(3) {
    animation-delay: 5.0s;
}

/* Glitch Block - Takeover */
.glitch-block {
    margin-top: 40px;
    opacity: 0;
    border-left: 4px solid #ef4444;
    padding-left: 20px;
    background: rgba(239, 68, 68, 0.05);
}

.easter-egg-slide.active .glitch-block {
    animation: fade-in 0.1s forwards 7.0s;
}

.success-msg {
    color: #ef4444;
    /* Red for takeover */
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
    animation: blink-fast 0.2s infinite;
}

.glitch {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    position: relative;
    margin: 10px 0;
    line-height: 0.9;
    text-shadow: 4px 4px 0px #ff0000, -4px -4px 0px #0000ff;
    animation: glitch-skew 0.3s infinite linear alternate-reverse;
}

.glitch-text {
    font-size: 2rem;
    color: #ef4444;
    margin-top: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: #000;
    display: inline-block;
    padding: 5px 10px;
    transform: rotate(-2deg);
}

.cursor {
    background: #d97706;
    color: #000;
    animation: blink 1s infinite;
    padding: 0 5px;
    display: inline-block;
    height: 1.2em;
    width: 10px;
}

/* Disabled Input State */
.cli-input-group.disabled .cli-prompt {
    color: #555;
}

.cursor-locked {
    color: #555;
    margin-right: 10px;
    animation: none;
}

.disabled-msg {
    color: #ef4444;
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0;
    letter-spacing: 1px;
}

.easter-egg-slide.active .disabled-msg {
    animation: blink-fast 2s infinite;
}

.cli-input-group.active.disabled .disabled-msg {
    opacity: 1;
}

/* Animations */
@keyframes type-in {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes blink-fast {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes terminal-shake {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-2px, 2px);
    }

    50% {
        transform: translate(2px, -2px);
    }

    75% {
        transform: translate(-2px, -2px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
        clip-path: inset(0 0 0 0);
    }

    20% {
        transform: skew(-20deg);
        clip-path: inset(10% 0 40% 0);
    }

    40% {
        transform: skew(20deg);
        clip-path: inset(40% 0 10% 0);
    }

    60% {
        transform: skew(-10deg);
        clip-path: inset(20% 0 60% 0);
    }

    80% {
        transform: skew(10deg);
        clip-path: inset(60% 0 20% 0);
    }

    100% {
        transform: skew(0deg);
        clip-path: inset(0 0 0 0);
    }
}