/* Modern Terminal Styles */
.terminal {
    color: var(--text-primary);
    background-color: transparent;
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Monaco, 'Inconsolata', 'Courier New', monospace;
    font-size: 0.875rem;
    padding: 1.5rem;
    box-sizing: border-box;
    min-height: 500px;
    max-height: 650px;
    overflow-y: auto;
    position: relative;
}

/* Terminal Prompt */
.term-home {
    color: var(--primary-color);
    font-weight: 500;
}

.prompt {
    color: var(--text-primary);
}

.typed-cursor {
    color: var(--primary-color);
    font-weight: 300;
    animation: blink 1s infinite;
}

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

/* Terminal Data Sections */
.terminal-data {
    display: none;
    margin-top: 1rem;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* History */
.history {
    margin-bottom: 1rem;
}

.history .line {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Color coding for terminal */
.color-term {
    color: var(--success-color);
}

.red-text {
    color: var(--danger-color);
    font-weight: 500;
}

.green-text {
    color: var(--success-color);
    font-weight: 500;
}

/* Terminal window specific overrides */
.terminal-window .terminal {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.terminal-window .terminal::-webkit-scrollbar {
    width: 8px;
}

.terminal-window .terminal::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-window .terminal::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.terminal-window .terminal::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-muted);
}

/* Terminal typing effect */
.terminal .typing-effect {
    display: inline-block;
    border-right: 2px solid var(--primary-color);
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* Command output styling */
.command-output {
    margin-top: 0.5rem;
    padding-left: 1rem;
    color: var(--text-secondary);
    font-size: 0.813rem;
}

.command-output .success {
    color: var(--success-color);
}

.command-output .error {
    color: var(--danger-color);
}

.command-output .warning {
    color: var(--warning-color);
}

/* Code highlighting in terminal */
.terminal code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.813rem;
    color: var(--secondary-color);
}

/* Terminal links */
.terminal a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.terminal a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Loading animation */
.terminal-loading {
    display: inline-block;
    width: 80px;
    height: 10px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-left: 10px;
}

.terminal-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Terminal input styling */
.terminal-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: inherit;
    outline: none;
    width: calc(100% - 150px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .terminal {
        font-size: 0.75rem;
        padding: 1rem;
        min-height: 400px;
        max-height: 500px;
    }
    
    .terminal-window header {
        height: 35px;
    }
    
    .window-controls .button {
        width: 10px;
        height: 10px;
    }
    
    .window-title {
        font-size: 0.75rem;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .terminal {
        text-shadow: 0 0 2px rgba(0, 149, 255, 0.3);
    }
    
    .typed-cursor {
        box-shadow: 0 0 3px var(--primary-color);
    }
} 