/* Quiet Seasons Specific Styles */

#game-container {
    position: relative;
    background-color: #2d3436; /* Fallback */
    /* Gradient for sky/background */
    background: linear-gradient(to bottom, #87CEEB 0%, #E0F7FA 100%);
    overflow: hidden;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated; /* Essential for pixel art style */
}

/* Needs Panel Overlay */
#needs-panel {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    color: white;
    width: 200px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.need-item {
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
}

.need-label {
    font-size: 0.8rem;
    margin-bottom: 2px;
    display: flex;
    justify-content: space-between;
}

.need-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.need-bar {
    height: 100%;
    width: 100%; /* JS will adjust this */
    background: #4ade80;
    transition: width 0.5s ease, background-color 0.5s ease;
}

/* Specific bar colors */
#bar-hunger { background-color: #fbbf24; } /* Amber */
#bar-thirst { background-color: #60a5fa; } /* Blue */
#bar-fatigue { background-color: #a78bfa; } /* Purple */
#bar-warmth { background-color: #f87171; } /* Red */
#bar-happiness { background-color: #f472b6; } /* Pink */

/* Event Log */
#event-log {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 300px;
    max-height: 150px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column-reverse; /* Newest at bottom visually, or handle via JS */
    pointer-events: none;
    z-index: 10;
}

.log-entry {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 8px;
    margin-top: 2px;
    border-radius: 4px;
    font-size: 0.85rem;
    animation: fadeOut 5s forwards;
    align-self: flex-start;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Controls Styling adjustments */
.priority-slider {
    margin-bottom: 15px;
}

.priority-slider label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: rgba(255,255,255,0.8);
}

.priority-slider input[type=range] {
    width: 100%;
    accent-color: var(--primary-color);
}

#inventory-list {
    list-style: none;
}

#inventory-list li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

.back-btn {
    text-decoration: none;
    color: white;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.2s;
}

.back-btn:hover {
    background: rgba(255,255,255,0.2);
}

.hint {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
    font-style: italic;
}
