/* Game-specific styles */

/* Stat display */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.stat-label {
    color: #000;
}

.stat-value {
    font-weight: bold;
    color: #000080;
}

/* Request Window Styles */
.request-window {
    width: 320px;
}

.request-info {
    margin-bottom: 8px;
}

.request-field {
    display: flex;
    margin-bottom: 4px;
}

.request-field-label {
    width: 80px;
    color: #808080;
}

.request-field-value {
    flex-grow: 1;
    color: #000;
}

.request-type {
    font-size: 12px;
    font-weight: bold;
    color: #000080;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #808080;
}

.request-progress {
    margin: 12px 0;
}

.request-progress-label {
    margin-bottom: 4px;
    font-size: 10px;
    color: #808080;
}

.request-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

/* Upgrades list - scrollable */
#upgrades-list {
    max-height: 600px;
    overflow-y: auto;
}

/* Upgrade item */
.upgrade-item {
    padding: 6px;
    margin-bottom: 6px;
    border: 1px solid;
    border-color: #808080 #fff #fff #808080;
    background-color: #d4d4d4;
}

.upgrade-item:last-child {
    margin-bottom: 0;
}

.upgrade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.upgrade-name {
    font-weight: bold;
    color: #000080;
}

.upgrade-cost {
    color: #808000;
    font-size: 10px;
}

.upgrade-cost::before {
    content: 'Cost: ';
}

.upgrade-desc {
    font-size: 10px;
    color: #404040;
    margin-bottom: 6px;
}

.upgrade-btn {
    width: 100%;
}

.upgrade-item.purchased {
    opacity: 0.6;
}

.upgrade-item.purchased .upgrade-btn {
    display: none;
}

.upgrade-item.purchased::after {
    content: '[PURCHASED]';
    display: block;
    text-align: center;
    color: #008000;
    font-weight: bold;
    margin-top: 4px;
}

.upgrade-item.locked {
    opacity: 0.5;
}

.upgrade-item.locked .upgrade-name::after {
    content: ' [LOCKED]';
    color: #808080;
    font-weight: normal;
}

/* Notification popup */
.notification {
    position: fixed;
    right: 10px;
    background-color: #ffffcc;
    border: 2px solid;
    border-color: #dfdfdf #000 #000 #dfdfdf;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
    padding: 8px 12px;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    max-width: 250px;
}

.notification-title {
    font-weight: bold;
    color: #000080;
    margin-bottom: 4px;
}

.notification-body {
    font-size: 11px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification.hiding {
    animation: slideOut 0.3s ease-in forwards;
}

/* Points popup animation */
.points-popup {
    position: absolute;
    color: #008000;
    font-weight: bold;
    font-size: 14px;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
    z-index: 9998;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

/* Level badge colors */
.level-junior {
    color: #808080;
}

.level-mid {
    color: #008000;
}

.level-senior {
    color: #000080;
}

.level-lead {
    color: #800080;
}

.level-director {
    color: #c00000;
}

.level-enlightenment {
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700, 0 0 20px #ff8c00;
    animation: enlightenmentGlow 1s ease-in-out infinite alternate;
}

@keyframes enlightenmentGlow {
    from {
        text-shadow: 0 0 10px #ffd700, 0 0 20px #ff8c00;
    }
    to {
        text-shadow: 0 0 20px #ffd700, 0 0 40px #ff8c00, 0 0 60px #ff4500;
    }
}

/* Window explosion animation */
@keyframes windowExplode {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(15deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0) rotate(720deg);
        opacity: 0;
    }
}

.window.exploding {
    animation: windowExplode 1s ease-in forwards;
    pointer-events: none;
}

/* Enlightenment end screen */
#enlightenment-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/lotus-flower.jpg') center center / cover no-repeat;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.enlightenment-message {
    font-family: 'Papyrus', 'Papyrus EG', fantasy;
    font-size: 42px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.play-again-btn {
    margin-top: 40px;
    padding: 12px 32px;
    font-size: 16px;
    cursor: pointer;
}

/* Request type colors */
.type-dev {
    background-color: #e6ffe6;
}

.type-jira {
    background-color: #e6f0ff;
}

.type-staging {
    background-color: #fff3e6;
}

.type-meeting {
    background-color: #ffffe6;
}

.type-security {
    background-color: #ffe6e6;
}

.type-privacy {
    background-color: #f3e6ff;
}

.type-vulnerability {
    background-color: #ffcccc;
}

.type-production {
    background-color: #ffd6d6;
}

/* Empty state */
.empty-state {
    text-align: center;
    color: #808080;
    padding: 20px;
    font-style: italic;
}

/* Auto-approver indicator */
.auto-indicator {
    display: inline-block;
    background-color: #008000;
    color: #fff;
    font-size: 9px;
    padding: 1px 4px;
    margin-left: 8px;
    font-weight: bold;
}

/* Request queue counter */
.queue-counter {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #ff0000;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulsing animation for new unlocks */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 128, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 128, 0, 0);
    }
}

.newly-unlocked {
    animation: pulse 1s ease-in-out 3;
}

/* Desktop icon style (for future use) */
.desktop-icon {
    position: absolute;
    width: 64px;
    text-align: center;
    cursor: pointer;
    padding: 4px;
}

.desktop-icon:hover {
    background-color: rgba(0, 0, 128, 0.3);
}

.desktop-icon img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.desktop-icon span {
    display: block;
    color: #fff;
    text-shadow: 1px 1px 0 #000;
    font-size: 11px;
    margin-top: 4px;
    word-wrap: break-word;
}

