/* ============================================
   THE BLACKWOOD CASE - Game Styles
   ============================================ */

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

body {
    background: #0a0a12;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    font-family: 'VT323', monospace;
}

/* VIEWPORT */
.game-viewport {
    width: 100%;
    max-width: 900px;
    background: #12121f;
    border: 4px solid #2a2a4a;
    box-shadow: 0 0 0 2px #0a0a12, 0 0 40px rgba(100, 80, 150, 0.3), inset 0 0 60px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.title-bar {
    background: linear-gradient(90deg, #1a1a2e 0%, #2a2a4a 50%, #1a1a2e 100%);
    padding: 0.4rem 1rem;
    border-bottom: 1px solid #3a3a5a;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title-bar h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #c9a227;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.15em;
}

/* HUD BAR */
.hud-bar {
    background: linear-gradient(180deg, #12121f 0%, #0f0f1a 100%);
    padding: 0.35rem 1rem;
    border-bottom: 2px solid #3a3a5a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hud-bar .score { color: #8888aa; font-size: 0.85rem; }
.hud-right { display: flex; align-items: center; gap: 0.5rem; }
.stats-display { color: #8888aa; font-size: 0.85rem; display: flex; gap: 0.75rem; }
.stats-display span { display: flex; align-items: center; gap: 0.2rem; }

.save-btn {
    background: transparent;
    border: 1px solid #3a3a5a;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.save-btn:hover { background: #2a2a4a; border-color: #c9a227; }

/* SCENE */
.scene-container { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0a0a12; }
.scene-bg { width: 100%; height: 100%; display: block; }
.hotspot-layer { position: absolute; inset: 0; pointer-events: none; }

/* HOTSPOTS */
.hotspot { position: absolute; pointer-events: auto; cursor: pointer; transition: all 0.2s ease; }
.hotspot::after { content: ''; position: absolute; inset: -4px; border: 2px solid transparent; border-radius: 4px; transition: all 0.3s ease; }
.hotspot:hover::after { border-color: rgba(201, 162, 39, 0.6); box-shadow: 0 0 10px rgba(201, 162, 39, 0.3), inset 0 0 10px rgba(201, 162, 39, 0.1); }
.hotspot.item-glow { animation: itemPulse 2s ease-in-out infinite; }
.hotspot.item-glow::before { content: '\2726'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #c9a227; font-size: 1.5rem; text-shadow: 0 0 10px #c9a227, 0 0 20px #c9a227; animation: sparkle 1.5s ease-in-out infinite; pointer-events: none; }

@keyframes sparkle { 0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.8); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); } }
@keyframes itemPulse { 0%, 100% { filter: drop-shadow(0 0 2px rgba(201, 162, 39, 0.3)); } 50% { filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.6)); } }

/* MESSAGE BAR */
.message-bar { min-height: 3.5rem; padding: 0.75rem 1rem; background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%); border-top: 2px solid #2a2a4a; border-bottom: 2px solid #2a2a4a; color: #ccccdd; font-size: 1.1rem; line-height: 1.4; display: flex; align-items: center; }
.message-bar .cursor { display: inline-block; width: 0.6em; height: 1.1em; background: #c9a227; margin-left: 0.2em; animation: blink 0.8s step-end infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* VERB BAR */
.verb-bar { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.6rem; background: #16162a; }
.verb-bar button { padding: 0.5rem 1rem; background: linear-gradient(180deg, #1e1e36 0%, #14142a 100%); border: 2px solid #3a3a5a; border-radius: 3px; color: #8888aa; cursor: pointer; font-family: 'VT323', monospace; font-size: 1rem; transition: all 0.15s ease; text-transform: uppercase; letter-spacing: 0.05em; }
.verb-bar button:hover { background: linear-gradient(180deg, #2a2a46 0%, #1e1e36 100%); border-color: #5a5a7a; color: #aaaacc; }
.verb-bar button.active { background: linear-gradient(180deg, #3a3a5a 0%, #2a2a4a 100%); border-color: #c9a227; color: #c9a227; box-shadow: 0 0 10px rgba(201, 162, 39, 0.2); }

/* INVENTORY */
.inventory-bar { display: flex; gap: 0.5rem; padding: 0.6rem; min-height: 70px; background: linear-gradient(180deg, #0f0f1a 0%, #12121f 100%); border-top: 2px solid #2a2a4a; flex-wrap: wrap; position: relative; padding-top: 1.5rem; }
.inventory-bar::before { content: 'INVENTORY'; position: absolute; top: 0.3rem; left: 0.6rem; font-size: 0.7rem; color: #4a4a6a; letter-spacing: 0.1em; }
.inv-item { width: 52px; height: 52px; background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%); border: 2px solid #3a3a5a; border-radius: 4px; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; padding: 4px; }
.inv-item:hover { border-color: #6a6a8a; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
.inv-item.selected { border-color: #c9a227; box-shadow: 0 0 15px rgba(201, 162, 39, 0.4); }
.inv-item svg { width: 100%; height: 100%; }

/* DIALOGUE */
.dialogue-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.85); display: none; flex-direction: column; justify-content: center; align-items: center; padding: 2rem; z-index: 100; }
.dialogue-overlay.active { display: flex; }
.dialogue-box { background: linear-gradient(180deg, #1a1a2e 0%, #12121f 100%); border: 3px solid #3a3a5a; border-radius: 8px; padding: 1.5rem; max-width: 90%; width: 500px; box-shadow: 0 0 30px rgba(0, 0, 0, 0.8); }
.dialogue-speaker { font-family: 'Cinzel', serif; color: #c9a227; font-size: 1rem; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.dialogue-text { color: #ccccdd; font-size: 1.1rem; line-height: 1.5; margin-bottom: 1.25rem; }
.dialogue-choices { display: flex; flex-direction: column; gap: 0.5rem; }
.dialogue-choice { background: linear-gradient(180deg, #1e1e36 0%, #14142a 100%); border: 2px solid #3a3a5a; border-radius: 4px; padding: 0.75rem 1rem; color: #aaaacc; cursor: pointer; font-family: 'VT323', monospace; font-size: 1rem; text-align: left; transition: all 0.15s ease; }
.dialogue-choice:hover { background: linear-gradient(180deg, #2a2a46 0%, #1e1e36 100%); border-color: #c9a227; color: #c9a227; }
.dialogue-continue { background: linear-gradient(180deg, #2a3a2a 0%, #1a2a1a 100%); border: 2px solid #4a6a4a; color: #88aa88; }
.dialogue-continue:hover { border-color: #6a8a6a; color: #aaccaa; }

/* NOTIFICATIONS */
.notification { position: fixed; top: 1rem; right: 1rem; background: #2a2a4a; border: 2px solid #c9a227; border-radius: 4px; padding: 0.75rem 1.25rem; color: #c9a227; font-family: 'VT323', monospace; font-size: 1rem; z-index: 200; animation: fadeInOut 2s ease forwards; }
@keyframes fadeInOut { 0% { opacity: 0; transform: translateY(-10px); } 15% { opacity: 1; transform: translateY(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

/* TRANSITIONS */
.scene-container.transitioning .scene-bg { animation: fadeScene 0.5s ease; }
@keyframes fadeScene { 0%, 40% { opacity: 0; filter: brightness(0); } 100% { opacity: 1; filter: brightness(1); } }

/* LOADING */
.loading-screen { position: fixed; inset: 0; background: #0a0a12; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 1000; color: #c9a227; font-family: 'Cinzel', serif; }
.loading-screen h1 { font-size: 2rem; margin-bottom: 1rem; letter-spacing: 0.2em; }
.loading-screen .spinner { width: 40px; height: 40px; border: 3px solid #2a2a4a; border-top-color: #c9a227; border-radius: 50%; animation: spin 1s linear infinite; }
.loading-screen .status { margin-top: 1rem; font-family: 'VT323', monospace; color: #8888aa; }
@keyframes spin { to { transform: rotate(360deg); } }

/* MOBILE */
@media (max-width: 600px) {
    .verb-bar button { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
    .message-bar { font-size: 0.95rem; }
}
