/* Pattern Prophet Styles */

.game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

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

/* Game View */
.view-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hidden {
    display: none !important;
}

.game-controls-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

#progress-indicator,
#streak-display {
    font-family: var(--font-family-mono);
    color: var(--color-text-sub);
}

#streak-display {
    color: var(--color-secondary);
    font-weight: 600;
}

.game-board {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Pattern Type Label */
.pattern-type {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-family-mono);
}

/* Sequence Display */
.sequence-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 600px;
}

.sequence-item {
    font-size: 2rem;
    font-weight: 600;
    font-family: var(--font-family-mono);
    padding: 0.75rem 1rem;
    background: rgba(187, 134, 252, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    min-width: 60px;
    text-align: center;
}

.sequence-item.missing {
    background: rgba(3, 218, 198, 0.1);
    color: var(--color-secondary);
    border: 2px dashed var(--color-secondary);
}

.sequence-arrow {
    font-size: 1.5rem;
    color: var(--color-text-sub);
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 500px;
}

.option-btn {
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-family-mono);
    background: var(--color-surface);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-text-main);
    cursor: pointer;
    transition: var(--transition-fast);
}

.option-btn:hover {
    border-color: var(--color-primary);
    background: rgba(187, 134, 252, 0.1);
}

.option-btn.correct {
    border-color: var(--color-secondary);
    background: rgba(3, 218, 198, 0.2);
    color: var(--color-secondary);
}

.option-btn.wrong {
    border-color: var(--color-accent);
    background: rgba(207, 102, 121, 0.2);
    color: var(--color-accent);
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Controls */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--color-text-sub);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-text:hover {
    color: var(--color-accent);
}

/* Feedback */
.feedback {
    min-height: 2rem;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
}

.feedback.success {
    color: var(--color-secondary);
    background: rgba(3, 218, 198, 0.1);
}

.feedback.error {
    color: var(--color-accent);
    background: rgba(207, 102, 121, 0.1);
}

/* Results View */
.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 2rem 0;
    background: var(--color-surface);
    flex-direction: column;
}

.score-circle::after {
    content: 'points';
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--color-text-sub);
}

.results-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
    max-width: 400px;
}

.result-icon {
    font-size: 1.5rem;
}

/* Shape items for visual patterns */
.shape-item {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape-item svg {
    width: 40px;
    height: 40px;
}

/* Color items for color patterns */
.color-item {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.pulse {
    animation: pulse 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s;
}
