/* DudiverOffice - Game Styles */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #0a0a1a;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

#app {
    width: 100%;
    height: 100%;
}

/* Game Canvas Container */
#game-container {
    overflow: hidden;
}

/* Loading Screen */
.loading-screen {
    text-align: center;
    color: #e0e0e0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 36px;
    color: #00d4ff;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.4), 0 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
    letter-spacing: 3px;
}

.loading-subtitle {
    font-size: 16px;
    color: #7a8a9a;
    margin-bottom: 40px;
}

.loading-bar {
    width: 320px;
    height: 6px;
    background: #1a1a2e;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
    border: 1px solid #2a2a3e;
}

.loading-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    border-radius: 3px;
    animation: loading-anim 2s ease-in-out infinite;
}

@keyframes loading-anim {
    0% { width: 0%; }
    50% { width: 80%; }
    100% { width: 100%; }
}

/* Game Canvas Container - overflow:hidden set above via #game-container */
#game-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #0a0a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

#game-container canvas {
    display: block;
    margin: 0 auto;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Overlay Panels */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Game language toggle */
.game-lang-toggle {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 50;
    display: inline-flex;
    gap: 6px;
}

.game-lang-btn {
    background: rgba(0, 0, 0, 0.7);
    color: #e0e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 10px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.game-lang-btn[aria-pressed="true"] {
    background: rgba(45, 212, 255, 0.2);
    border-color: rgba(45, 212, 255, 0.6);
    color: #cdefff;
}

.game-lang-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Room Label - hidden since Phaser renders its own */
.room-label {
    display: none;
}

/* Controls Hint */
.controls-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: #8899aa;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.8;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
}

.controls-hint kbd {
    background: rgba(255, 255, 255, 0.12);
    color: #c0d0e0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-family: 'Inter', monospace;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

/* Info Panel (for detailed CV info when needed) */
.info-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(8, 8, 24, 0.96);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 10px;
    padding: 28px;
    max-width: 560px;
    max-height: 75vh;
    overflow-y: auto;
    color: #d0d8e0;
    pointer-events: all;
    display: none;
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 212, 255, 0.08);
    backdrop-filter: blur(8px);
}

.info-panel.active {
    display: block;
    animation: panel-in 0.2s ease-out;
}

@keyframes panel-in {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.info-panel h2 {
    color: #00d4ff;
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 700;
}

.info-panel p {
    line-height: 1.7;
    margin-bottom: 8px;
    color: #b0bcc8;
}

.info-panel .close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255, 80, 80, 0.7);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.15s;
    font-weight: 700;
}

.info-panel .close-btn:hover {
    color: #ff5555;
}

/* Blazor error UI */
#blazor-error-ui {
    background: #991122;
    color: #fff;
    padding: 8px 16px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: none;
    font-size: 13px;
}

#blazor-error-ui .reload {
    color: #fff;
    margin-left: 8px;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    float: right;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}
