/* Voyager Terminal Styles */
.portal-window {
    width: 90%;
    height: 85%;
    max-width: 1200px;
    background-color: #000 !important;
    border: 3px double var(--pale-blue) !important;
    display: flex;
    flex-direction: column;
    box-shadow: 15px 15px 0px rgba(0,0,0,0.3);
}

.portal-body {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
    background-color: #000;
}

.portal-sidebar {
    width: 220px;
    border-right: 2px solid #333;
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: linear-gradient(180deg, #050505 0%, #000 100%);
}

.sidebar-header {
    color: var(--pale-blue);
    font-family: var(--pixel-font-latin);
    font-size: 11px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    letter-spacing: 1px;
}

.port-list {
    flex-grow: 1;
    overflow-y: auto;
}

.port-item {
    padding: 12px 8px;
    color: #555;
    cursor: pointer;
    font-family: var(--pixel-font-latin);
    font-size: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    margin-bottom: 5px;
}

.port-item:hover {
    color: var(--pale-pink);
    background: rgba(255,255,255,0.03);
    border-left: 3px solid var(--pale-pink);
}

.port-item.active {
    color: var(--pale-blue);
    background: rgba(160, 231, 229, 0.08);
    border-left: 3px solid var(--pale-blue);
}

.port-status {
    margin-right: 10px;
    font-size: 8px;
}

.port-item.active .port-status {
    color: var(--pale-green);
    text-shadow: 0 0 8px var(--pale-green);
}

.portal-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
    position: relative;
}

.display-header {
    padding: 10px 20px;
    background: #111;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scanning-text {
    color: var(--pale-blue);
    font-family: var(--pixel-font-latin);
    font-size: 10px;
}

.display-scroll-area {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
}

.initial-state {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.terminal-monitor {
    max-width: 800px;
    margin: 0 auto;
}

.image-container {
    position: relative;
    border: 4px solid #222;
    margin-bottom: 25px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    background: #000;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9;
    filter: sepia(0.2) contrast(1.1);
}

.image-overlay-fx {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.info-block {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border: 1px solid #333;
}

.info-label {
    font-family: var(--pixel-font-latin);
    font-size: 8px;
    color: #666;
    margin-bottom: 8px;
    display: block;
}

.info-value {
    font-family: var(--pixel-font-cjk);
    font-size: 16px;
    color: #eee;
}

.experience-log {
    background: #050505;
    border: 1px solid #222;
    padding: 20px;
    font-family: 'Consolas', 'Monaco', monospace;
    color: #00ff41;
    line-height: 1.8;
    font-size: 14px;
    position: relative;
    min-height: 150px;
}

.experience-log::before {
    content: "LOG_CONTENT_START";
    position: absolute;
    top: -10px;
    left: 10px;
    background: #000;
    padding: 0 5px;
    color: #333;
    font-size: 9px;
    font-family: var(--pixel-font-latin);
}

/* Scrollbar */
.display-scroll-area::-webkit-scrollbar { width: 6px; }
.display-scroll-area::-webkit-scrollbar-track { background: #000; }
.display-scroll-area::-webkit-scrollbar-thumb { background: #333; }
.display-scroll-area::-webkit-scrollbar-thumb:hover { background: #444; }

@media (max-width: 900px) {
    .portal-body { flex-direction: column; }
    .portal-sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid #333; }
    .port-list { display: flex; flex-wrap: wrap; }
    .info-grid { grid-template-columns: 1fr; }
}
