/* ============================================
   SCRUNCHEE.AI - BOOT SEQUENCE ANIMATIONS
   ============================================ */

/* Boot Screen Container */
#boot-screen {
    position: fixed;
    inset: 0;
    background: var(--deep-black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 2rem;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#boot-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Boot Terminal */
#boot-terminal {
    width: 100%;
    max-width: 700px;
    font-family: var(--font-terminal);
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--phosphor-green);
}

/* Boot Line Styling */
.boot-line {
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
}

.boot-line.visible {
    opacity: 1;
}

.boot-line.typing {
    animation: typing-reveal 0.3s steps(1) forwards;
}

@keyframes typing-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Status Tags */
.status-ok {
    color: var(--phosphor-green);
}

.status-ok::before {
    content: '[  OK  ] ';
    color: var(--phosphor-green);
}

/* Progress Bar Container */
.boot-progress-container {
    display: inline;
}

.boot-progress {
    display: inline-block;
    min-width: 200px;
}

.boot-progress-bar {
    font-family: var(--font-terminal);
}

/* Terminal Cursor */
.terminal-cursor {
    display: inline-block;
    width: 0.6em;
    height: 1.2em;
    background: var(--phosphor-green);
    animation: cursor-blink 0.8s step-end infinite;
    vertical-align: text-bottom;
    box-shadow: 0 0 5px var(--phosphor-green);
    margin-left: 2px;
}

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

/* Boot Header Text */
.boot-header {
    color: var(--phosphor-green);
    text-shadow: 0 0 10px var(--phosphor-green);
    font-size: var(--text-xl);
    margin-bottom: 0.5rem;
}

/* Boot Spacer */
.boot-spacer {
    height: 1.5em;
}

/* Operator Info */
.boot-operator {
    color: var(--amber-glow);
    text-shadow: 0 0 5px var(--amber-glow);
}

.boot-clearance {
    color: var(--amber-glow);
}

/* Welcome Message */
.boot-welcome {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--phosphor-green);
    text-shadow: 0 0 15px var(--phosphor-green), 0 0 30px var(--phosphor-green);
    letter-spacing: 0.2em;
    margin-top: 1rem;
}

/* Skip Button */
#skip-boot {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-family: var(--font-terminal);
    font-size: var(--text-sm);
    color: var(--phosphor-green-dim);
    background: transparent;
    border: 1px solid var(--phosphor-green-dark);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.1s;
    z-index: 10000;
}

#skip-boot:hover {
    color: var(--phosphor-green);
    border-color: var(--phosphor-green);
    text-shadow: 0 0 5px var(--phosphor-green);
}

/* Fade In Animation for Main Content */
#main-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

#main-content.visible {
    opacity: 1;
}

/* ============================================
   PROGRESS BAR ANIMATION
   ============================================ */

@keyframes progress-fill {
    0% { width: 0; }
    20% { width: 20%; }
    40% { width: 45%; }
    60% { width: 65%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

/* ============================================
   MOBILE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    #boot-terminal {
        font-size: var(--text-base);
        line-height: 1.6;
    }

    .boot-welcome {
        font-size: var(--text-xl);
        letter-spacing: 0.1em;
    }

    #skip-boot {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    #boot-terminal {
        font-size: var(--text-sm);
    }

    .boot-header {
        font-size: var(--text-base);
    }
}
