/* Pixel Detective Styles */

.game-header {
    text-align: center;
    margin-bottom: 1rem;
}

.game-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.game-header .subtitle {
    color: var(--color-text-sub);
}

.resolution-indicator {
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-text-sub);
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    min-height: 300px;
}

#pixel-canvas {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.input-area {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 1rem;
}

.input-area input {
    flex: 1;
    max-width: 300px;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text-main);
}

.input-area input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 1rem;
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: rgba(187, 134, 252, 0.1);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.guess-history {
    margin-top: 2rem;
    text-align: center;
}

.guess-history .guess-item {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.guess-history .guess-item.wrong {
    background: rgba(239, 68, 68, 0.2);
    color: var(--color-accent);
}

.guess-history .guess-item.correct {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-secondary);
}

.feedback {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    margin-top: 1rem;
}

.feedback.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-secondary);
}

.feedback.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--color-accent);
}

.feedback.hidden {
    display: none;
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
