/* Main Styles - PROJECT PANOPTICON */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'VT323', 'Share Tech Mono', 'Courier New', monospace;
    background: #000;
    color: #ffb000;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* OS Interface */
.os-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid #ffb000;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 12px;
}

.os-title {
    color: #ffb000;
    font-weight: bold;
}

.os-status {
    color: #00ff00;
}

/* Code Stream (Top Left) */
.code-stream {
    position: fixed;
    top: 35px;
    left: 10px;
    width: 300px;
    height: 150px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #ffb000;
    z-index: 1500;
    overflow: hidden;
    font-size: 10px;
    color: #00ff00;
    padding: 5px;
    font-family: 'Courier New', monospace;
}

.code-line {
    animation: code-scroll 20s linear infinite;
    white-space: nowrap;
    margin: 2px 0;
}

@keyframes code-scroll {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px); opacity: 0; }
}

/* News Ticker (Bottom) */
.news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid #ff0000;
    z-index: 2000;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-label {
    background: #ff0000;
    color: #000;
    padding: 0 15px;
    font-weight: bold;
    white-space: nowrap;
}

.ticker-content {
    flex: 1;
    color: #ffb000;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Citizen Counter (Bottom Right) */
.citizen-counter {
    position: fixed;
    bottom: 35px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #ffb000;
    padding: 10px;
    z-index: 1500;
    font-size: 12px;
    color: #ffb000;
}

/* Login Screen */
.login-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-input {
    background: transparent;
    border: 2px solid #ffb000;
    color: #ffb000;
    padding: 10px;
    font-family: 'VT323', monospace;
    font-size: 24px;
    outline: none;
}

.login-input:focus {
    box-shadow: 0 0 20px rgba(255, 176, 0, 0.5);
}

/* Game Over Screen */
.game-over {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Profile Image */
.profile-img {
    width: 150px;
    height: 150px;
    border: 3px solid #ffb000;
    filter: sepia(100%) saturate(200%) hue-rotate(10deg);
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    position: relative;
    overflow: hidden;
}

.profile-img::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 176, 0, 0.1) 10px,
        rgba(255, 176, 0, 0.1) 20px
    );
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* Data Entry */
.data-entry {
    border-left: 3px solid #ffb000;
    padding-left: 10px;
    margin: 10px 0;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.warning {
    color: #ffb000;
    text-shadow: 0 0 5px rgba(255, 176, 0, 0.5);
}

.safe {
    color: #ffb000;
    text-shadow: 0 0 5px rgba(255, 176, 0, 0.5);
}

.violation-warning {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Button Styles */
.threat-btn {
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.threat-btn:hover {
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.8);
    transform: scale(1.05);
}

.safe-btn {
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.safe-btn:hover {
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.8);
    transform: scale(1.05);
}

/* Background Radar */
.radar-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 0, 0.1) 0%, transparent 50%);
    animation: radar-sweep 10s linear infinite;
}

@keyframes radar-sweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Resistance Glitch Overlay */
.resistance-glitch {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    animation: glitch-screen 0.5s;
}

