/* 
   Hexward Terminal - Terminal UI Styles
   Author: Hexward Team
   Version: 1.0
*/

/* Terminal Container */
.terminal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 500px;
    margin: 2rem auto;
    background-color: rgba(18, 18, 18, 0.95);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Source Code Pro', monospace;
    border: 1px solid #333;
    transition: all 0.3s ease;
    z-index: 100;
}

/* Terminal Header */
.terminal-header {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
    cursor: move;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
    margin-right: 12px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.terminal-button.close {
    background-color: #ff5f56;
}

.terminal-button.minimize {
    background-color: #ffbd2e;
}

.terminal-button.maximize {
    background-color: #27c93f;
}

.terminal-title {
    flex-grow: 1;
    color: #ddd;
    font-size: 14px;
    user-select: none;
}

.terminal-actions {
    display: flex;
    gap: 8px;
}

.terminal-action-btn {
    background: none;
    border: none;
    color: #ddd;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.terminal-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Terminal Body */
.terminal-body {
    flex-grow: 1;
    padding: 12px;
    overflow-y: auto;
    color: #ddd;
    font-size: 14px;
    line-height: 1.5;
}

/* Terminal Output */
.terminal-output {
    margin-bottom: 12px;
}

.terminal-line {
    margin-bottom: 6px;
    word-wrap: break-word;
}

.terminal-welcome {
    color: #00ff9d;
    font-weight: bold;
    margin-bottom: 4px;
}

.terminal-cmd {
    color: #00ff9d;
    font-weight: bold;
}

/* Terminal Input Line */
.terminal-input-line {
    display: flex;
    align-items: center;
}

.terminal-prompt {
    color: #00ff9d;
    margin-right: 8px;
    white-space: nowrap;
}

.terminal-input {
    flex-grow: 1;
    background: none;
    border: none;
    color: #ddd;
    font-family: 'Source Code Pro', monospace;
    font-size: 14px;
    outline: none;
    caret-color: #00ff9d;
}

/* Terminal States */
.terminal-container.hidden {
    display: none;
}

.terminal-container.minimized {
    height: 40px;
    overflow: hidden;
}

.terminal-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    z-index: 9999;
}

/* Terminal Toggle Button */
.terminal-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1a1a1a;
    color: #00ff9d;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.terminal-toggle:hover {
    transform: scale(1.1);
    background-color: #222;
}

/* Command Specific Styles */
.terminal-help {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #00ff9d;
}

.terminal-help-title {
    color: #00ff9d;
    font-weight: bold;
    margin-bottom: 10px;
}

.terminal-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.terminal-help-category-title {
    color: #ffbd2e;
    font-weight: bold;
    margin-bottom: 5px;
    border-bottom: 1px solid #333;
    padding-bottom: 3px;
}

.terminal-help-tip {
    color: #888;
    font-style: italic;
    margin-top: 5px;
}

.terminal-ls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.terminal-directory {
    color: #00ff9d;
    font-weight: bold;
}

.terminal-file {
    color: #ddd;
}

.terminal-file-content {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 4px;
    margin-top: 5px;
}

.terminal-file-content h3 {
    color: #00ff9d;
    margin-bottom: 10px;
}

.terminal-code {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    color: #ddd;
}

.terminal-code.json {
    color: #ffbd2e;
}

.terminal-markdown h1 {
    color: #00ff9d;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.terminal-markdown hr {
    border: none;
    border-top: 1px solid #333;
    margin: 10px 0;
}

.terminal-markdown a {
    color: #00aeff;
    text-decoration: none;
}

.terminal-markdown a:hover {
    text-decoration: underline;
}

.terminal-easter-egg {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #ff5f56;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(255, 95, 86, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(255, 95, 86, 0.8);
    }
}

.terminal-ascii-art {
    color: #00ff9d;
    font-family: monospace;
    line-height: 1.2;
    margin: 10px 0;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 4px;
}

.terminal-cowsay {
    color: #ddd;
    font-family: monospace;
    line-height: 1.2;
    margin: 10px 0;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 4px;
}

.terminal-fortune, .terminal-joke {
    font-style: italic;
    color: #ffbd2e;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border-left: 3px solid #ffbd2e;
}

.terminal-contact, .terminal-about, .terminal-services {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #00aeff;
}

.terminal-contact h3, .terminal-about h3, .terminal-services h3 {
    color: #00aeff;
    margin-bottom: 10px;
}

.terminal-contact a, .terminal-about a, .terminal-services a {
    color: #00ff9d;
    text-decoration: none;
}

.terminal-contact a:hover, .terminal-about a:hover, .terminal-services a:hover {
    text-decoration: underline;
}

.terminal-services ul {
    list-style-type: none;
    padding-left: 10px;
    margin-bottom: 10px;
}

.terminal-services ul li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.terminal-services ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #00ff9d;
}

.terminal-skills {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #27c93f;
}

.terminal-skills h3 {
    color: #27c93f;
    margin-bottom: 10px;
}

.terminal-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.terminal-skills-category h4 {
    color: #ffbd2e;
    margin-bottom: 5px;
    border-bottom: 1px solid #333;
    padding-bottom: 3px;
}

.terminal-skills-category ul {
    list-style-type: none;
    padding-left: 0;
}

.terminal-skills-category ul li {
    margin-bottom: 3px;
    position: relative;
    padding-left: 15px;
}

.terminal-skills-category ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00ff9d;
}

.terminal-banner {
    color: #00ff9d;
    font-family: monospace;
    line-height: 1.2;
    margin: 10px 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 4px;
}

.terminal-autocomplete {
    color: #888;
    margin-bottom: 10px;
}

/* Matrix Overlay */
.matrix-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.matrix-exit-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #00ff9d;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Source Code Pro', monospace;
    font-weight: bold;
    z-index: 10000;
}

.matrix-exit-btn:hover {
    background-color: #00cc7e;
}

/* Konami Code Overlay */
.konami-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.konami-content {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
    border: 2px solid #00ff9d;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
}

.konami-content h2 {
    color: #00ff9d;
    margin-bottom: 10px;
}

.konami-animation {
    height: 200px;
    margin: 20px 0;
    background-image: url('https://media.giphy.com/media/3o7bu0ZQQp2QQQQQQQ/giphy.gif');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.konami-close {
    padding: 8px 16px;
    background-color: #00ff9d;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Source Code Pro', monospace;
    font-weight: bold;
}

.konami-close:hover {
    background-color: #00cc7e;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .terminal-container {
        width: 95%;
        height: 400px;
    }

    .terminal-help-grid {
        grid-template-columns: 1fr;
    }

    .terminal-skills-grid {
        grid-template-columns: 1fr;
    }
}
