/* 💻 LOADING SCREEN - Typing Python Code */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    font-family: 'Courier New', monospace;
    cursor: pointer;
}

.loading-content {
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary-color, #b400ff);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 0 50px rgba(180, 0, 255, 0.3);
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

.loading-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(180, 0, 255, 0.3);
}

.loading-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color, #b400ff);
    text-shadow: 0 0 10px rgba(180, 0, 255, 0.5);
}

.loading-version {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.loading-terminal {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(180, 0, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
    min-height: 300px;
    max-height: 500px;
    position: relative;
}

.loading-terminal pre {
    margin: 0;
    padding: 0;
    color: #00ff00;
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.loading-terminal .cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: var(--primary-color, #b400ff);
    margin-left: 2px;
    vertical-align: middle;
}

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

.loading-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(180, 0, 255, 0.3);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(180, 0, 255, 0.3);
    border-top-color: var(--primary-color, #b400ff);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Custom scrollbar for terminal */
.loading-terminal::-webkit-scrollbar {
    width: 8px;
}

.loading-terminal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.loading-terminal::-webkit-scrollbar-thumb {
    background: rgba(180, 0, 255, 0.3);
    border-radius: 4px;
}

.loading-terminal::-webkit-scrollbar-thumb:hover {
    background: rgba(180, 0, 255, 0.5);
}

/* Loading hint */
.loading-hint {
    opacity: 0;
    animation: fadeInHint 0.5s ease-in-out 1s forwards;
}

@keyframes fadeInHint {
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .loading-content {
        width: 95%;
        padding: 20px;
    }
    
    .loading-logo {
        font-size: 18px;
    }
    
    .loading-terminal {
        min-height: 200px;
        max-height: 300px;
    }
    
    .loading-terminal pre {
        font-size: 14px;
    }
}

/* Syntax highlighting colors */
.loading-terminal pre {
    color: #e0e0e0;
}

/* Python syntax colors */
.py-comment {
    color: #6a9955;
}

.py-keyword {
    color: #569cd6;
}

.py-string {
    color: #ce9178;
}

.py-function {
    color: #dcdcaa;
}
