/* --------------------------------------------------
   Projects terminal modal
-------------------------------------------------- */

.terminal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(2px);
}


/* Terminal window */

.terminal-window {
    width: 100%;
    max-width: 900px;
height: 65vh;
max-height: 65vh;

    background: #111;
    border: 1px solid #3a3a3a;
    border-radius: 4px;

    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);

    overflow: hidden;
}


/* Header */

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 16px;

    background: #181818;
    border-bottom: 1px solid #333;

    color: #888;

    font-family: monospace;
    font-size: 14px;
}


/* Close button */

.terminal-close {
    padding: 0;
    margin: 0;

    border: 0;
    background: transparent;

    color: #888;

    font-family: monospace;
    font-size: 22px;
    line-height: 1;

    cursor: pointer;

    transition: color 0.2s ease;
}

.terminal-close:hover {
    color: #fff;
}


/* Terminal content */

.terminal-body {
height: calc(65vh - 45px);
max-height: calc(65vh - 45px);
    min-height: 0;

    padding: 28px 30px;

    overflow-y: auto;

    background: #111;
    color: #e5e5e5;

    font-family: monospace;
    font-size: 15px;
    line-height: 1.7;

    text-align: left;
}


/* Command */

.terminal-command {
    color: #f2f2f2;
}


/* Links */

.terminal-link {
    color: #7fbf24;
    text-decoration: none;
}

.terminal-link:hover {
    text-decoration: underline;
}


/* Secondary / system text */

.terminal-muted {
    color: #777;
}


/* Blinking cursor */

.terminal-cursor {
    display: inline-block;

    width: 8px;
    height: 15px;

    margin-left: 3px;

    background: #d5d5d5;

    vertical-align: -2px;

    animation: terminal-blink 1s steps(1) infinite;
}

@keyframes terminal-blink {
    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}


/* Mobile */

@media (max-width: 700px) {

    .terminal-overlay {
        padding: 15px;
    }

    .terminal-window {
        max-height: 90vh;
    }

    .terminal-body {
        min-height: 350px;
        max-height: calc(90vh - 45px);

        padding: 20px;

        font-size: 13px;
    }
}

.terminal-project {
    margin-bottom: 24px;
}

.terminal-project-name {
    color: #f2f2f2;
    font-size: 18px;
}

.terminal-project-description {
    color: #b5b5b5;
}

.terminal-link {
    color: #7fbf24;
    text-decoration: none;
}

.terminal-link:hover {
    text-decoration: underline;
}

/* Projects modal - prompt reset */

#projectsTerminal {
    padding: 12px 30px 28px 30px;
    text-align: left;
}

#projectsTerminal .terminal-prompt {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;

    margin: 10px 0;
    padding: 0;

    text-align: left;
}

#projectsTerminal .terminal-final-prompt {
    margin-top: 4px;
}

#projectsTerminal {
    scrollbar-width: thin;
    scrollbar-color: #444 #111;
}

/* Chrome / Edge / Safari */
#projectsTerminal::-webkit-scrollbar {
    width: 8px;
}

#projectsTerminal::-webkit-scrollbar-track {
    background: #111;
}

#projectsTerminal::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

#projectsTerminal::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.projects-card {
    cursor: pointer;
}