/**
 * Terminal styles
 */

/* Terminal Container */
.terminal-container {
    max-width: 800px;
    margin: 0 auto;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.terminal-prompt {
    color: var(--matrix-green);
    font-weight: bold;
}

.terminal-command {
    color: var(--text-light);
}

.terminal-cursor {
    color: var(--matrix-green);
    animation: blink 1s infinite;
    font-weight: bold;
}

.terminal-output {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
    margin-top: 1.5rem;
    min-height: 200px;
    transition: opacity 0.3s ease;
}

.terminal-output-line {
    margin-bottom: 0.25rem;
    opacity: 0;
    animation: fadeInLine 0.3s ease forwards;
}

.terminal-output-line.terminal-name-line {
    margin-bottom: 0.75rem;
}

.terminal-output-line.terminal-subtitle-line {
    margin-bottom: 1rem;
    margin-top: 0;
}

.terminal-output-line.terminal-location-line {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.terminal-name-line,
.terminal-subtitle-line,
.terminal-location-line {
    opacity: 1;
}

/* Terminal Header */
.terminal-header {
    font-family: "Courier New", "Monaco", monospace;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    color: var(--text-grey);
    font-size: 0.9rem;
}

.terminal-command-static {
    color: var(--text-light);
    margin-left: 0.5rem;
}

/* Terminal Name Styling */
.terminal-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--matrix-green);
    text-shadow: 0 0 20px var(--glow-color);
    letter-spacing: -0.02em;
    display: inline-block;
}

.terminal-subtitle {
    font-size: 1.15rem;
    color: var(--text-grey);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Home Category Badges */
.home-category-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border: 1px solid;
    border-radius: 4px;
    font-family: "Courier New", "Monaco", monospace;
    font-size: 0.85rem;
    font-weight: 500;
}

.home-category-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--category-color, var(--glow-color));
}

.terminal-location {
    font-size: 0.95rem;
    color: var(--text-grey);
    font-family: "Courier New", "Monaco", monospace;
}

/* Terminal Status */
.terminal-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Courier New", "Monaco", monospace;
    color: var(--text-grey);
}

.terminal-status-line {
    margin-top: 0.5rem;
}

.status-prefix {
    color: var(--matrix-green);
    font-weight: bold;
}

.status-text {
    color: var(--text-grey);
}

.status-ready {
    color: var(--matrix-green);
    text-shadow: 0 0 8px var(--glow-color);
}

/* About Terminal Style */
.about-terminal {
    margin-top: 0;
    font-family: "Courier New", "Monaco", monospace;
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
    min-height: auto;
}

.about-terminal .terminal-output {
    min-height: auto;
}

.terminal-separator {
    font-family: "Courier New", "Monaco", monospace;
    letter-spacing: 2px;
    text-align: center;
}

/* Contributions Output - TypeScript Interface */
#contributions-output {
    min-height: auto;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    font-family: "Courier New", "Monaco", "Consolas", monospace;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.85rem;
    line-height: 1.6;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 136, 0.3) transparent;
}

#contributions-output::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

#contributions-output::-webkit-scrollbar-track {
    background: transparent;
}

#contributions-output::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 3px;
}

#contributions-output::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

/* TypeScript Syntax Highlighting */
.ts-interface {
    color: var(--text-light);
}

.ts-keyword {
    color: #ff6b9d;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(255, 107, 157, 0.5);
}

.ts-interface-name {
    color: var(--matrix-green);
    font-weight: 600;
    text-shadow: 0 0 10px var(--glow-color);
}

.ts-brace {
    color: #00d9ff;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.6);
}

.ts-property {
    color: #ffd700;
    font-weight: 500;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
}

.ts-key {
    color: #4ec9b0;
    font-weight: 500;
    text-shadow: 0 0 4px rgba(78, 201, 176, 0.5);
}

.ts-string {
    color: #ce9178;
    font-style: italic;
    text-shadow: 0 0 3px rgba(206, 145, 120, 0.3);
}

.ts-number {
    color: #b5cea8;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(181, 206, 168, 0.5);
}

.ts-operator {
    color: var(--matrix-green);
    font-weight: 500;
    text-shadow: 0 0 4px var(--glow-color);
}

.ts-category-personal {
    color: #ff6b9d;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 107, 157, 0.6);
}

.ts-category-open-source {
    color: #00d9ff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.6);
}

.ts-link {
    color: #ffd700;
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.2s ease;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.4);
}

.ts-link:hover {
    color: var(--matrix-green);
    text-shadow: 0 0 10px var(--glow-color);
}