/* ========== SPLASH SCREEN ========== */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #008080;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#splash-screen.hidden {
    display: none;
}

.splash-window {
    width: 450px;
    animation: windowOpen 0.3s ease-out;
}

@keyframes windowOpen {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.splash-body {
    text-align: center;
    padding: 16px !important;
}

/* Logo Container */
.splash-logo {
    padding: 20px 0;
}

/* Pixel Art Computer Icon */
.logo-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.logo-monitor {
    width: 80px;
    height: 60px;
    background: linear-gradient(180deg, #c0c0c0 0%, #a0a0a0 100%);
    border: 3px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    border-radius: 4px 4px 0 0;
    padding: 6px;
    box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #606060;
}

.logo-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000080 0%, #1084d0 100%);
    border: 2px solid #000;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 4px;
    align-content: flex-start;
}

.logo-window {
    width: 18px;
    height: 12px;
    background-color: #c0c0c0;
    border: 1px solid;
    border-color: #fff #808080 #808080 #fff;
}

.logo-window:nth-child(1) {
    background-color: #ffe6e6;
}

.logo-window:nth-child(2) {
    background-color: #e6ffe6;
}

.logo-window:nth-child(3) {
    background-color: #e6f0ff;
}

.logo-keyboard {
    width: 70px;
    height: 8px;
    background: linear-gradient(180deg, #d0d0d0 0%, #a0a0a0 100%);
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    border-radius: 0 0 2px 2px;
    margin-top: -1px;
}

/* Logo Text */
.logo-text {
    font-size: 32px;
    font-weight: bold;
    margin: 8px 0 4px 0;
    letter-spacing: -1px;
}

.logo-remote {
    color: #000080;
    text-shadow: 2px 2px 0 #c0c0c0, 3px 3px 0 #808080;
}

.logo-worker {
    color: #008000;
    text-shadow: 2px 2px 0 #c0c0c0, 3px 3px 0 #808080;
}

.logo-version {
    font-size: 10px;
    color: #808080;
}

/* Tagline */
.splash-tagline {
    font-size: 13px;
    font-style: italic;
    color: #000080;
    margin: 12px 0 4px 0;
    font-weight: bold;
}

.splash-subtitle {
    font-size: 11px;
    color: #404040;
    margin-bottom: 8px;
}

/* Tips Section */
.splash-tips {
    text-align: left;
    background-color: #fff;
    border: 2px solid;
    border-color: #808080 #fff #fff #808080;
    padding: 8px 12px;
    margin: 12px 0;
}

.splash-tip-header {
    font-weight: bold;
    color: #000080;
    margin-bottom: 6px;
}

.splash-tip-list {
    margin: 0;
    padding-left: 20px;
    font-size: 11px;
    color: #000;
}

.splash-tip-list li {
    margin-bottom: 3px;
}

/* Buttons */
.splash-buttons {
    margin: 16px 0 12px 0;
}

.splash-buttons .win-btn {
    padding: 6px 24px;
    font-size: 12px;
}

/* Footer */
.splash-footer {
    font-size: 10px;
    color: #808080;
    animation: blink 1.5s ease-in-out infinite;
}

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

/* ========== START MENU ========== */
#start-menu {
    position: fixed;
    bottom: 28px;
    left: 2px;
    background-color: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #000 #000 #dfdfdf;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080, 4px 4px 0 rgba(0,0,0,0.3);
    z-index: 99998;
    display: flex;
    min-width: 180px;
}

#start-menu.hidden {
    display: none;
}

/* Sidebar with vertical text */
.start-menu-sidebar {
    width: 24px;
    background: linear-gradient(180deg, #000080 0%, #1084d0 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
}

.sidebar-text {
    color: #c0c0c0;
    font-weight: bold;
    font-size: 14px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    letter-spacing: 1px;
    text-shadow: 1px 1px 0 #000;
}

/* Menu items container */
.start-menu-items {
    flex-grow: 1;
    padding: 4px 0;
}

/* Menu item button */
.start-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 6px 12px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 11px;
    text-align: left;
    cursor: pointer;
    gap: 8px;
}

.start-menu-item:hover {
    background-color: #000080;
    color: #fff;
}

/* Menu icons */
.menu-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.reset-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #c00000 100%);
    border: 1px solid #800000;
}

.about-icon {
    background: linear-gradient(135deg, #6b9fff 0%, #000080 100%);
    border: 1px solid #000060;
    border-radius: 50%;
    position: relative;
}

.about-icon::after {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    font-size: 11px;
}

.portal-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    border: 1px solid #1B5E20;
}

.hr-icon {
    background: linear-gradient(135deg, #9C27B0 0%, #6A1B9A 100%);
    border: 1px solid #4A148C;
}

.expenses-icon {
    background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
    border: 1px solid #FF8F00;
}

.pto-icon {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    border: 1px solid #00838F;
}

.review-icon {
    background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
    border: 1px solid #BF360C;
}

.intranet-icon {
    background: linear-gradient(135deg, #607D8B 0%, #455A64 100%);
    border: 1px solid #37474F;
}

/* Menu divider */
.start-menu-divider {
    height: 2px;
    margin: 4px 8px;
    background: linear-gradient(180deg, #808080 0%, #808080 50%, #fff 50%);
}

/* Active state for start button when menu is open */
.start-button.active {
    border-color: #000 #dfdfdf #dfdfdf #000;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #808080;
}
