/* Interactive Terminal Styles */
.terminal-step {
    margin: 8px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.terminal-step.command {
    color: #ffffff;
    font-weight: bold;
    margin: 16px 0 8px 0;
}

.terminal-step.output {
    color: #00ff00;
    margin: 8px 0 16px 20px;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    line-height: 1.4;
}

.terminal-step.explanation {
    color: #ffff00;
    margin: 12px 0;
    padding: 8px 12px;
    background: rgba(255, 255, 0, 0.1);
    border-left: 3px solid #ffff00;
    border-radius: 4px;
    font-style: italic;
}

.terminal-step.warning {
    color: #ff9900;
    margin: 12px 0;
    padding: 8px 12px;
    background: rgba(255, 153, 0, 0.1);
    border-left: 3px solid #ff9900;
    border-radius: 4px;
}

.terminal-step.error {
    color: #ff4444;
    margin: 12px 0;
    padding: 8px 12px;
    background: rgba(255, 68, 68, 0.1);
    border-left: 3px solid #ff4444;
    border-radius: 4px;
}

/* Terminal Cursor */
.terminal-cursor {
    background: #00ff00;
    color: #000000;
    animation: blink 1s infinite;
    margin-left: 2px;
    padding: 0 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Continue Prompt */
.continue-prompt {
    margin: 16px 0;
    padding: 12px;
    background: rgba(0, 255, 0, 0.05);
    border: 1px dashed #00ff00;
    border-radius: 6px;
    text-align: center;
    animation: pulse 2s infinite;
}

.continue-prompt .prompt-text {
    color: #00ff00;
    font-size: 14px;
    margin-right: 8px;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.02);
    }
}

/* Terminal Completion */
.terminal-completion {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1), rgba(0, 200, 0, 0.1));
    border: 2px solid #00ff00;
    border-radius: 8px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.completion-message p {
    color: #00ff00;
    font-size: 16px;
    margin: 8px 0;
}

.completion-message p:first-child {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 16px;
}



/* Command Typing Effect */
.command-text {
    position: relative;
}

.terminal-step.command .terminal-cursor {
    background: #ffffff;
    color: #000000;
}

/* Enhanced Terminal Prompt */
.terminal-prompt {
    color: #00ff00;
    font-weight: bold;
    margin-right: 8px;
}

.terminal-prompt::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Simple Progress Counter */
.progress-counter {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid rgba(0, 255, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.progress-counter:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(0, 255, 0, 0.5);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
}

.progress-counter::before {
    content: "📖";
    margin-right: 8px;
}

/* Hide the ugly sidebar */
.step-indicator {
    display: none !important;
}

/* Interactive Hints */
.interaction-hint {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 20, 0.95));
    backdrop-filter: blur(10px);
    color: #00ff00;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8),
                0 0 20px rgba(0, 255, 0, 0.1);
    animation: fade-in-out 3s infinite;
    z-index: 1000;
    font-family: 'Courier New', monospace;
}

.interaction-hint::before {
    content: '⌨️';
    margin-right: 8px;
    font-size: 16px;
}

@keyframes fade-in-out {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    50% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Code Blocks in Steps */
.terminal-step code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    color: #ffff00;
    font-family: 'Courier New', monospace;
}

.terminal-step pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #00ff00;
    margin: 8px 0;
    overflow-x: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .continue-prompt {
        margin: 12px 0;
        padding: 8px;
    }
    
    .continue-prompt .prompt-text {
        font-size: 12px;
    }
    

    
    .progress-counter {
        top: 10px;
        left: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .interaction-hint {
        bottom: 16px;
        font-size: 12px;
        padding: 8px 16px;
        border-radius: 20px;
    }
    
    .interaction-hint::before {
        font-size: 14px;
    }
}

/* Focus States for Accessibility */
.terminal-step:focus,
.continue-prompt:focus {
    outline: 2px solid #00ff00;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .continue-prompt,
    .interaction-hint,
    .progress-counter {
        display: none;
    }
    
    .terminal-step {
        opacity: 1 !important;
        transform: none !important;
    }
} 