/* CLI Terminal Theme - Pure Black & White */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: #000000;
    color: #ffffff;
    line-height: 1.4;
    overflow-x: hidden;
    font-size: 14px;
}

/* Terminal Container */
.terminal {
    min-height: 100vh;
    background: #000000;
    border: 2px solid #ffffff;
    margin: 10px;
    display: flex;
    flex-direction: column;
}

/* Terminal Header */
.terminal-header {
    background: #ffffff;
    color: #000000;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #ffffff;
    font-weight: 600;
}

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

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #000000;
    cursor: pointer;
}

.control-btn.close {
    background: #000000;
}

.control-btn.minimize {
    background: #666666;
}

.control-btn.maximize {
    background: #cccccc;
}

.terminal-title {
    font-size: 12px;
    font-weight: 500;
}

/* Terminal Content */
.terminal-content {
    flex: 1;
    padding: 20px;
    background: #000000;
}

/* Boot Sequence */
.boot-sequence {
    margin-bottom: 30px;
    animation: bootSequence 2s ease-in-out;
}

@keyframes bootSequence {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.boot-line {
    color: #ffffff;
    margin-bottom: 5px;
    font-size: 12px;
}

.boot-line:before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ffffff;
    margin-right: 8px;
    animation: blink 1s infinite;
}

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

/* CLI Interface */
.cli-interface {
    font-size: 14px;
}

.cli-section {
    margin-bottom: 30px;
}

/* Prompt Lines */
.prompt-line {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.prompt {
    color: #ffffff;
    font-weight: 600;
    margin-right: 8px;
    white-space: nowrap;
}

.command {
    color: #cccccc;
    font-weight: 400;
}

.command-input {
    flex: 1;
}

/* ASCII Art */
.ascii-art {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    line-height: 1;
    color: #ffffff;
    margin-bottom: 20px;
    white-space: pre;
    overflow-x: auto;
}

/* System Info */
.system-info {
    margin-bottom: 10px;
}

.system-info div {
    margin-bottom: 5px;
    color: #ffffff;
}

/* Output Sections */
.output {
    margin-left: 20px;
    margin-bottom: 10px;
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.status-label {
    color: #ffffff;
    font-weight: 500;
}

.status-value {
    color: #ffffff;
    font-weight: 600;
}

/* CLI Button */
.cli-button {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 8px 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.cli-button:hover {
    background: #ffffff;
    color: #000000;
}

.cli-button:active {
    transform: translateY(1px);
}

.cli-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Command Output */
.command-output {
    margin-left: 20px;
    margin-top: 10px;
    color: #cccccc;
}

/* Gallery */
.gallery-header {
    margin-bottom: 15px;
    font-size: 12px;
    color: #cccccc;
}

.gallery-header div {
    margin-bottom: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.artwork-file {
    border: 1px solid #ffffff;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    overflow: hidden;
}

.artwork-file:hover {
    background: #ffffff;
    color: #000000;
}

.artwork-file:hover .file-info {
    background: #ffffff;
    color: #000000;
}

.artwork-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.file-info {
    padding: 10px;
    background: #000000;
    color: #ffffff;
    border-top: 1px solid #ffffff;
    font-size: 12px;
}

.file-name {
    font-weight: 600;
    margin-bottom: 5px;
    word-break: break-all;
}

.file-details {
    color: #cccccc;
    font-size: 11px;
}

.file-details div {
    margin-bottom: 2px;
}

/* Loading and Empty States */
.loading-state, .empty-state {
    margin-left: 20px;
    color: #cccccc;
}

.loading-text, .empty-text {
    font-size: 12px;
}

.empty-text div {
    margin-bottom: 5px;
}

/* Active Prompt with Cursor */
.active-prompt {
    animation: none;
}

.cursor {
    color: #ffffff;
    animation: cursorBlink 1s infinite;
    font-weight: 600;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background: #000000;
    border: 2px solid #ffffff;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: #ffffff;
    color: #000000;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #ffffff;
    font-weight: 600;
    font-size: 12px;
}

.modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.modal-terminal {
    font-family: 'JetBrains Mono', monospace;
}

.artwork-display {
    margin-left: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border: 1px solid #ffffff;
}

.artwork-metadata {
    font-size: 12px;
}

.metadata-line {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.metadata-key {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 2px;
}

.metadata-value {
    color: #cccccc;
    word-break: break-word;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminal {
        margin: 5px;
    }
    
    .terminal-content {
        padding: 15px;
    }
    
    .ascii-art {
        font-size: 8px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .artwork-display {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-content {
        margin: 10px;
    }
    
    .prompt-line {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .command-input {
        margin-top: 5px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }
    
    .ascii-art {
        font-size: 6px;
    }
    
    .cli-button {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #ffffff;
    border: 1px solid #000000;
}

::-webkit-scrollbar-thumb:hover {
    background: #cccccc;
}

