/* General Styles */
:root {
    --background-color: #0a0a0a;
    --terminal-bg: #0f0f0f;
    --terminal-border: #2a2a2a;
    --text-color: #33ff33;
    --text-color-dim: #1a9e1a;
    --panel-bg: #141414;
    --neon-glow: 0 0 5px #33ff33, 0 0 10px #33ff33;
    --header-bg: #1a1a1a;
    --input-bg: #0a0a0a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(51, 255, 51, 0.03) 0%, transparent 50%),
        linear-gradient(to bottom, rgba(51, 255, 51, 0.02) 0%, transparent 100%);
}

/* Game Container */
#game-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Terminal Window */
#terminal {
    flex: 1;
    background-color: var(--terminal-bg);
    border: 1px solid var(--terminal-border);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

#terminal-header {
    height: 30px;
    background-color: var(--header-bg);
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid var(--terminal-border);
}

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

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background-color: #ff5f56;
}

.yellow {
    background-color: #ffbd2e;
}

.green {
    background-color: #27c93f;
}

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: var(--text-color-dim);
}

#terminal-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--text-color-dim) var(--terminal-bg);
}

#terminal-content::-webkit-scrollbar {
    width: 6px;
}

#terminal-content::-webkit-scrollbar-track {
    background: var(--terminal-bg);
}

#terminal-content::-webkit-scrollbar-thumb {
    background-color: var(--text-color-dim);
    border-radius: 3px;
}

#input-line {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--terminal-border);
    background-color: var(--input-bg);
}

.prompt {
    color: var(--text-color);
    margin-right: 8px;
    font-weight: bold;
}

#user-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-size: 16px;
}

/* Side Panel */
#side-panel {
    width: 300px;
    background-color: var(--panel-bg);
    border-left: 1px solid var(--terminal-border);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.panel-section {
    border: 1px solid var(--terminal-border);
    border-radius: 5px;
    padding: 10px;
    background-color: rgba(20, 20, 20, 0.7);
}

.panel-section h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    text-shadow: var(--neon-glow);
    font-size: 18px;
    text-align: center;
}

/* Stats Display */
.stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
}

.stat-name {
    color: var(--text-color-dim);
}

.stat-value {
    color: var(--text-color);
    font-weight: bold;
}

/* Inventory Display */
.inventory-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.inventory-item {
    padding: 5px;
    border: 1px solid var(--terminal-border);
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
}

.inventory-item:hover {
    background-color: rgba(51, 255, 51, 0.1);
    border-color: var(--text-color-dim);
}

/* Players List */
.players-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.player-item {
    padding: 5px;
    border-bottom: 1px solid var(--terminal-border);
    display: flex;
    justify-content: space-between;
}

.player-name {
    color: var(--text-color);
}

.player-info {
    color: var(--text-color-dim);
    font-size: 12px;
}

/* Messages */
.message {
    margin-bottom: 12px;
    line-height: 1.5;
    position: relative;
    padding-left: 10px;
    border-left: 3px solid transparent;
}

.message.system {
    color: #ffbd2e;
    border-left-color: #ffbd2e;
}

.message.player {
    color: #33ff33;
    border-left-color: #33ff33;
}

.message.npc {
    color: #ff5f56;
    border-left-color: #ff5f56;
}

.message.other-player {
    color: #56a0ff;
    border-left-color: #56a0ff;
}

.message.description {
    color: #d3d3d3;
    font-style: italic;
}

.message.error {
    color: #ff5f56;
}

/* Character Creation & Login Forms */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: var(--text-color-dim);
}

.form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--terminal-border);
    padding: 8px 12px;
    border-radius: 3px;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
}

.btn {
    background-color: var(--terminal-bg);
    color: var(--text-color);
    border: 1px solid var(--text-color-dim);
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Courier New', monospace;
}

.btn:hover {
    background-color: var(--text-color-dim);
    color: var(--terminal-bg);
    text-shadow: none;
}

/* Typing Animation */
.typing {
    border-right: 2px solid var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--text-color) }
}

/* Glitch Animation */
.glitch {
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    #game-container {
        flex-direction: column;
        height: auto;
    }
    
    #terminal {
        height: 60vh;
    }
    
    #side-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--terminal-border);
    }
} 