/* ===== BASE & RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Courier New", monospace;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    color: #fff;
}

/* ===== VARIABLES ===== */
:root {
    --primary-color: #00ff00;
    --secondary-color: #ff0000;
    --bg-dark: #0a0a0a;
    --bg-darker: #080808;
    --border-color: #333;
    --text-dim: #a0a0a0;
    --text-bright: #ffffff;
    --glow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* ===== BACKGROUND ELEMENTS ===== */
.void-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.glow-text {
    position: absolute;
    color: rgb(255, 255, 255);
    text-shadow: var(--glow);
    font-size: 1.2rem;
    opacity: 0.6;
    pointer-events: none;
}

.orbit-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.orbit-item {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: var(--bg-dark);
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 5;
    background-size: cover;
}

.orbit-item:hover {
    transform: scale(1.1);
    border-color: var(--text-bright);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ===== WINDOW STYLES ===== */
.window-base {
    background-color: var(--bg-dark);
    border: 1px solid var(--text-bright);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    cursor: default;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.window-header {
    padding: 5px;
    background-color: #111;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--text-bright);
    cursor: move;
}

.title-bar {
    color: var(--text-bright);
    font-size: 12px;
    letter-spacing: 1px;
}

.window-controls {
    display: flex;
}

.control-button {
    width: 12px;
    height: 12px;
    border: 1px solid var(--text-bright);
    margin-left: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 8px;
    line-height: 1;
}

/* Central Window */
.central-window {
    position: absolute;
    width: 650px;
    height: 450px;
    z-index: 10;
    left: calc(50% - 225px);
    top: calc(50% - 320px);
}

/* Companion Window */
.companion-window {
    position: absolute;
    width: 150px;
    height: 180px;
    z-index: 11;
    right: calc(110% - 380px);
    top: calc(50% - 240px);
}

.profile-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.profile-image {
    width: 80px;
    height: 80px;
    background-color: #1a1a1a;
    border: 1px solid var(--text-bright);
    margin-top: 10px;
    overflow: hidden;
    background-size: cover;
}

.profile-name {
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-bright);
    text-align: center;
}

.profile-status {
    margin-top: 5px;
    font-size: 9px;
    color: var(--text-dim);
    text-align: center;
}

/* ===== TAB SYSTEM ===== */
.tab-container {
    display: flex;
    border-bottom: 1px solid var(--text-bright);
    background-color: var(--bg-darker);
}

.tab {
    padding: 5px 15px;
    font-size: 10px;
    color: var(--text-dim);
    cursor: pointer;
    border-right: 1px solid var(--border-color);
    letter-spacing: 1px;
}

.tab.active {
    color: var(--text-bright);
    background-color: #111;
    border-bottom: 1px solid var(--text-bright);
    margin-bottom: -1px;
}

/* ===== CONTENT AREAS ===== */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    color: #e0e0e0;
    line-height: 1.5;
    font-size: 12px;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
    display: none;
}

.content-area.active {
    display: block;
}

.section-title {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    color: var(--text-bright);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

/* ===== PROJECT POPUP ===== */
.project-popup {
    position: absolute;
    width: 600px;
    height: 500px;
    z-index: 20;
    display: none;
    left: calc(50% - 300px);
    top: calc(50% - 250px);
}

.project-popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.project-popup-image {
    width: 100%;
    height: 200px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    background-size: cover;
    background-position: center;
}

.project-popup-code {
    background-color: #111;
    border: 1px solid var(--border-color);
    padding: 10px;
    font-family: monospace;
    white-space: pre;
    overflow-x: auto;
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-popup-close {
    align-self: flex-end;
    padding: 5px 10px;
    background-color: #111;
    border: 1px solid var(--text-bright);
    color: var(--text-bright);
    cursor: pointer;
    font-size: 10px;
    transition: all 0.2s ease;
}

.project-popup-close:hover {
    background-color: #222;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* ===== GALLERY STYLES ===== */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}

.gallery-item {
    width: calc(50% - 10px);
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-frame {
    width: 120px;
    height: 120px;
    border: 1px solid var(--border-color);
    margin-bottom: 5px;
    background-size: cover;
    background-position: center;
    transition: all 0.2s ease;
}

.image-frame:hover {
    border-color: var(--text-bright);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.image-caption {
    font-size: 9px;
    color: var(--text-dim);
    text-align: center;
}

/* ===== JOURNAL STYLES ===== */
.journal-container {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.journal-entry {
    border: 1px solid var(--border-color);
    padding: 10px;
    background-color: #0c0c0c;
    transition: all 0.2s ease;
}

.journal-entry:hover {
    border-color: var(--text-bright);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.journal-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    border-bottom: 1px dotted var(--border-color);
    padding-bottom: 3px;
}

.journal-date {
    font-size: 10px;
    color: var(--text-dim);
}

.journal-title {
    font-size: 11px;
    color: var(--text-bright);
}

.journal-content {
    font-size: 11px;
    color: #ccc;
    line-height: 1.4;
}

.journal-form-container {
    margin-top: 20px;
    border: 1px solid var(--border-color);
    padding: 10px;
    background-color: #0c0c0c;
}

.journal-form-title {
    font-size: 11px;
    color: var(--text-bright);
    margin-bottom: 10px;
    border-bottom: 1px dotted var(--border-color);
    padding-bottom: 3px;
}

/* ===== FORM STYLES ===== */
.journal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.form-label {
    font-size: 10px;
    color: var(--text-dim);
}

.form-input, .form-textarea {
    background-color: #111;
    border: 1px solid var(--border-color);
    padding: 5px;
    color: var(--text-bright);
    font-size: 10px;
}

.form-textarea {
    height: 60px;
    resize: vertical;
}

.form-submit {
    align-self: flex-start;
    background-color: #000;
    border: 1px solid var(--text-bright);
    color: var(--text-bright);
    padding: 5px 10px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-submit:hover {
    background-color: #111;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* ===== LIVE STREAM COMPONENTS ===== */
.live-stream-window {
    position: absolute;
    width: 320px;
    height: 240px;
    z-index: 15;
    right: 50px;
    bottom: 50px;
    display: none;
    border-color: var(--secondary-color);
}

.stream-content {
    flex: 1;
    padding: 5px;
}

.stream-frame {
    width: 100%;
    height: 100%;
    border: 1px solid var(--border-color);
    background-color: #000;
}

.live-button {
    position: fixed;
    right: 20px;
    bottom: 30px;
    z-index: 12;
    padding: 5px 10px;
    background-color: var(--bg-dark);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    font-size: 12px;
    cursor: pointer;
    animation: pulse 2s infinite, float 5s infinite;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

/* ===== STATUS BAR ===== */
.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #111;
    padding: 3px 10px;
    font-size: 10px;
    color: var(--text-dim);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    z-index: 100;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
    .central-window {
        width: 90%;
        height: 80%;
        left: 5%;
        top: 10%;
    }
    
    .companion-window {
        width: 130px;
        height: 160px;
        right: 5%;
        top: 5%;
    }
    
    .profile-image {
        width: 60px;
        height: 60px;
    }
    
    .gallery-item {
        width: 100%;
    }

    .live-stream-window {
        width: 90%;
        right: 5%;
        bottom: 80px;
    }
    
    .orbit-item {
        width: 60px;
        height: 60px;
    }
}