.resistance-message {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ff00;
    padding: 30px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.resistance-message h2 {
    color: #00ff00;
    font-size: 2rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.resistance-message p {
    color: #00ff00;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Social Pressure Overlay */
.social-pressure {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
}

.pressure-box {
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid #ffb000;
    padding: 40px;
    max-width: 700px;
    text-align: center;
}

.pressure-box h2 {
    color: #ff0000;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.pressure-box .stat {
    color: #ffb000;
    font-size: 1.5rem;
    margin: 15px 0;
}

/* Karma Message */
.karma-message {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
}

.karma-box {
    background: rgba(0, 0, 0, 0.9);
    border: 4px solid #ff0000;
    padding: 50px;
    max-width: 800px;
    text-align: center;
}

.karma-box h1 {
    color: #ff0000;
    font-size: 4rem;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    animation: pulse 1s infinite;
}

/* Heartbeat Indicator */
.heartbeat-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.3);
    border: 2px solid #ff0000;
    z-index: 100;
    display: none;
}

.heartbeat-indicator.active {
    animation: heartbeat 1s infinite;
}

/* Edit Mode Warning */
.edit-mode-warning {
    position: fixed;
    inset: 0;
    border: 5px solid #ff0000;
    pointer-events: none;
    z-index: 2500;
    animation: editWarning 1s infinite;
    display: none;
}

@keyframes editWarning {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.edit-mode-active .edit-mode-warning {
    display: block;
}

/* Chat System */
.chat-window {
    position: fixed;
    bottom: 35px;
    right: 10px;
    width: 400px;
    height: 300px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #00ff00;
    z-index: 2000;
    display: none;
    flex-direction: column;
}

.chat-header {
    background: #00ff00;
    color: #000;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close {
    background: #ff0000;
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-weight: bold;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    color: #00ff00;
    font-size: 12px;
}

.chat-message {
    margin: 10px 0;
    padding: 8px;
    border-left: 2px solid #00ff00;
    padding-left: 10px;
}

.chat-input-area {
    border-top: 1px solid #00ff00;
    padding: 10px;
    display: flex;
    gap: 5px;
}

.chat-input {
    flex: 1;
    background: transparent;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 5px;
    font-family: 'Courier New', monospace;
}

.chat-send-btn {
    background: #00ff00;
    color: #000;
    border: none;
    padding: 5px 15px;
    cursor: pointer;
    font-weight: bold;
}

/* Dashboard Screen */
.dashboard-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 3000;
    display: none;
    overflow-y: auto;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #ffb000;
    padding-bottom: 20px;
}

.credits-display {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffb000;
    padding: 15px;
    text-align: center;
    margin-bottom: 30px;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.market-item {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffb000;
    padding: 20px;
}

.market-item.owned {
    border-color: #00ff00;
}

.market-item h3 {
    color: #ffb000;
    margin-bottom: 10px;
}

.market-item p {
    color: #ffb000;
    font-size: 14px;
    margin: 10px 0;
}

.market-item .price {
    color: #00ff00;
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0;
}

.market-btn {
    background: #ffb000;
    color: #000;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
}

.market-btn:hover {
    background: #ffc020;
}

.market-btn:disabled {
    background: #666;
    cursor: not-allowed;
}

/* Edit Mode UI */
.editable-field {
    background: rgba(255, 176, 0, 0.1);
    border: 1px dashed #ffb000;
    padding: 5px;
    cursor: text;
    min-height: 20px;
}

.editable-field:focus {
    outline: 2px solid #ffb000;
    background: rgba(255, 176, 0, 0.2);
}

.edit-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.edit-btn {
    background: #ffb000;
    color: #000;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
}

.edit-btn:hover {
    background: #ffc020;
}

.edit-btn.danger {
    background: #ff0000;
    color: white;
}

.edit-btn.danger:hover {
    background: #cc0000;
}

/* Thermal System */
.thermal-bar-container {
    position: fixed;
    bottom: 35px;
    left: 10px;
    width: 30px;
    height: 200px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffb000;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    padding: 5px;
}

.thermal-bar-label {
    color: #ffb000;
    font-size: 10px;
    text-align: center;
    margin-bottom: 5px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.thermal-bar {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    position: relative;
    display: flex;
    flex-direction: column-reverse;
}

.thermal-fill {
    width: 100%;
    background: linear-gradient(to top, #00ff00 0%, #ffff00 50%, #ff0000 100%);
    transition: height 0.3s ease;
    min-height: 0;
}

.thermal-cool-btn {
    margin-top: 5px;
    padding: 5px;
    background: #0066ff;
    border: 1px solid #00aaff;
    color: white;
    font-size: 10px;
    cursor: pointer;
    text-align: center;
}

.thermal-cool-btn:active {
    background: #0044cc;
}

/* Pop-up Windows */
.popup-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #ffb000;
    padding: 20px;
    z-index: 3000;
    min-width: 400px;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(255, 176, 0, 0.5);
    animation: popupAppear 0.3s;
}

@keyframes popupAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #ffb000;
    padding-bottom: 10px;
}

.popup-title {
    color: #ffb000;
    font-size: 18px;
    font-weight: bold;
}

.popup-close {
    background: #ff0000;
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.popup-close:hover {
    background: #cc0000;
}

.popup-content {
    color: #ffb000;
    font-size: 14px;
    line-height: 1.6;
}

/* Decryption Mini-Game */
.decryption-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
}

.decryption-box {
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid #00ff00;
    padding: 40px;
    text-align: center;
    min-width: 400px;
}

.decryption-code {
    font-size: 4rem;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    letter-spacing: 20px;
    margin: 30px 0;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
}

.decryption-input {
    background: transparent;
    border: 2px solid #00ff00;
    color: #00ff00;
    font-size: 2rem;
    font-family: 'Courier New', monospace;
    padding: 10px;
    text-align: center;
    letter-spacing: 10px;
    width: 300px;
    outline: none;
}

.decryption-timer {
    color: #ffb000;
    font-size: 1.5rem;
    margin-top: 20px;
}

/* BSOD Screen */
.bsod-screen {
    position: fixed;
    inset: 0;
    background: #0000aa;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
}

.bsod-content {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    max-width: 600px;
    padding: 20px;
}

.bsod-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

